:root {
    --bg: #070b14;
    --bg-soft: #10182b;
    --panel: rgba(16, 24, 43, 0.82);
    --panel-border: rgba(255, 255, 255, 0.09);
    --text: #f4f7ff;
    --muted: #94a3c3;
    --accent: #006a4e;
    --accent-light: #00c97a;
    --accent-glow: rgba(0, 201, 122, 0.28);
    --fifa-gold: #ffd166;
    --fifa-green: #1a5f3f;
    --danger: #ff6b6b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --radius: 20px;
    --sidebar-width: 360px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 201, 122, 0.16), transparent 32%),
        radial-gradient(circle at 85% 5%, rgba(255, 209, 102, 0.1), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(244, 42, 67, 0.08), transparent 40%),
        linear-gradient(180deg, #060910 0%, #0b1020 100%);
    color: var(--text);
    font-family: "Hind Siliguri", "Inter", sans-serif;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.app {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.sidebar-backdrop {
    display: none;
}

body.fifa-popup-open {
    overflow: hidden;
}

body.fifa-popup-open .mobile-nav {
    z-index: 90;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--panel-border);
    background: rgba(8, 12, 24, 0.92);
    backdrop-filter: blur(18px);
    z-index: 20;
}

.sidebar-header,
.sidebar-tools,
.sidebar-footer {
    padding: 14px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--panel-border);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: opacity 0.2s var(--ease);
}

.brand-link:hover {
    opacity: 0.88;
}

.site-logo-img {
    display: block;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.logo-crop {
    display: flex;
    align-items: center;
    overflow: visible;
    line-height: 0;
}

.logo-crop img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.brand-link.logo-crop {
    height: 52px;
    max-width: 320px;
}

.brand-logo {
    height: 100%;
    width: auto;
}

.topbar-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    max-width: 260px;
    margin: 0 auto;
}

.topbar-logo {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
}

.player-watermark {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.player-watermark img {
    width: min(50%, 220px);
    height: auto;
    opacity: 0.5;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.brand-dev {
    margin: 3px 0 0;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 500;
}

.brand-flag {
    font-size: 2rem;
    line-height: 1;
}

.brand h1,
.topbar-title h2,
.now-playing h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand p,
.topbar-title p,
.now-playing p,
.info-card p,
.sidebar-footer p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.sidebar-tools {
    display: grid;
    gap: 12px;
    border-bottom: 1px solid var(--panel-border);
}

.search-box {
    position: relative;
}

.search-box svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: var(--muted);
}

.search-box input,
.filter-row select {
    width: 100%;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 12px 14px 12px 42px;
    outline: none;
}

.search-box input:focus,
.filter-row select:focus {
    border-color: rgba(0, 168, 107, 0.55);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.filter-row select {
    padding-left: 14px;
}

.chip-btn,
.icon-btn,
.favorite-btn {
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.chip-btn,
.icon-btn {
    border-radius: 14px;
    padding: 10px 14px;
}

.chip-btn:hover,
.icon-btn:hover,
.favorite-btn:hover,
.channel-item:hover {
    border-color: rgba(0, 201, 122, 0.45);
    background: rgba(0, 201, 122, 0.1);
    transform: translateY(-1px);
}

.chip-btn.active {
    background: rgba(0, 168, 107, 0.18);
    border-color: rgba(0, 168, 107, 0.55);
}

.channel-list {
    flex: 1;
    overflow: auto;
    padding: 10px;
    scroll-behavior: smooth;
}

.channel-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.channel-item.active {
    border-color: rgba(0, 201, 122, 0.55);
    background: linear-gradient(90deg, rgba(0, 201, 122, 0.2), rgba(0, 201, 122, 0.04));
    box-shadow: 0 8px 24px rgba(0, 201, 122, 0.12);
}

.channel-item.hidden-item {
    display: none !important;
}

.channel-logo,
.now-playing-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    padding: 5px;
    box-sizing: border-box;
}

.channel-logo img,
.now-playing-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.logo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(0, 168, 107, 0.12);
}

.channel-meta {
    min-width: 0;
    overflow: hidden;
}

.channel-meta strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    min-width: 0;
    overflow: hidden;
}

.channel-meta strong > :not(.live-dot):not(.offline-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
    flex-shrink: 0;
}

.offline-dot {
    color: #666;
    font-size: 0.65rem;
    margin-right: 2px;
    flex-shrink: 0;
}

.channel-meta span {
    color: var(--muted);
    font-size: 0.82rem;
}

.channel-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.channel-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-tag-quality {
    color: var(--accent-light);
    background: rgba(0, 201, 122, 0.1);
    border-color: rgba(0, 201, 122, 0.18);
}

.channel-list-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

.sidebar-footer-mini {
    margin: 10px 0 0 !important;
    font-size: 0.75rem !important;
    text-align: center;
    opacity: 0.85;
}

.favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
}

.favorite-btn.active {
    color: #ffd166;
    border-color: rgba(255, 209, 102, 0.45);
    background: rgba(255, 209, 102, 0.12);
}

.sidebar-footer {
    border-top: 1px solid var(--panel-border);
}

.sidebar-footer a {
    color: var(--accent-light);
}

.visitor-stat {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 201, 122, 0.12), rgba(0, 201, 122, 0.04));
    border: 1px solid rgba(0, 201, 122, 0.22);
    color: var(--muted);
    font-size: 0.84rem;
}

