/* Watch Page - Layout giống colatv40.live */

/* ─── Breadcrumb ─── */
.breadcrumb { padding: 10px 20px; font-size: 12px; color: #888; max-width: 1400px; margin: 0 auto; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ─── Match Header ─── */
.match-header-wrapper { max-width: 1400px; margin: 0 auto 10px; padding: 0 20px; }
.match-header { 
    background: rgba(25, 25, 25, 0.6); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; border: none;
    padding: 20px 30px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: 20px;
}

/* Header Left: Meta & Stats */
.mh-left { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.mh-date-time { 
    background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 8px; 
    font-size: 13px; color: #ccc; display: flex; align-items: center; gap: 8px; width: fit-content;
}
.mh-date-time i { color: #888; font-size: 14px; }
.mh-date-time strong { color: #fff; }

.mh-stats-pills { display: flex; gap: 8px; }
.mh-stat-pill { 
    background: rgba(255,255,255,0.05); padding: 6px 16px; border-radius: 20px; 
    font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px;
}
.mh-stat-pill .st-label { font-size: 11px; font-weight: 700; color: #22c55e; }
.mh-stat-pill i { font-size: 12px; }
.mh-stat-pill i.fa-flag { color: #ef4444; }
.mh-stat-pill i.fa-square { color: #fbbf24; }

/* Header Right: Teams & Score */
.mh-right { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.mh-team { display: flex; align-items: center; gap: 15px; min-width: 0; }
.mh-team-logo { width: 48px; height: 48px; flex-shrink: 0; }
.mh-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.mh-team-name { font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.mh-team.home { flex-direction: row; }
.mh-team.away { flex-direction: row; }

.mh-score-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 140px; }
.mh-status-text { font-size: 12px; font-weight: 700; color: #22c55e; text-transform: uppercase; letter-spacing: 1.5px; }
.mh-score-pill { 
    background: #111; border-radius: 40px; padding: 4px; display: flex; align-items: center; gap: 0; 
    border: 2px solid rgba(34, 197, 94, 0.4); box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    height: 48px;
}
.mh-score-val { 
    width: 50px; height: 40px; display: flex; align-items: center; justify-content: center; 
    font-size: 24px; font-weight: 900; color: #fff; transition: all 0.3s;
}
.mh-score-val.active { background: #22c55e; border-radius: 30px; color: #fff; box-shadow: 0 0 15px rgba(34, 197, 94, 0.5); }
.mh-score-sep { width: 6px; height: 6px; background: #555; border-radius: 50%; margin: 0 10px; }
.mh-score-vs { background: rgba(255,152,0,0.1); color: #ff9800; font-size: 18px; font-weight: 700; padding: 8px 30px; border-radius: 30px; border: 1px solid rgba(255,152,0,0.3); }
.live-time-display { text-align: center; margin-bottom: 6px; }
.live-time-badge { background: #e53935; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ─── Ads ─── */
.ads { max-width: 1400px; margin: 0 auto; padding: 0 20px 10px; }
.ads-banner { margin-bottom: 6px; }
.ads-banner-img { width: 100%; max-height: 60px; object-fit: cover; border-radius: 4px; }
.marquee { background: #111; padding: 6px 12px; border-radius: 4px; font-size: 12px; color: #f59e0b; overflow: hidden; white-space: nowrap; }
.marquee p { display: inline-block; animation: scrollMarquee 30s linear infinite; }
@keyframes scrollMarquee { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ─── Live Container ─── */
.contaiver-live { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 12px; align-items: flex-start; }
.video-section { flex: 1; min-width: 0; }

/* Video Area Tabs */
.vid-tabs { display: flex; background: #2a2a2a; border-radius: 6px 6px 0 0; overflow: hidden; border: 1px solid #333; border-bottom: none; }
.vid-tab { flex: 1; padding: 12px 8px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 700; color: #ccc; transition: all .25s; letter-spacing: .5px; user-select: none; display: flex; align-items: center; justify-content: center; gap: 4px; }
.vid-tab:hover { background: rgba(255,255,255,.05); }
.vid-tab.active { background: linear-gradient(135deg, #1a5a3a, #2d8659); color: #ffe400; background-clip: padding-box; }
.vid-tab.active span { background: linear-gradient(180deg, #fffacd 0%, #ffe400 40%, orange 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.vid-tab span { margin: 0 3px; }
.vid-tab svg { width: 4px; height: 10px; display: inline-block; vertical-align: middle; }
.vid-tab .icon-field { width: 16px; height: 16px; }
.vid-tab .icon-share { width: 12px; height: 12px; }
@media (min-width: 640px) { .vid-tab svg { width: 6px; height: 14px; } .vid-tab .icon-field { width: 24px; height: 24px; } .vid-tab .icon-share { width: 16px; height: 16px; } }
@media (min-width: 768px) { .vid-tab svg { width: 7px; height: 17px; } .vid-tab .icon-field { width: 31px; height: 31px; } }
.vid-panel { display: none; }
.vid-panel.active { display: block; }
.blv-info-bar { display: flex; align-items: center; justify-content: space-between; background: #1a1a1a; padding: 8px 12px; border: 1px solid #333; border-bottom: none; border-top: none; }
.blv-info-left { display: flex; align-items: center; gap: 10px; }
.blv-info-left .blv-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.blv-info-left .blv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blv-live-badge { background: #e53935; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 8px; animation: livePulse 1.5s infinite; }
.blv-meta { font-size: 11px; color: #888; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.blv-meta .blv-name { font-weight: 600; color: #ccc; }
.blv-meta .blv-views { display: flex; align-items: center; gap: 3px; }
.blv-meta .blv-views svg { width: 12px; height: 12px; fill: #e53935; }
.blv-follow-btn { padding: 6px 14px; background: linear-gradient(135deg, #f76700, #ff9800); border: none; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: none; }
.video-container { background: #000; overflow: hidden; }
.video-player { position: relative; }
.video-player #video-player { width: 100%; aspect-ratio: 16/9; }
.video-footer { display: flex; gap: 4px; padding: 8px 12px; background: #1a1a1a; border-radius: 0 0 6px 6px; border: 1px solid #333; border-top: none; flex-wrap: wrap; }
.video-footer .tab-button { padding: 6px 14px; background: #2a2a2a; border: 1px solid #444; border-radius: 16px; color: #aaa; font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all .2s; }
.video-footer .tab-button:hover { background: #333; color: #fff; }
.video-footer .tab-button.active { background: linear-gradient(135deg, #f76700, #ff9800); border-color: #f76700; color: #fff; }

/* ─── Desktop Chat ─── */
.watch-chat-section { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; }
.watch-chat-section .match-title { background: #1a1a1a; padding: 8px 12px; font-size: 12px; color: #f59e0b; font-weight: 600; border-radius: 6px 6px 0 0; border: 1px solid #333; border-bottom: none; text-transform: uppercase; flex-shrink: 0; }
.watch-chat-section .banner-chat { border-left: 1px solid #333; border-right: 1px solid #333; flex-shrink: 0; }
.watch-chat-section #gavangChatRoot, .watch-chat-section #desktopChatSlot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.watch-chat-section #gavangChatRoot { border: 1px solid #333; border-top: none; border-radius: 0 0 6px 6px; overflow: hidden; }

/* ─── ChatRoom Styles ─── */
.chatroom-container { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #1a1a1a; font-family: Arial, sans-serif; }
.chatroom-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #111; border-bottom: 1px solid #333; flex-shrink: 0; }
.chatroom-title { font-weight: bold; font-size: 14px; color: #fff; }
.chatroom-online { font-size: 12px; color: #4CAF50; margin-left: auto; }
.chatroom-messages { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.chatroom-messages::-webkit-scrollbar { width: 5px; }
.chatroom-messages::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.chatroom-msg { padding: 4px 8px; border-radius: 4px; position: relative; line-height: 1.4; font-size: 13px; }
.chatroom-msg:hover { background: rgba(255,255,255,.05); }
.chatroom-msg:hover .msg-actions { opacity: 1; }
.chatroom-msg.admin { border-left: 3px solid #f85149; background: rgba(248,81,73,.08); }
.chatroom-msg.commentator { border-left: 3px solid #f0883e; background: rgba(240,136,62,.08); }
.chatroom-msg.assistant { border-left: 3px solid #3fb950; background: rgba(63,185,80,.08); }
.chatroom-msg.special-msg { border: 2px solid transparent; border-radius: 8px; padding: 8px 10px; margin: 4px 0; }
.chatroom-msg.commentator.special-msg { padding: 0; }
.chatroom-msg.commentator .msg-header { background: linear-gradient(90deg,#dd1818,#ffb700); margin: 0; text-transform: uppercase; border-radius: 5px 5px 0 0; color: #fff; padding: 4px 8px; }
.chatroom-msg.commentator .msg-body { background: #fff; color: #000; font-weight: 600; padding: 5px; }
.chatroom-msg.assistant.special-msg { padding: 0; }
.chatroom-msg.assistant .msg-header { background: linear-gradient(90deg,#0f9b0f,#00d2ff); margin: 0; text-transform: uppercase; border-radius: 5px 5px 0 0; color: #fff; padding: 4px 8px; }
.chatroom-msg.assistant .msg-body { background: #f0fff0; color: #000; font-weight: 600; padding: 5px; }
.msg-header { display: inline; align-items: center; gap: 5px; flex-wrap: wrap; }
.msg-nickname { font-weight: bold; font-size: 13px; color: #58a6ff; }
.msg-nickname.role-admin { color: #ff6b6b; }
.msg-nickname.role-commentator { color: #fff; }
.msg-nickname.role-assistant { color: #fff; }
.msg-nickname.role-user { color: #58a6ff; }
.chat-badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: bold; color: #fff; }
.badge-admin { background: linear-gradient(135deg,#f85149,#da3633); }
.badge-blv { background: linear-gradient(135deg,#f0883e,#d68020); }
.badge-assistant { background: linear-gradient(135deg,#1c832a,#0d3515); }
.badge-level { background: #484f58; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.badge-level.level1 { background: linear-gradient(135deg,#c09a08,#a88500); }
.badge-level.level2 { background: linear-gradient(135deg,#D85E00,#bf5200); }
.badge-level.level3 { background: linear-gradient(135deg,#23c008,#1ea306); }
.badge-level.level4 { background: linear-gradient(135deg,#08aec0,#0797a8); }
.badge-level.level5 { background: linear-gradient(135deg,#7c3aed,#6d28d9); }
.msg-reply-badge { font-size: 11px; color: #8b949e; }
.msg-reply-preview { font-size: 11px; color: #8b949e; background: rgba(255,255,255,.05); padding: 2px 6px; border-radius: 3px; margin-bottom: 2px; border-left: 2px solid #484f58; }
.msg-body { font-size: 13px; color: #e6edf3; }
.msg-inline { display: inline; line-height: 1.5; }
.msg-inline .chat-badge { vertical-align: middle; }
.msg-inline .msg-nickname { vertical-align: middle; }
.msg-inline .msg-text { word-break: break-word; }
.msg-text { word-break: break-word; }
.chat-link { color: #3fb950; text-decoration: underline; word-break: break-all; }
.msg-image { width: 100%; max-width: 240px; height: auto; border-radius: 6px; cursor: pointer; display: block; margin-top: 4px; border: 1px solid #333; }
.msg-actions { position: absolute; right: 4px; top: 4px; opacity: 0; display: flex; gap: 2px; transition: opacity .15s; }
.btn-reply, .btn-delete-msg, .btn-pin { background: rgba(0,0,0,.5); border: none; color: #8b949e; cursor: pointer; padding: 2px 4px; border-radius: 3px; font-size: 11px; }
.btn-reply:hover { color: #58a6ff; }
.btn-delete-msg:hover { color: #f85149; }
.chatroom-reply-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: #21262d; border-top: 1px solid #30363d; font-size: 12px; color: #8b949e; flex-shrink: 0; }
.chatroom-reply-bar button { background: none; border: none; color: #8b949e; cursor: pointer; font-size: 14px; }
.chatroom-pinned { background: linear-gradient(135deg,#1e293b,#0f172a); border-bottom: 1px solid #334155; padding: 8px 12px; flex-shrink: 0; }
.pinned-header { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #fbbf24; font-weight: bold; margin-bottom: 4px; }
.pinned-header button { background: none; border: none; color: #8b949e; cursor: pointer; font-size: 12px; }
.pinned-body { display: flex; gap: 6px; font-size: 12px; color: #e2e8f0; }
.pinned-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatroom-banned-notice { text-align: center; padding: 8px; background: rgba(248,81,73,.1); color: #f85149; font-size: 12px; border-top: 1px solid #30363d; flex-shrink: 0; }
.chatroom-login-form { padding: 10px; background: #161b22; border-top: 1px solid #30363d; flex-shrink: 0; }
.login-tabs { display: flex; margin-bottom: 8px; border-radius: 6px; overflow: hidden; border: 1px solid #30363d; }
.login-tabs button { flex: 1; padding: 6px; background: #0d1117; border: none; color: #8b949e; font-size: 12px; cursor: pointer; }
.login-tabs button.active { background: #238636; color: #fff; font-weight: bold; }
.chatroom-login-form input { width: 100%; padding: 7px 10px; background: #0d1117; border: 1px solid #30363d; border-radius: 4px; color: #e6edf3; margin-bottom: 6px; font-size: 14px; box-sizing: border-box; }
.login-error { color: #f85149; font-size: 11px; margin-bottom: 4px; }
.login-buttons { display: flex; gap: 6px; }
.login-buttons button { padding: 6px 14px; background: #238636; border: none; color: #fff; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; }
.login-buttons .btn-cancel { background: #30363d; font-weight: normal; }
.chatroom-input { padding: 8px 10px; background: #111; border-top: 1px solid #333; flex-shrink: 0; }
.input-info { margin-bottom: 4px; font-size: 11px; }
.input-user-bar { display: flex; align-items: center; justify-content: space-between; }
.input-user-left { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.input-user-left:hover { background: rgba(255,255,255,.06); }
.input-user-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#238636,#1a7f37); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: #fff; flex-shrink: 0; }
.input-user-name { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #e6edf3; font-weight: 600; }
.input-user-gear { font-size: 12px; color: #484f58; }
.input-user-right { display: flex; align-items: center; gap: 2px; }
.btn-register-upgrade { background: #f97316; border: none; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; padding: 3px 8px; border-radius: 4px; }
.btn-logout-small { background: none; border: none; font-size: 14px; cursor: pointer; padding: 3px 5px; border-radius: 4px; color: #ccc; }
.input-row { display: flex; align-items: center; gap: 6px; }
.input-row input { flex: 1; padding: 7px 10px; background: #2a2a2a; border: 1px solid #444; border-radius: 4px; color: #e6edf3; font-size: 14px; outline: none; box-sizing: border-box; }
.input-row input:focus { border-color: #58a6ff; }
.btn-emoji-toggle { background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px; }
.btn-send { padding: 7px 14px; background: #238636; border: none; color: #fff; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px; }
.btn-send:disabled { opacity: .5; cursor: default; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
/* ─── Sidebar Tabs (Desktop) ─── */
.desktop-chat-wrap { display: flex; flex-direction: column; background: #1a1a1a; border-radius: 8px; overflow: hidden; border: 1px solid #333; position: sticky; top: 10px; }
.sidebar-tabs-nav { display: flex; background: #242424; border-bottom: 1px solid #333; flex-shrink: 0; }
.s-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; cursor: pointer; transition: all .2s; gap: 4px; color: #888; }
.s-tab svg { width: 18px; height: 18px; fill: currentColor; }
.s-tab span { font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.s-tab:hover { background: rgba(255,255,255,.05); color: #ccc; }
.s-tab.active { background: linear-gradient(135deg, #1a5a3a, #2d8659) !important; color: #ffe400 !important; position: relative; }
.s-tab.active span { background: linear-gradient(180deg, #fffacd 0%, #ffe400 40%, orange 100%) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
.s-tab.active svg { fill: #ffe400 !important; }
.s-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: #ffe400; border-radius: 2px 2px 0 0; }
.sidebar-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.s-panel { display: none; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0; min-height: 0; }
.s-panel.active { display: flex; flex-direction: column; }
.s-panel#sideTab-chat.active { display: flex; flex-direction: column; }
.s-panel#sideTab-lineup, .s-panel#sideTab-stats, .s-panel#sideTab-h2h { padding: 12px; }

.emoji-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 4px; }
.emoji-btn:hover { background: rgba(255,255,255,.1); }


/* Tabs */
.tabs-nav ul { display: flex; gap: 0; list-style: none; border-bottom: 1px solid #333; }
.tabs-nav li { cursor: pointer; }
.tabs-nav li a { display: block; padding: 10px 16px; color: #888; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; text-decoration: none; transition: all .2s; }
.tabs-nav li a:hover { color: #ccc; }
.tabs-nav li.active a { color: #ff9800; border-bottom-color: #ff9800; }
.tabs-content { background: #1a1a1a; border: 1px solid #333; border-top: none; border-radius: 0 0 6px 6px; }
.tab-pane { display: none; padding: 15px; }
.tab-pane.active { display: block; }
.heading-watch { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; margin-bottom: 10px; }

/* ─── Lineup (styles are inlined via JS) ─── */


/* ─── Stats ─── */
.stats-list { display: flex; flex-direction: column; gap: 12px; }
.stat-row { display: flex; align-items: center; gap: 10px; }
.stat-val { font-size: 14px; font-weight: 700; color: #fff; width: 30px; text-align: center; flex-shrink: 0; }
.stat-bar-wrap { flex: 1; }
.stat-label { text-align: center; font-size: 11px; color: #888; margin-bottom: 4px; }
.stat-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #333; }
.stat-bar-home { background: #4CAF50; transition: width .3s; }
.stat-bar-away { background: #f44336; transition: width .3s; }

/* ─── Mobile Tab Bar (hidden on desktop) ─── */
.mobile-tab-bar { display: none; }
.mobile-tab-content-wrapper { display: none; }

/* ─── Mobile BLV ─── */
.mob-blv-list-title { padding: 12px 15px; font-size: 13px; font-weight: 600; color: #FFD700; border-bottom: 1px solid #333; text-transform: uppercase; }
.mob-blv-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #2a2a2a; text-decoration: none; color: #fff; transition: background .2s; }
.mob-blv-item:last-child { border-bottom: none; }
.mob-blv-item.active { background: rgba(255,126,7,.08); }
.mob-blv-name { font-size: 14px; font-weight: 500; }
.mob-blv-badge { background: linear-gradient(135deg,#f76700,#ff9800); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }

/* ─── Bottom Layout (2 columns) ─── */
.bottom-layout { max-width: 1400px; margin: 20px auto 40px; padding: 0 20px; display: flex; gap: 24px; align-items: flex-start; }

.bottom-content { 
    flex: 1; min-width: 0; 
    background: rgba(25, 25, 25, 0.65); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden; 
}

.bottom-section-title { 
    padding: 16px 24px; font-size: 15px; font-weight: 700; 
    color: #FFD700; 
    background: rgba(255, 255, 255, 0.03);
    border: none;
    display: flex; align-items: center; gap: 12px;
    letter-spacing: 0.5px;
}
.bottom-section-title i { color: #f59e0b; font-size: 18px; }

.bottom-match-info { padding: 24px; color: #bbb; font-size: 14.5px; line-height: 1.8; }
.bottom-match-info h2 { color: #fff; font-size: 20px; margin: 0 0 16px; font-weight: 700; }
.bottom-match-info h3 { color: #fff; font-size: 18px; margin: 24px 0 12px; font-weight: 700; border-left: 4px solid #FFD700; padding-left: 14px; }
.bottom-match-info p { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.bottom-match-info p i { color: #f59e0b; width: 18px; text-align: center; flex-shrink: 0; }
.bottom-match-info p strong { color: #ddd; }

.bottom-wp-content { padding: 24px; color: #bbb; font-size: 14.5px; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.05); }
.bottom-wp-content h2, .bottom-wp-content h3, .bottom-wp-content h4 { color: #fff; margin: 16px 0 8px; }
.bottom-wp-content p { margin: 0 0 12px; }
.bottom-wp-content a { color: #f59e0b; text-decoration: underline; }
.bottom-wp-content img { border-radius: 8px; margin: 12px 0; }

.related-sidebar { 
    width: 420px; flex-shrink: 0; 
    background: rgba(25, 25, 25, 0.65); 
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden; 
}

.related-header { 
    padding: 16px 24px; font-size: 15px; font-weight: 700; 
    color: #FFD700; 
    background: rgba(255, 255, 255, 0.03);
    border: none;
    display: flex; align-items: center; gap: 12px;
    letter-spacing: 0.5px;
}
.related-header i { color: #f59e0b; font-size: 18px; }

.related-list { display: flex; flex-direction: column; gap: 14px; padding: 14px; max-height: 850px; overflow-y: auto; background: transparent; }
.related-list::-webkit-scrollbar { width: 4px; }
.related-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.related-list .match-card { 
    display: block !important; width: 100% !important; flex-shrink: 0 !important; 
    margin-bottom: 0; border: none !important;
    background: rgba(255,255,255,0.02) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.related-list .match-card img { max-width: none; }
.related-list .mc-stat-item i { font-size: 12px; opacity: 0.8; }

/* ═══════════════════════════════════════════
   MOBILE LAYOUT (≤768px)
   Video fixed top, sidebar tabs = mobile tabs
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hide desktop-only elements */
  .breadcrumb, .match-header-wrapper, .ads, .bottom-layout, .desktop-only, .blv-info-bar, .video-footer { display: none !important; }

  /* Ensure header menu works above watch wrapper */
  .site-header { z-index: 200 !important; }
  .mobile-nav { z-index: 199 !important; position: relative; }
  /* Fixed fullscreen layout */
  .watch-page-wrapper {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    z-index: 40; background: #0d0d0d;
    overflow: hidden;
    padding-top: var(--header-height, 56px);
  }

  /* Container: flex column so video + chat stack */
  .contaiver-live {
    flex: 1 !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important;
    padding: 0 !important; margin: 0 !important; gap: 0 !important;
    width: 100% !important; max-width: 100% !important;
  }
  .contaiver-live .video-section { flex: none !important; flex-shrink: 0; width: 100% !important; border-radius: 0 !important; border: none !important; }
  .contaiver-live .video-container { border-radius: 0; }

  /* Sidebar becomes mobile tab system, fills remaining space */
  .watch-chat-section {
    width: 100% !important; flex: 1 !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important;
    border-radius: 0 !important; border: none !important;
    position: relative !important; top: auto !important; max-height: none !important;
    height: auto !important;
  }
  .desktop-chat-wrap { border-radius: 0 !important; border: none !important; height: auto !important; }

  /* Tab nav = mobile tab bar */
  .sidebar-tabs-nav {
    display: flex !important; flex-shrink: 0;
    background: #1a1a2e; border-top: 1px solid #2d2d2d; border-bottom: 1px solid #2d2d2d;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    border-radius: 0 !important; padding: 0;
  }
  .sidebar-tabs-nav::-webkit-scrollbar { display: none; }
  .s-tab {
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 12px; background: transparent !important;
    color: #888; font-size: 10px; cursor: pointer; white-space: nowrap;
    flex-shrink: 0; min-width: 60px; border-radius: 0 !important;
  }
  .s-tab svg { width: 18px; height: 18px; }
  .s-tab span { font-size: 10px; line-height: 1.2; }
  .s-tab.active { background: linear-gradient(135deg, #1a5a3a, #2d8659) !important; color: #ffe400 !important; }
  .s-tab.active::after { background: #ffe400 !important; width: auto; left: 15%; right: 15%; transform: none; }
  .s-tab:hover { background: transparent !important; }

  /* Panel content fills remaining space */
  .sidebar-content { flex: 1 !important; min-height: 0; overflow: hidden; display: flex !important; flex-direction: column !important; }
  .s-panel { flex: 1 1 0% !important; min-height: 0; background: #1a1a1a; }
  .s-panel:not(#sideTab-chat) { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  .s-panel.active { display: flex !important; flex-direction: column !important; }

  /* Chat panel: input pinned at bottom */
  .s-panel#sideTab-chat { overflow: hidden !important; }
  .s-panel#sideTab-chat.active { display: flex !important; flex-direction: column !important; }
  .s-panel#sideTab-chat .match-title, .s-panel#sideTab-chat .banner-chat { display: none !important; }
  .s-panel#sideTab-chat #desktopChatSlot { flex: 1 !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; height: auto !important; }
  .s-panel#sideTab-chat #gavangChatRoot { flex: 1 !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; height: 100% !important; border: none !important; border-radius: 0 !important; }
  .s-panel#sideTab-chat .chatroom-container { flex: 1 !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; height: auto !important; }
  .s-panel#sideTab-chat .chatroom-messages { flex: 1 1 0% !important; height: auto !important; max-height: none !important; min-height: 0 !important; overflow-y: auto !important; }
  .s-panel#sideTab-chat .chatroom-input { flex-shrink: 0 !important; position: relative !important; z-index: 5; }
  .s-panel#sideTab-chat .chatroom-header { display: none; }
  .s-panel#sideTab-chat .chatroom-login-form { flex-shrink: 0 !important; }

  /* Data panels padding */
  .s-panel#sideTab-lineup, .s-panel#sideTab-stats, .s-panel#sideTab-h2h { padding: 10px !important; }

  /* Lineup grid on mobile */
  .lineup-grid { grid-template-columns: 1fr; }

  /* Hide site footer on watch page */
  .site-footer, footer, .catfish-banners-wrapper { display: none !important; }
}

