:root { --header-h: 60px; --video-w: 500px; --accent:#ff2f56; }
html, body { margin:0; padding:0; height:100%; background:#000; color:#fff; font-family: Arial, sans-serif; overflow:hidden; }

header{ position:fixed; top:0; left:0; width:100%; height:var(--header-h); background:#000; z-index:1000; border-bottom:1px solid #222; display:flex; justify-content:center; }
.header-inner{ width:100%; max-width:560px; height:100%; display:flex; align-items:center; justify-content:space-between; padding:0 12px; box-sizing:border-box; }
.logoText{ font-family: Arial, sans-serif; font-weight:900; font-size:22px; cursor:pointer; color:#fff; }
header .logoText span{ color:#ff2f56; text-shadow:0 0 14px rgba(255,47,86,0.65); }

.icon-btn{ background:none; border:none; cursor:pointer; padding:6px; display:flex; align-items:center; }
.icon-btn svg{ width:28px; height:28px; fill:#fff; }

#speakerIcon{ width:40px; height:40px; }
.header-right{ display:flex; align-items:center; gap:10px; }
.login-link{ color:#fff; text-decoration:none; font-size:13px; font-weight:bold; border:1px solid #444; padding:4px 12px; border-radius:4px; }
.user-avatar{ width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid #333; cursor:pointer; }

.feed{ margin-top:var(--header-h); height:calc(100vh - var(--header-h)); overflow-y:scroll; scroll-snap-type:y mandatory; scrollbar-width:none; }
.feed::-webkit-scrollbar{ display:none; }
.item{ height:calc(100vh - var(--header-h)); width:100%; scroll-snap-align:start; scroll-snap-stop:always; display:flex; align-items:center; justify-content:center; position:relative; }
.media-container{ width:min(100%, var(--video-w)); height:100%; position:relative; background:#000; display:flex; align-items:center; justify-content:center; }
video, .audio-player{ width:100%; height:100%; object-fit:contain; cursor:pointer; display:block; }

/* Audio player styling */
.audio-player {
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:#0a0a0a;
}
.album-art {
    width:250px;
    height:250px;
    background:linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius:20px;
    margin-bottom:30px;
    border:2px solid #333;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.8);
    cursor:pointer;
    transition: box-shadow 0.3s ease;
}
.album-art.playing {
    box-shadow:0 0 30px var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow:0 0 20px var(--accent); }
    50% { box-shadow:0 0 40px var(--accent); }
    100% { box-shadow:0 0 20px var(--accent); }
}
.album-art img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.album-art svg {
    width:50%;
    height:50%;
    margin:25%;
    fill:#666;
}
.track-title {
    font-size:24px;
    font-weight:bold;
    margin-bottom:10px;
    text-align:center;
    padding:0 20px;
    color:#fff;
}
.track-artist {
    color:#888;
    font-size:14px;
    margin-bottom:20px;
}

/* Audio slider - white background with black thumb */
.audio-slider-container {
    width: 80%;
    max-width: 300px;
    margin: 20px auto 10px;
    text-align: center;
}

.audio-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #fff;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.audio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #333;
}

.audio-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.2s;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.audio-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #333;
}

.audio-slider::-moz-range-track {
    background: #fff;
    height: 6px;
    border-radius: 10px;
}

.audio-slider.playing::-webkit-slider-thumb {
    background: #000;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.audio-slider.playing::-moz-range-thumb {
    background: #000;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #fff;
}

.current-time, .duration {
    font-family: monospace;
    background: rgba(0,0,0,0.7);
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    border: 1px solid #333;
}

.slider-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar{ position:absolute; right:10px; bottom:50px; display:flex; flex-direction:column; align-items:center; gap:12px; z-index:100; }
.action{ text-align:center; cursor:pointer; user-select:none; }
.icon-circle{ width:44px; height:44px; background:rgba(255,255,255,0.12); border-radius:50%; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(10px); margin-bottom:3px; border:1px solid rgba(255,255,255,0.10); }
.action svg{ width:24px; height:24px; fill:#fff; }
.action span{ font-size:11px; font-weight:bold; }
.liked svg{ fill:var(--accent) !important; }

/* Hamburger menu dropdown - CENTERED */
#globalMenu {
  position:fixed; 
  top:70px; 
  left:50%;
  transform: translateX(-50%);
  width:90%;
  max-width:380px;
  background:rgba(20,20,20,0.98);
  border:1px solid #333;
  border-radius:16px;
  display:none;
  flex-direction:column;
  z-index:5000;
  max-height:80vh;
  overflow-y:auto;
  backdrop-filter:blur(15px);
  box-shadow:0 20px 40px rgba(0,0,0,0.8);
  margin:0 auto;
}
#globalMenu button{
  background:none; border:none; color:#fff;
  padding:16px 20px; text-align:left; cursor:pointer;
  border-bottom:1px solid #222; font-size:15px;
  transition:all 0.2s;
  width:100%;
  font-weight:400;
}
#globalMenu button:last-child{
  border-bottom:none;
}
#globalMenu button:hover{ 
  background:rgba(255,47,86,0.15); 
  color:var(--accent);
  padding-left:25px;
}

.cat-dd-wrap{ 
  padding:16px 16px 20px; 
  border-bottom:1px solid #222; 
  background:rgba(255,47,86,0.02); 
}
.cat-dd-title{ 
  font-size:13px; 
  opacity:0.9; 
  margin-bottom:12px; 
  letter-spacing:0.5px; 
  text-transform:uppercase; 
  color:#ff2f56;
  font-weight:600;
}
.cat-dd{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #444;
  background:#1a1a1a;
  color:#fff;
  font-size:15px;
  outline:none;
  cursor:pointer;
  transition:all 0.2s;
}
.cat-dd:hover{
  border-color: var(--accent);
  background:#222;
}
.cat-dd:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,47,86,0.2);
}
.cat-dd option {
  background:#1a1a1a;
  color:#fff;
  padding:10px;
}
.close-menu {
  color:var(--accent) !important;
  text-align:center !important;
  font-weight:600 !important;
}

.player-iframe-box { position:absolute; top:0; left:0; width:100%; height:100%; background:#000; z-index:6000; display:none; flex-direction:column; }
.player-iframe-box iframe { flex-grow:1; border:none; width:100%; background:#fff; }
.iframe-header { background:#111; padding:10px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #333; }

#overlay{ position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.70); z-index:1500; display:none; }
#commentPanel{ position:fixed; bottom:-70%; left:50%; transform:translateX(-50%); width:100%; max-width:var(--video-w); height:70%; background:#121212; z-index:2000; border-radius:20px 20px 0 0; transition:bottom 0.3s ease-out; padding:20px; box-sizing:border-box; display:flex; flex-direction:column; border:1px solid #333; }
#commentPanel.open{ bottom:0; }
.panel-header{ display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #333; padding-bottom:12px; }
.comments-list{ flex-grow:1; overflow-y:auto; padding:15px 0; }
.comment-item{ margin-bottom:12px; font-size:14px; border-bottom:1px solid #222; padding-bottom:8px; }
.comment-user{ color:var(--accent); font-weight:bold; margin-right:5px; }
.comment-input-area{ display:flex; gap:10px; padding-top:15px; border-top:1px solid #222; }
.comment-input-area input{ flex-grow:1; background:#222; border:1px solid #444; color:#fff; padding:10px; border-radius:5px; outline:none; }
.comment-input-area button{ background:var(--accent); color:#fff; border:none; padding:0 15px; border-radius:5px; font-weight:bold; cursor:pointer; }

.track-meta{
    font-size: 14px;
    color: #aaa;
    font-weight: normal;
    margin-top: 4px;
}