.visitor-stat strong {
    margin-left: auto;
    color: var(--accent-light);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.visitor-stat-icon {
    font-size: 0.95rem;
}

.visitor-stat-sub {
    margin: 0;
    padding: 0 14px 12px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.topbar-visitors {
    display: none;
    font-size: 0.68rem;
    color: var(--accent-light);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 201, 122, 0.1);
    border: 1px solid rgba(0, 201, 122, 0.2);
    white-space: nowrap;
}

.main {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title {
    flex: 1;
    min-width: 0;
}

.topbar-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar-brand {
    display: none;
}

.mobile-only {
    display: none;
}

.topbar-title h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-title p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-btn,
.sidebar-close,
.random-btn {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar-home-btn {
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.topbar-home-btn svg {
    display: block;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
}

.share-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1200;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(12, 22, 40, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.92rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

.social-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.social-share-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 220px;
}

.social-share-preview img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.social-share-preview > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-share-site {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent, #ffd166);
}

.social-share-title {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 280px;
    justify-content: flex-end;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-share-btn:hover,
.social-share-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.social-share-whatsapp {
    border-color: rgba(37, 211, 102, 0.35);
    background: rgba(37, 211, 102, 0.12);
}

.social-share-facebook {
    border-color: rgba(24, 119, 242, 0.35);
    background: rgba(24, 119, 242, 0.12);
}

.social-share-twitter {
    border-color: rgba(255, 255, 255, 0.18);
}

.social-share-telegram {
    border-color: rgba(42, 171, 238, 0.35);
    background: rgba(42, 171, 238, 0.12);
}

.home-page .social-share-bar {
    margin-top: 18px;
    margin-bottom: 4px;
    background: rgba(7, 11, 20, 0.55);
    backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
    .social-share-bar {
        padding: 12px;
    }

    .social-share-actions {
        justify-content: flex-start;
    }

    .social-share-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

.player-section {
    padding: 0 24px 24px;
}

.fifa-hero {
    position: relative;
    margin: 20px 24px 0;
    padding: 22px 24px;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid rgba(255, 209, 102, 0.22);
    background: linear-gradient(135deg, rgba(26, 95, 63, 0.55), rgba(8, 18, 36, 0.92));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.fifa-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 209, 102, 0.18), transparent 40%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 40px);
    animation: fifaShimmer 8s linear infinite;
    pointer-events: none;
}

@keyframes fifaShimmer {
    from { transform: translateX(0); }
    to { transform: translateX(40px); }
}

.fifa-hero-content {
    position: relative;
    z-index: 1;
}

.fifa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.16);
    border: 1px solid rgba(255, 209, 102, 0.35);
    color: var(--fifa-gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: pulseBadge 2.5s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(255, 209, 102, 0); }
}

.fifa-title {
    margin: 12px 0 6px;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
}

.fifa-sub {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.fifa-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fifa-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
    backdrop-filter: blur(8px);
}

.fifa-chip:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(0, 201, 122, 0.16);
    border-color: rgba(0, 201, 122, 0.45);
    box-shadow: 0 10px 28px rgba(0, 201, 122, 0.18);
}

.fifa-chip img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px;
    box-sizing: border-box;
}

.fifa-chip-icon {
    font-size: 1.1rem;
}

.fifa-chip-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.fifa-chip-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.18);
    color: var(--fifa-gold);
}

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 820px);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow), 0 0 0 1px rgba(0, 201, 122, 0.08);
    border: 1px solid var(--panel-border);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.player-wrap.is-switching {
    opacity: 1;
    transition: none;
}

.player-wrap.is-switching #livePlayer {
    filter: brightness(0.92);
    transition: filter 0.25s var(--ease);
}

.switch-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    pointer-events: none;
}

.switch-progress::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    background: linear-gradient(90deg, var(--accent-light), var(--fifa-gold));
    animation: switchSlide 0.85s var(--ease) infinite;
}

@keyframes switchSlide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(320%); }
}

.switch-progress.hidden {
    display: none;
}

.player-loading.is-switch {
    inset: auto 12px 12px auto;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.player-loading.is-switch .loader-ring {
    width: 18px;
    height: 18px;
    margin: 0;
    border-width: 2px;
}

.player-loading.is-switch .loader-bar {
    display: none;
}

.player-loading.is-switch p {
    margin: 0;
    font-size: 0.78rem;
    white-space: nowrap;
}

#livePlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    transform: translateZ(0);
    will-change: auto;
    object-fit: contain;
}

.player-loading.is-quick {
    background: rgba(8, 12, 24, 0.35);
    backdrop-filter: blur(2px);
}

.player-loading.is-quick .loader-ring,
.player-loading.is-quick .loader-bar {
    transform: scale(0.85);
}

.player-loading.is-quick p {
    font-size: 0.85rem;
}

.player-loading,
.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.player-loading.hidden,
.player-overlay.hidden,
.external-player.hidden,
.unmute-btn.hidden,
.play-btn.hidden,
.player-quality.hidden {
    display: none;
}

.external-player {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 28px);
    background:
        radial-gradient(circle at top, rgba(0, 201, 122, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(12, 18, 34, 0.98));
}

.external-player-card {
    width: min(100%, 720px);
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.external-player-card.is-link-only {
    gap: 18px;
    padding: 12px;
}

.external-player-card.is-link-only .external-player-logo {
    width: 96px;
    height: 96px;
}

.external-player-card.is-link-only .external-player-btn {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
}

.external-player-frame.hidden {
    display: none;
}

.external-player-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
}

.external-player-logo.hidden {
    display: none;
}

.external-player-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.external-player-card p {
    margin: 0;
    color: var(--text-muted);
    max-width: 520px;
}

.external-player-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e6b422, var(--fifa-gold));
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.external-player-card.has-youtube-embed {
    width: min(100%, 960px);
    gap: 12px;
}

.external-player-card.has-youtube-embed .external-player-frame {
    height: min(62vh, 520px);
    min-height: 240px;
}

.external-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.external-player-btn--alt {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: #fff;
}

.external-player-card.has-youtube-embed .external-player-btn {
    min-height: 48px;
    padding: 0 24px;
    font-size: 0.95rem;
}

.external-player-card.has-youtube-embed .external-player-btn--alt {
    min-height: 52px;
    padding: 0 28px;
    font-size: 1rem;
    order: -1;
}

.external-player-frame {
    width: 100%;
    height: min(52vh, 420px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #000;
}

.now-playing-external {
    margin: 8px 0 0;
}

.now-playing-external a {
    color: var(--fifa-gold);
    font-weight: 600;
    text-decoration: none;
}

.now-playing-external a:hover {
    text-decoration: underline;
}

.now-playing-external.hidden {
    display: none;
}

.spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-light);
    animation: spin 0.9s linear infinite;
    margin-bottom: 12px;
}

.loader-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-light);
    border-right-color: var(--fifa-gold);
    animation: spin 0.75s linear infinite;
    margin-bottom: 14px;
}

.loader-bar {
    width: min(220px, 70vw);
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-light), var(--fifa-gold));
    animation: loadSlide 1.1s var(--ease) infinite;
}

@keyframes loadSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(280%); }
}

.player-loading p {
    margin: 0;
    color: var(--muted);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.retry-btn,
.unmute-btn,
.play-btn {
    margin-top: 14px;
    border: 1px solid rgba(0, 168, 107, 0.55);
    background: rgba(0, 168, 107, 0.18);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
}

.unmute-btn {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
}

.player-quality {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.player-quality.is-busy .player-quality-select {
    opacity: 0.7;
}

.player-quality.is-busy::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 201, 122, 0.22);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.player-quality-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.player-quality-select {
    border: 1px solid rgba(0, 168, 107, 0.45);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 108px;
}

.player-quality-select:disabled {
    cursor: wait;
}

.player-quality-select:focus {
    border-color: rgba(0, 201, 122, 0.75);
    box-shadow: 0 0 0 2px rgba(0, 201, 122, 0.18);
}

.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    z-index: 3;
    font-size: 1.1rem;
    padding: 14px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.retry-btn:hover,
.unmute-btn:hover,
.play-btn:hover {
    background: rgba(0, 168, 107, 0.28);
}

.player-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay-card,
.empty-card {
    max-width: 420px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    text-align: center;
}

body.is-watching .fifa-hero {
    margin-top: 12px;
    padding: 12px 16px;
}

body.is-watching .fifa-badge,
body.is-watching .fifa-title,
body.is-watching .fifa-sub {
    display: none;
}

body.is-watching .fifa-hero-content {
    display: block;
}

body.is-watching .fifa-quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

body.is-watching .player-section {
    padding-top: 12px;
}

body.is-watching .cricket-matches-section {
    margin-top: 12px;
    padding: 14px 16px;
}

.empty-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.info-card.fifa-card {
    background: linear-gradient(145deg, rgba(26, 95, 63, 0.35), rgba(16, 24, 43, 0.88));
    border-color: rgba(255, 209, 102, 0.2);
}

.info-card.fifa-card h4 {
    color: var(--fifa-gold);
}

.info-card h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

.fifa-chip-icon.hidden {
    display: none;
}

.fifa-chip img[style*="display: none"] + .fifa-chip-icon {
    display: inline !important;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 24px 18px;
}

.fifa-matches-section {
    margin: 0 24px 24px;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(26, 95, 63, 0.28), rgba(16, 24, 43, 0.92));
    border: 1px solid rgba(255, 209, 102, 0.18);
}

.matches-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.matches-sidebar .fifa-matches-section {
    margin: 0 24px 0;
}

.matches-sidebar .cricket-matches-section {
    margin: 0 24px 24px;
}

.fifa-matches-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.fifa-matches-head h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--fifa-gold);
}

.fifa-matches-sub {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.fifa-matches-tz {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(255, 209, 102, 0.22);
    color: var(--fifa-gold);
    font-size: 0.75rem;
    font-weight: 600;
}

.fifa-matches-list {
    display: grid;
    gap: 12px;
}

.fifa-match-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(8, 12, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.fifa-match-card.is-live {
    border-color: rgba(255, 77, 77, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.12);
}

.fifa-match-empty {
    text-align: center;
    color: var(--muted);
}

.fifa-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.fifa-match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fifa-match-team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.fifa-match-team img,
.fifa-match-flag {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    object-fit: contain;
}

.fifa-match-flag {
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.fifa-match-name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fifa-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fifa-gold);
    letter-spacing: 0.02em;
}

.fifa-match-score .score-sep {
    opacity: 0.65;
    font-weight: 500;
}

.fifa-match-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--muted);
}

.fifa-match-live {
    color: #ff6b6b;
    font-weight: 700;
    animation: fifaLivePulse 1.4s ease-in-out infinite;
}

@keyframes fifaLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.fifa-match-status,
.fifa-match-group {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.fifa-match-time {
    margin-left: auto;
    color: #dbe4ff;
    font-weight: 500;
}

.cricket-matches-section {
    margin: 16px 24px 0;
    padding: 18px 20px;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(255, 183, 77, 0.22);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.28), rgba(8, 18, 36, 0.92));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.cricket-matches-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cricket-matches-head h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #ffb74d;
}

.cricket-matches-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.cricket-matches-tz {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 183, 77, 0.12);
    border: 1px solid rgba(255, 183, 77, 0.28);
    color: #ffb74d;
    font-size: 0.75rem;
    font-weight: 600;
}

.cricket-matches-list {
    display: grid;
    gap: 10px;
}

.cricket-match-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cricket-match-card.is-live {
    border-color: rgba(255, 87, 87, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 87, 87, 0.12), 0 8px 24px rgba(255, 60, 60, 0.08);
}

.cricket-match-empty {
    text-align: center;
    color: var(--muted);
}

.cricket-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.cricket-match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cricket-match-team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.cricket-match-team img,
.cricket-match-flag {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.cricket-match-flag {
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.cricket-match-name {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cricket-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 56px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffb74d;
}

.cricket-match-score-vs span,
.cricket-match-score-text span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd9a8;
}

.cricket-match-score-text span {
    max-width: 120px;
    text-align: center;
    line-height: 1.25;
    font-size: 0.78rem;
    font-weight: 600;
}

.cricket-match-score .score-sep {
    opacity: 0.65;
    font-weight: 600;
}

.cricket-match-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.78rem;
}

.cricket-match-live {
    color: #ff6b6b;
    font-weight: 700;
    animation: cricketLivePulse 1.4s ease-in-out infinite;
}

@keyframes cricketLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.cricket-match-status,
.cricket-match-series {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbe4ff;
}

.cricket-match-series {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffd9a8;
    background: rgba(255, 183, 77, 0.1);
}

.cricket-match-time {
    margin-left: auto;
    color: #dbe4ff;
    font-weight: 500;
}

.info-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 201, 122, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    animation: fadeUp 0.4s var(--ease);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.now-watching-stat {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}

.now-watching-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 201, 122, 0.1);
    border: 1px solid rgba(0, 201, 122, 0.22);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.now-watching-pill strong {
    color: var(--accent-light);
    font-size: 0.88rem;
    font-weight: 700;
}

.now-watching-pill-total .live-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
}

.now-watching-pill-channel {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.now-watching-pill-channel strong {
    color: #dbe4ff;
}

.channel-reviews {
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(12, 18, 34, 0.96), rgba(8, 12, 24, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-reviews-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.channel-reviews-head h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.channel-reviews-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.channel-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.channel-reviews-stars {
    color: #ffb74d;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.channel-reviews-count {
    color: var(--muted);
    font-size: 0.72rem;
}

.channel-review-form {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: calc(var(--radius) - 4px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.channel-review-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.channel-review-input,
.channel-review-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.channel-review-input:focus,
.channel-review-textarea:focus {
    outline: none;
    border-color: rgba(0, 201, 122, 0.45);
    box-shadow: 0 0 0 2px rgba(0, 201, 122, 0.12);
}

.channel-review-rating-input {
    display: inline-flex;
    gap: 4px;
}

.review-star-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 183, 77, 0.25);
    background: rgba(255, 183, 77, 0.08);
    color: rgba(255, 183, 77, 0.45);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.review-star-btn:hover,
.review-star-btn.active {
    color: #ffb74d;
    background: rgba(255, 183, 77, 0.18);
    border-color: rgba(255, 183, 77, 0.45);
}

.review-star-btn:active {
    transform: scale(0.96);
}

.channel-review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-review-submit {
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #041018;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.channel-review-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.channel-review-status {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.channel-review-status.is-success {
    color: var(--accent-light);
}

.channel-review-status.is-error {
    color: #ff8a80;
}

.channel-reviews-list {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.channel-review-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.channel-review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.channel-review-author {
    font-size: 0.88rem;
}

.channel-review-rating {
    color: #ffb74d;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

.channel-review-body {
    margin: 0 0 6px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text);
}

.channel-review-time {
    color: var(--muted);
    font-size: 0.72rem;
}

.channel-reviews-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.84rem;
}

body.mobile-view-watch .channel-reviews {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
}

body.mobile-view-watch .channel-reviews-list {
    max-height: 260px;
}

.mobile-nav {
    display: none;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 8px 6px;
    min-height: 50px;
    border-radius: 14px;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}

.mobile-nav-btn:active {
    transform: scale(0.96);
}

.mobile-nav-btn.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 201, 122, 0.28), rgba(0, 201, 122, 0.1));
    box-shadow: inset 0 0 0 1px rgba(0, 201, 122, 0.35);
}

.mobile-nav-btn.active .mobile-nav-icon {
    color: var(--accent-light);
}

.mobile-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-icon svg {
    display: block;
}

.mobile-nav-icon-live svg {
    filter: drop-shadow(0 0 6px rgba(0, 201, 122, 0.45));
}

@media (max-width: 1080px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --sidebar-width: 100vw;
    }

    .app {
        grid-template-columns: 1fr;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 15;
        background: rgba(0, 0, 0, 0.58);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.32s var(--ease);
    }

    .sidebar-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(100vw, 380px);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.32s var(--ease);
        box-shadow: var(--shadow);
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 6px 10px max(8px, env(safe-area-inset-bottom));
        background: rgba(5, 8, 16, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(20px);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    }

    body.mobile-view-channels .sidebar {
        transform: translateX(0);
        width: 100%;
        max-width: 100%;
        z-index: 25;
        box-shadow: none;
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body.mobile-view-channels .sidebar-backdrop {
        opacity: 0;
        pointer-events: none;
    }

    body.mobile-view-channels .sidebar-close {
        display: none;
    }

    body.mobile-view-channels .sidebar-header {
        padding: 14px 16px 10px;
    }

    body.mobile-view-channels .brand p,
    body.mobile-view-channels .brand-dev {
        display: none;
    }

    body.mobile-view-channels .brand h1 {
        font-size: 1.05rem;
    }

    body.mobile-view-channels .sidebar-tools {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 12px 16px;
        background: rgba(8, 12, 24, 0.96);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--panel-border);
    }

    body.mobile-view-channels .channel-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px 16px 12px;
        align-content: start;
    }

    body.mobile-view-channels .channel-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 10px 12px;
        margin: 0;
        min-height: 148px;
        text-align: center;
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    }

    body.mobile-view-channels .channel-item:active {
        transform: scale(0.98);
    }

    body.mobile-view-channels .channel-item.active {
        background: linear-gradient(180deg, rgba(0, 201, 122, 0.24), rgba(0, 201, 122, 0.08));
        border-color: rgba(0, 201, 122, 0.5);
        box-shadow: 0 12px 32px rgba(0, 201, 122, 0.18);
    }

    body.mobile-view-channels .channel-logo {
        width: 64px;
        height: 64px;
        margin: 4px auto 0;
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    body.mobile-view-channels .channel-meta {
        width: 100%;
        padding: 0 4px;
    }

    body.mobile-view-channels .channel-meta strong {
        justify-content: center;
        font-size: 0.86rem;
        line-height: 1.3;
    }

    body.mobile-view-channels .channel-meta strong .live-dot {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    body.mobile-view-channels .channel-tags {
        justify-content: center;
        margin-top: 6px;
    }

    body.mobile-view-channels .favorite-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        margin: 0;
        background: rgba(8, 12, 24, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
    }

    body.mobile-view-channels .sidebar-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(8, 12, 24, 0.98);
    }

    body.mobile-view-watch .main {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        padding-bottom: 0;
        scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    body.mobile-view-watch .topbar {
        order: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        padding-top: max(10px, env(safe-area-inset-top));
        background: rgba(7, 11, 20, 0.94);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(16px);
    }

    body.mobile-view-watch .random-btn {
        display: none;
    }

    body.mobile-view-watch .topbar-brand,
    body.mobile-view-watch .topbar-dev,
    body.mobile-view-watch .topbar-visitors {
        display: none !important;
    }

    body.mobile-view-watch .topbar-center {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
    }

    body.mobile-view-watch .topbar-title h2 {
        font-size: 1.02rem;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    body.mobile-view-watch .topbar-title h2::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-right: 7px;
        border-radius: 50%;
        background: var(--accent-light);
        box-shadow: 0 0 8px var(--accent-glow);
        vertical-align: middle;
        transform: translateY(-1px);
    }

    body.mobile-view-watch .topbar-title p {
        font-size: 0.72rem;
        color: var(--muted);
        padding-left: 14px;
    }

    body.mobile-view-watch .player-section {
        order: 1;
        padding: 0;
    }

    body.mobile-view-watch .fifa-hero {
        order: 2;
        margin: 14px 16px 0;
        padding: 12px 14px;
        border-radius: 16px;
    }

    body.mobile-view-watch .fifa-badge,
    body.mobile-view-watch .fifa-title,
    body.mobile-view-watch .fifa-sub {
        display: none;
    }

    body.mobile-view-watch .fifa-hero-content::before {
        content: '⚽ দ্রুত স্পোর্টস চ্যানেল';
        display: block;
        margin-bottom: 10px;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--muted);
        letter-spacing: 0.02em;
    }

    body.mobile-view-watch .fifa-matches-section {
        order: 3;
        margin-left: 16px;
        margin-right: 16px;
        margin-bottom: 0;
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 18px;
        padding-top: 16px;
        padding-bottom: 16px;
        scroll-margin-top: calc(56px + env(safe-area-inset-top));
        background: linear-gradient(160deg, rgba(16, 24, 43, 0.92), rgba(8, 12, 24, 0.88));
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.mobile-view-watch .matches-sidebar {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0 0 calc(72px + env(safe-area-inset-bottom));
        scroll-margin-top: calc(56px + env(safe-area-inset-top));
    }

    body.mobile-view-watch .matches-sidebar .fifa-matches-section {
        order: initial;
        margin: 0 16px;
    }

    body.mobile-view-watch .cricket-matches-section {
        order: initial;
        margin: 0 16px;
        padding: 16px;
        border-radius: 18px;
        scroll-margin-top: calc(56px + env(safe-area-inset-top));
    }

    body.mobile-view-watch .cricket-match-card {
        background: rgba(6, 10, 20, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.mobile-view-watch .fifa-match-card {
        background: rgba(6, 10, 20, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.mobile-view-watch .fifa-matches-head h4 {
        font-size: 0.95rem;
    }

    body.mobile-view-watch .info-grid {
        order: 4;
        display: none !important;
    }

    body.mobile-view-watch .player-wrap {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
    }

    body.mobile-view-watch #livePlayer {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: none;
        object-fit: contain;
        background: #000;
    }

    body.mobile-view-watch .now-playing {
        margin: 12px 16px 0;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(12, 18, 32, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    body.mobile-view-watch .now-playing-logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    body.mobile-view-watch .now-playing h3 {
        font-size: 0.98rem;
        margin: 0 0 2px;
    }

    body.mobile-view-watch .now-playing p {
        font-size: 0.78rem;
        margin: 0;
        color: var(--muted);
    }

    body.mobile-view-watch .sidebar:not(.open) {
        transform: translateX(-105%);
    }

    .topbar-visitors {
        display: inline-flex;
        align-items: center;
        margin-top: 2px;
    }

    body.mobile-view-watch .topbar-visitors,
    body.mobile-view-channels .topbar-dev {
        display: none !important;
    }

    body.mobile-view-channels .main {
        visibility: hidden;
        height: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .menu-btn,
    .sidebar-close,
    .random-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }

    .topbar {
        padding: 8px 10px;
        padding-top: max(8px, env(safe-area-inset-top));
        gap: 8px;
    }

    .mobile-only,
    .topbar-brand.mobile-only {
        display: flex;
    }

    .topbar-brand {
        flex-direction: column;
        gap: 1px;
        line-height: 1.2;
    }

    .topbar-center {
        gap: 4px;
    }

    .topbar-site {
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        background: linear-gradient(90deg, var(--accent-light), var(--fifa-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-dev {
        font-size: 0.68rem;
        color: var(--muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fifa-match-card {
        padding: 16px;
        border-radius: 16px;
        background: rgba(8, 12, 22, 0.72);
    }

    .fifa-match-meta {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
    }

    .info-card {
        border-radius: 18px;
    }

    .info-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .info-card p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .topbar-title h2 {
        font-size: 0.92rem;
        font-weight: 600;
    }

    .topbar-title p {
        font-size: 0.75rem;
    }

    body.mobile-view-channels .topbar-title {
        display: none;
    }

    body.mobile-view-channels .topbar-brand {
        justify-content: center;
    }

    body.mobile-view-channels .topbar-logo-wrap {
        height: 38px;
        max-width: 210px;
    }

    body.mobile-view-channels .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    body.mobile-view-channels .topbar-center {
        flex: 1;
        align-items: center;
    }

    .player-section,
    .info-grid,
    .fifa-matches-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fifa-matches-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    body.mobile-view-watch .matches-sidebar {
        margin-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .fifa-match-name {
        font-size: 0.82rem;
    }

    .fifa-match-score {
        min-width: 62px;
        padding: 6px 8px;
        font-size: 1.05rem;
    }

    body.mobile-view-watch .fifa-matches-section .fifa-match-meta {
        justify-content: flex-start;
        row-gap: 8px;
    }

    body.mobile-view-watch .fifa-matches-section .fifa-match-time {
        margin-left: auto;
        width: auto;
        text-align: right;
    }

    .player-section {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    body.mobile-view-watch .player-section {
        padding-bottom: 0;
    }

    .info-grid {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .share-toast {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .fifa-hero {
        margin: 14px 16px 0;
        padding: 16px;
    }

    .fifa-quick {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .fifa-quick::-webkit-scrollbar {
        display: none;
    }

    .fifa-chip {
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .search-box input,
    .filter-row select {
        font-size: 16px;
        min-height: 44px;
    }

    .chip-btn {
        min-height: 44px;
        white-space: nowrap;
    }

    .channel-item {
        min-height: 64px;
        padding: 10px;
    }

    .favorite-btn {
        width: 40px;
        height: 40px;
    }

    .now-playing {
        flex-direction: row;
        gap: 12px;
        padding: 14px;
    }

    .unmute-btn {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        font-size: 0.88rem;
        padding: 10px 14px;
    }

    .player-quality {
        margin-top: 10px;
        padding: 9px 12px;
        justify-content: space-between;
    }

    .overlay-card,
    .empty-card {
        margin: 0 12px;
        max-width: calc(100vw - 48px);
        padding: 18px;
    }

    #livePlayer {
        max-height: 56vh;
        max-height: 56dvh;
    }
}

@media (max-width: 600px) {
    .brand h1 {
        font-size: 1.08rem;
    }

    .brand p,
    .brand-dev {
        font-size: 0.78rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 0.78rem;
    }

    .sidebar-header,
    .sidebar-tools,
    .sidebar-footer {
        padding: 14px;
    }

    .filter-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .chip-btn {
        width: auto;
        justify-content: center;
    }

    .fifa-title {
        font-size: 1.15rem;
    }

    .fifa-sub {
        font-size: 0.88rem;
    }

    .info-grid {
        gap: 12px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .info-card {
        padding: 16px;
    }

    .channel-meta strong {
        font-size: 0.92rem;
    }

    body.mobile-view-channels .channel-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px 14px;
    }

    body.mobile-view-channels .channel-item {
        min-height: 140px;
        padding: 12px 8px 10px;
    }

    body.mobile-view-channels .channel-logo {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 400px) {
    .sidebar {
        width: 100vw;
    }

    .fifa-hero {
        margin: 10px 10px 0;
        padding: 14px 12px;
    }

    .player-section,
    .info-grid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .play-btn {
        font-size: 1rem;
        padding: 12px 20px;
        width: calc(100% - 32px);
        max-width: 260px;
        text-align: center;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .sidebar {
        width: min(320px, 85vw);
    }

    #livePlayer {
        max-height: 72vh;
        max-height: 72dvh;
    }

    .fifa-hero {
        margin-top: 8px;
        padding: 12px 16px;
    }

    .fifa-sub {
        margin-bottom: 10px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .channel-item:hover,
    .chip-btn:hover,
    .icon-btn:hover,
    .fifa-chip:hover,
    .info-card:hover,
    .favorite-btn:hover {
        transform: none;
    }

    .channel-item:active {
        background: rgba(0, 201, 122, 0.12);
    }

    .fifa-chip:active {
        transform: scale(0.98);
    }
}

/* FIFA welcome popup */
.fifa-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    background: rgba(4, 8, 18, 0.78);
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.18s var(--ease), visibility 0.18s var(--ease);
}

.fifa-popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fifa-popup-card {
    position: relative;
    width: min(100%, 440px);
    max-height: min(88vh, 720px);
    max-height: min(88dvh, 720px);
    overflow: auto;
    padding: 22px 20px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 209, 102, 0.28);
    background:
        linear-gradient(160deg, rgba(26, 95, 63, 0.42) 0%, rgba(8, 14, 28, 0.96) 45%, rgba(8, 12, 24, 0.98) 100%);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 40px rgba(0, 201, 122, 0.12);
    animation: fifaPopupIn 0.22s var(--ease);
}

@keyframes fifaPopupIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fifa-popup-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 209, 102, 0.22), transparent 42%),
        radial-gradient(circle at 10% 100%, rgba(0, 201, 122, 0.14), transparent 40%);
    pointer-events: none;
}

.fifa-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(8, 12, 24, 0.72);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.fifa-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fifa-popup-head {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 16px;
    padding-right: 36px;
}

.fifa-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.16);
    border: 1px solid rgba(255, 209, 102, 0.32);
    color: var(--fifa-gold);
    font-size: 0.78rem;
    font-weight: 700;
}

.fifa-popup-head h3 {
    margin: 12px 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.fifa-popup-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.fifa-popup-matches {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.fifa-popup-matches .fifa-match-card {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.1);
}

.fifa-popup-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fifa-popup-watch,
.fifa-popup-dismiss {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.fifa-popup-watch {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    border-color: rgba(0, 201, 122, 0.4);
    box-shadow: 0 8px 24px rgba(0, 201, 122, 0.25);
}

.fifa-popup-dismiss {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
}

.fifa-popup-watch:active,
.fifa-popup-dismiss:active,
.fifa-popup-close:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .fifa-popup-card {
        padding: 18px 16px 14px;
        border-radius: 20px;
    }

    .fifa-popup-head h3 {
        font-size: 1.15rem;
    }

    .fifa-popup-actions {
        grid-template-columns: 1fr;
    }

    .fifa-popup-matches .fifa-match-name {
        font-size: 0.78rem;
    }
}

/* Desktop — sidebar TV app layout */
@media (min-width: 901px) {
    :root {
        --sidebar-width: 340px;
    }

    .mobile-nav {
        display: none !important;
    }

    .topbar-home-btn {
        display: inline-flex;
    }

    .main {
        overflow-x: hidden;
    }

    .topbar {
        padding: 16px 28px;
        gap: 16px;
    }

    .topbar-title h2 {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .topbar-title p {
        font-size: 0.84rem;
        color: var(--muted);
    }

    .channel-list {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 201, 122, 0.35) transparent;
        padding: 10px 12px 16px;
    }

    .channel-list::-webkit-scrollbar {
        width: 7px;
    }

    .channel-list::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(0, 201, 122, 0.32);
    }

    .channel-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .channel-item {
        padding: 13px 14px;
    }

    .fifa-hero {
        margin: 18px 28px 0;
        padding: 18px 24px;
    }

    .fifa-hero-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        align-items: center;
        column-gap: 28px;
        row-gap: 6px;
    }

    .fifa-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-bottom: 0;
    }

    .fifa-title {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    }

    .fifa-sub {
        grid-column: 1;
        grid-row: 3;
        margin: 0;
        font-size: 0.9rem;
    }

    .fifa-quick {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .player-section {
        padding: 0 28px 24px;
    }

    .player-wrap {
        max-height: min(72vh, 820px);
    }

    .player-wrap #livePlayer,
    #livePlayer {
        max-height: none;
        aspect-ratio: auto;
    }

    .fifa-matches-section {
        margin: 0 28px 24px;
    }

    .info-grid {
        padding: 0 28px 28px;
        gap: 20px;
    }

    body.mobile-view-watch .main {
        display: block;
        min-height: 0;
        padding-bottom: 0;
        scroll-padding-bottom: 0;
    }

    body.mobile-view-watch .topbar {
        display: flex;
        grid-template-columns: none;
        padding: 16px 28px;
        padding-top: 16px;
        background: rgba(8, 12, 24, 0.72);
    }

    body.mobile-view-watch .topbar-center {
        flex-direction: column;
        align-items: stretch;
    }

    body.mobile-view-watch .topbar-title h2::before {
        content: none;
        display: none;
    }

    body.mobile-view-watch .topbar-title p {
        padding-left: 0;
    }

    body.mobile-view-watch .random-btn {
        display: inline-flex;
    }

    body.mobile-view-watch .player-section,
    body.mobile-view-watch .fifa-hero,
    body.mobile-view-watch .matches-sidebar,
    body.mobile-view-watch .info-grid {
        order: initial;
    }

    body.mobile-view-watch .fifa-hero {
        display: block;
        margin: 18px 28px 0;
        padding: 18px 24px;
        border-radius: calc(var(--radius) + 4px);
    }

    body.mobile-view-watch .fifa-badge,
    body.mobile-view-watch .fifa-title,
    body.mobile-view-watch .fifa-sub {
        display: block;
    }

    body.mobile-view-watch .fifa-badge {
        display: inline-flex;
    }

    body.mobile-view-watch .fifa-hero-content::before {
        content: none;
        display: none;
    }

    body.mobile-view-watch .player-section {
        padding: 0 28px 24px;
    }

    body.mobile-view-watch .player-wrap {
        border-radius: calc(var(--radius) + 4px);
        border: 1px solid var(--panel-border);
        box-shadow: var(--shadow), 0 0 0 1px rgba(0, 201, 122, 0.08);
    }

    body.mobile-view-watch #livePlayer {
        aspect-ratio: 16 / 9;
        width: 100%;
        max-height: min(72vh, 820px);
    }

    body.mobile-view-watch .now-playing {
        margin: 18px 0 0;
        padding: 16px 18px;
        border-radius: var(--radius);
        background: var(--panel);
        border: 1px solid var(--panel-border);
        box-shadow: none;
    }

    body.mobile-view-watch .now-playing-logo {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    body.mobile-view-watch .fifa-matches-section {
        margin: 0 28px 0;
        padding: 20px;
        border-radius: var(--radius);
        background: linear-gradient(145deg, rgba(26, 95, 63, 0.28), rgba(16, 24, 43, 0.92));
        border: 1px solid rgba(255, 209, 102, 0.18);
    }

    body.mobile-view-watch .matches-sidebar {
        margin: 0 0 24px;
        gap: 16px;
    }

    body.mobile-view-watch .matches-sidebar .fifa-matches-section,
    body.mobile-view-watch .matches-sidebar .cricket-matches-section {
        margin-inline: 28px;
    }

    body.mobile-view-watch .info-grid {
        display: none !important;
    }

    .share-toast {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1200px) {
    :root {
        --sidebar-width: 360px;
    }

    body.mobile-view-watch .main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
        grid-template-areas:
            "head head"
            "promo promo"
            "video matches"
            "foot foot";
        column-gap: 24px;
        max-width: 1560px;
        margin-inline: auto;
        padding: 0 32px 36px;
        box-sizing: border-box;
    }

    body.mobile-view-watch .topbar {
        grid-area: head;
        margin-inline: -32px;
        padding-inline: 32px;
    }

    body.mobile-view-watch .fifa-hero {
        grid-area: promo;
        margin: 18px 0 0;
    }

    body.mobile-view-watch .player-section {
        grid-area: video;
        padding: 0 0 24px;
        min-width: 0;
    }

    body.mobile-view-watch .matches-sidebar {
        grid-area: matches;
        margin: 0 0 24px;
        align-self: start;
        position: sticky;
        top: 78px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 209, 102, 0.35) transparent;
    }

    body.mobile-view-watch .matches-sidebar .fifa-matches-section {
        margin: 0;
    }

    body.mobile-view-watch .matches-sidebar .cricket-matches-section {
        margin: 0;
    }

    body.mobile-view-watch .fifa-matches-section {
        max-height: none;
        overflow: visible;
        position: static;
    }

    body.mobile-view-watch .site-footer-watch {
        grid-area: foot;
        margin: 24px 0 0;
        width: 100%;
        align-self: stretch;
    }

    body.mobile-view-watch .fifa-matches-section::-webkit-scrollbar {
        width: 6px;
    }

    body.mobile-view-watch .matches-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    body.mobile-view-watch .fifa-matches-section::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255, 209, 102, 0.28);
    }

    body.mobile-view-watch .matches-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255, 209, 102, 0.28);
    }

    body.mobile-view-watch .info-grid {
        display: none !important;
    }

    body.mobile-view-watch #livePlayer {
        max-height: min(68vh, 780px);
    }
}

@media (min-width: 1400px) {
    :root {
        --sidebar-width: 380px;
    }
}

@media (min-width: 901px) and (max-width: 1080px) {
    body.mobile-view-watch .info-grid {
        grid-template-columns: 1fr;
    }

    .fifa-hero-content {
        grid-template-columns: 1fr;
    }

    .fifa-quick {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 8px;
    }
}
