/* ==========================================================================
   Base Theme
   ========================================================================== */
:root {
    --color-bg: #000000;
    --color-panel: #111111;
    --color-panel-dark: #0d0d0d;
    --color-text: #ffffff;
    --color-muted: #888888;
    --color-border: #333333;
    --color-accent: #ff3131;
    --color-accent-dark: #cc1f1f;
}
body {
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
}

/* ==========================================================================
   Layout Shell & Branding
   ========================================================================== */
.livestream-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 30px;
}
.brand-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}
.brand-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brand-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
    background: #000;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
}
.brand-nav {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}
.brand-logo {
    width: 100%;
}
.brand-info {
    width: 100%;
}
.brand-text {
    width: 100%;
}
.brand-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
    text-decoration: none;
}
.is-mobile .brand-identity {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.brand-identity > img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
}
.brand-identity > a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 6px 14px;
    border-radius: 10px;
}
.brand-identity > a img {
    border-radius: 6px;
}
.brand-logo img {
    max-height: 54px;
    width: auto;
}
.brand-countdown-strip {
    width: 100%;
    margin: -8px auto 16px;
    box-sizing: border-box;
}
.brand-countdown {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(18,19,24,0.88), rgba(9,10,13,0.94));
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    box-sizing: border-box;
}
.brand-countdown__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.brand-countdown__eyebrow {
    color: rgba(255,255,255,0.64);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.brand-countdown__title {
    color: #fff2d8;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.1;
}
.brand-countdown__status {
    min-height: 1em;
    color: #ffcf8a;
    font-size: 0.72rem;
    font-weight: 600;
}
.brand-countdown__clock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.brand-countdown__segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 8px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}
.brand-countdown__value {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.brand-countdown__label {
    color: rgba(255,255,255,0.72);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.brand-countdown__venue {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    color: rgba(255,255,255,0.82);
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: right;
}
.brand-countdown__venue-label {
    color: #ffcf8a;
    font-weight: 700;
}
.brand-countdown__venue-text {
    font-weight: 500;
}
.brand-title {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}
.brand-sponsor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
}
.is-mobile .brand-sponsor {
    justify-content: flex-start;
}
.brand-sponsor-text {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}
.brand-secondary-logo-link {
    display: flex;
    align-items: center;
    background: #000;
    padding: 6px 14px;
    border-radius: 10px;
}
.brand-secondary-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
    position: relative;
}
.brand-nav .brand-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
}
.brand-nav .brand-menu li a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}
.brand-feature-wrapper {
    width: 100%;
    background: #d08f27;
    border-radius: 10px;
    padding: 8px 12px 6px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.brand-feature-menu {
    width: 100%;
}
.brand-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.brand-feature-list li {
    flex: 0 1 150px;
    max-width: 180px;
    text-align: center;
}
.brand-feature-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    min-height: 70px;
}
.brand-feature-icon {
    display: block;
    line-height: 1;
}
.brand-feature-icon-text {
    font-size: 1.5rem;
}
.brand-feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.brand-feature-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}
.brand-notification {
    background: #050505;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
}
.brand-notification-icon {
    font-size: 1.2rem;
}
.share-notification {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    overflow: hidden;
}
.share-notification-icon {
    font-size: 1.2rem;
}
.share-notification-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.share-notification-text {
    display: inline-block;
    padding-left: 100%;
    animation: share-notice-scroll 18s linear infinite;
}
.share-sponsor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 12px 0 6px;
    gap: 6px;
}
.share-sponsor-logo {
    width: min(200px, 90vw);
    height: 50px;
    object-fit: contain;
    display: block;
}
.share-sponsor-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    color: #ffffff;
}
.share-sponsor-text--grow {
    animation: sponsor-text-grow 1.6s ease-in-out infinite;
}
.share-sponsor-text--flash {
    animation: sponsor-text-flash 1.2s steps(1, end) infinite;
}
.share-sponsor-text--float {
    animation: sponsor-text-float 2.4s ease-in-out infinite;
}
.share-sponsor-text--glow {
    animation: sponsor-text-glow 1.8s ease-in-out infinite;
}

@keyframes sponsor-text-grow {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes sponsor-text-flash {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes sponsor-text-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes sponsor-text-glow {
    0%,
    100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
}

@keyframes share-notice-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.livestream-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: flex-start;
    align-items: flex-start;
}
.livestream-wrapper.has-collapsed-league {
    justify-content: center;
}

/* ==========================================================================
   Banner Placements
   ========================================================================== */
/* Top Banner */
.top-banner img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
/* ==========================================================================
   League Sidebar
   ========================================================================== */
.left-panel {
    width: 280px;
    background: var(--color-panel);
    padding: 10px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.left-panel h3 {
    color: var(--color-text);
    margin-top: 0;
}
#leagueList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#leagueList li {
    padding: 8px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
#leagueList li span {
    flex: 1;
    white-space: normal;
}
#leagueList li:hover,
#leagueList li.active {
    background: #1d1d1d;
}
.league-list-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.league-box {
    max-height: 500px;
    overflow-y: auto;
}
.top-league-panel .league-box {
    max-height: none !important;
    overflow-y: visible !important;
}
.top-league-panel {
    height: auto;
    max-height: none;
}
.left-panel.is-hidden {
    display: none;
}
.livestream-wrapper.has-collapsed-league .left-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    display: block;
}
.livestream-wrapper.has-collapsed-league .left-panel.show {
    transform: translateX(0);
}
.livestream-wrapper.has-collapsed-league .left-panel.is-hidden {
    display: none;
}

/* ==========================================================================
   Sidebar Promotions
   ========================================================================== */
.sidebar-social {
    margin-top: 20px;
    text-align: center;
    padding: 18px 12px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #121212, #0a0a0a);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 12px 25px rgba(0,0,0,0.55);
}
.sidebar-social-subtitle {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-accent);
    text-transform: uppercase;
}
.sidebar-social-title {
    margin: 6px 0 15px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}
.sidebar-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.sidebar-social-icons .social-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sidebar-social-icons .social-icon span {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
.sidebar-social-icons .social-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}
.sidebar-social-icons .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.55);
    background: rgba(255,255,255,0.07);
}
.sidebar-latest-posts {
    margin-top: 20px;
    padding: 18px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #111, #0a0a0a);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    text-align: left;
}
.sidebar-latest-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-latest-posts li a {
    color: #f5ba45;
    text-decoration: none;
    font-weight: 600;
}
.sidebar-latest-posts li a:hover {
    text-decoration: underline;
}
/* ==========================================================================
   Match Feed & Controls
   ========================================================================== */
.right-panel {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
}
.livestream-wrapper.has-collapsed-league .right-panel {
    max-width: 1200px;
    width: 100%;
}
.top-banner.compact {
    max-width: 100%;
    margin-bottom: 15px;
}
.top-banner.compact img {
    max-height: none;
    object-fit: contain;
}
.header-banner-stack {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.header-banner-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    width: 100%;
}
.header-banner-item a {
    display: inline-block;
}
.header-banner-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.date-buttons {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}
.filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-search .search-field {
    flex: 0 1 220px;
}
.controls-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.search-field {
    flex: 0 1 220px;
    min-width: 200px;
}
.search-field input {
    background: #111;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 180px;
    padding-left: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 3a7.5 7.5 0 105.276 13.005l3.61 3.61a1 1 0 001.414-1.414l-3.61-3.61A7.5 7.5 0 0010.5 3zm0 2a5.5 5.5 0 110 11 5.5 5.5 0 010-11z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}
.search-field input::placeholder {
    color: var(--color-muted);
}
.current-date {
    color: var(--color-accent);
    font-weight: 600;
    white-space: nowrap;
}
.current-date-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    flex: 0 0 auto;
}
.login-trigger {
    border: 0;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.login-trigger:hover,
.login-trigger:focus-visible {
    background: var(--color-accent-dark);
    outline: none;
}
.login-trigger:active {
    transform: scale(0.97);
}
.register-trigger {
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    background: transparent;
    color: var(--color-accent);
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.register-trigger:hover,
.register-trigger:focus-visible {
    background: var(--color-accent);
    color: #000;
    outline: none;
}
.register-trigger:active {
    transform: scale(0.97);
}
.date-btn {
    padding: 6px 15px;
    margin-right: 0;
    background: var(--color-panel);
    color: var(--color-text);
    border: 1px solid #444;
}
.date-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ==========================================================================
   Player Module
   ========================================================================== */
.player-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    background: var(--color-panel);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.player-wrapper:not(.has-selection) {
    display: none;
}
.player-wrapper.has-selection {
    border-color: var(--color-accent);
}
.player-headline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.player-hint {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.player-message {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    padding: 18px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}
.current-match {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
.player-wrapper.has-selection .current-match {
    color: var(--color-accent);
}
.channel-btn {
    border: 1px solid var(--color-accent);
    color: #111111;
    background: var(--color-accent);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
}
.channel-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.channel-btn__icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}
.channel-btn:hover {
    border-color: var(--color-accent-dark);
    background: var(--color-accent-dark);
    color: #ffffff;
    transform: translateY(-1px);
}
.league-section {
    margin-bottom: 20px;
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
}
.league-title {
    background: #2b2b2b;
    color: #fff;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.league-title .league-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.match-row {
    font-size: 1rem;
}
.match-row {
    display: grid;
    grid-template-columns: 120px 1.2fr 50px 1.2fr minmax(100px, 180px);
    column-gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #222;
    align-items: center;
    background: #0f0f0f;
}
.league-section .match-row:last-child {
    border-bottom: 0;
}
.match-row > .match-time {
    min-width: 200px;
    white-space: normal;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: inherit;
}
.match-time .match-date .match-clock .match-home .match-away .match-score .match-status .match-action {
    font-size: inherit;
}
.match-home {
    text-align: right;
}
.match-home .team-cell {
    justify-content: flex-end;
}
.match-away {
    text-align: left;
}
.match-away .team-cell {
    justify-content: flex-start;
}
.team-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.team-cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}
.team-cell span {
    display: inline-block;
}
.match-score {
    text-align: center;
    letter-spacing: 1px;
}
.match-status {
    display: none;
}
.match-action {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.match-action .channel-btn {
    font-size: 0.75rem;
}
.match-row.empty {
    grid-template-columns: 1fr;
    text-align: center;
    color: #aaa;
}


.footer-banner-stack {
    margin-top: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.footer-banner-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.footer-banner-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Sticky Bottom Banner */
.sticky-bottom-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.95);
    padding: 6px 6px 6px 6px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    gap: 10px;
}
.sticky-bottom-banner a {
    display: block;
}
.sticky-bottom-banner img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}
.sticky-banner-close {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.sticky-bottom-banner.is-hidden {
    display: none !important;
}
body.has-sticky-banner {
    padding-bottom: 120px;
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */
@media (max-width: 1100px) {

.livestream-wrapper {
        flex-direction: column;
    }

    .left-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }
    .top-league-panel {
        height: auto;
        max-height: none;
        padding-bottom: 20px;
    }
    .left-panel.show {
        transform: translateX(0);
    }
    .left-panel .league-box {
        max-height: calc(100vh - 80px);
    }

    .controls-right {
        flex: 1;
        justify-content: flex-end;
    }

    .right-panel {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 20px;
        position: relative;
    }
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */
@media (max-width: 900px) {

    .date-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .controls-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .search-field input {
        width: 100%;
        min-width: 0;
    }
    .sticky-bottom-banner {
        display: block;
    }
}

@media (max-width: 600px) {
    .brand-bar {
        padding-top: 10px;
    }
    .brand-countdown-strip {
        margin: -2px auto 12px;
    }
    .brand-countdown {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    .brand-countdown__meta,
    .brand-countdown__venue {
        text-align: center;
        justify-content: center;
    }
    .brand-countdown__title {
        font-size: 0.92rem;
    }
    .brand-countdown__clock {
        width: 100%;
        min-width: 0;
        gap: 4px;
    }
    .brand-countdown__segment {
        min-width: 0;
        padding: 7px 2px 6px;
    }
    .brand-countdown__value {
        font-size: 1rem;
    }
    .brand-countdown__label,
    .brand-countdown__venue {
        font-size: 0.58rem;
    }
    .brand-countdown__label {
        letter-spacing: 0.03em;
    }
    .brand-nav .brand-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .brand-nav .brand-menu li a {
        font-size: 2rem;
        line-height: 1.2;
    }
    .match-row {
        grid-template-columns: 140px 1fr 60px 1fr;
        grid-template-areas:
            "time home score action"
            "time away score action";
        row-gap: 6px;
    }
    .match-row > .match-time {
        grid-area: time;
    }
    .match-row > .match-home {
        grid-area: home;
        text-align: left;
    }
    .match-row > .match-away {
        grid-area: away;
        text-align: left;
    }
    .match-row > .match-score {
        grid-area: score;
        text-align: center;
    }
    .match-row > .match-action {
        grid-area: action;
        text-align: right;
        align-self: center;
    }
    .controls-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .search-field {
        flex: 1;
        width: 100%;
    }
    .search-field input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .login-trigger {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .register-trigger {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 900px) {
    .brand-bar {
        padding-top: 10px;
    }
    .brand-nav {
        position: static;
        width: 100%;
        text-align: right;
        margin-bottom: 10px;
    }
    .brand-info {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
}

body.is-mobile .left-panel h3,
body.is-mobile #leagueList li,
body.is-mobile .league-title {
    font-size: 2.5rem;
}
body.is-mobile .match-row {
    font-size: 2rem;
}
body.is-mobile .left-panel {
    width: 800px;
}
body.is-mobile .left-panel .league-box {
    max-height: calc(100vh - 80px);
}
body.is-mobile .date-buttons {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}
body.is-mobile .controls-right {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
body.is-mobile .search-field {
    flex: 1;
    display: none;
}
body.is-mobile .search-field input {
    width: 50%;
    font-size: 2rem;
    padding: 8px 12px;
    background-image: none;
}
body.is-mobile .current-date-group {
    order: -1;
}
body.is-mobile .current-date {
    font-size: 2rem;
}
body.is-mobile .date-btn {
    font-size: 2rem;
}
body.is-mobile .brand-nav .brand-menu li a {
    font-size: 2rem;
}
body.is-mobile .brand-identity,
body.is-mobile .brand-identity span {
    font-size: 2rem;
}
body.is-mobile .brand-identity {
    flex-wrap: wrap;
}
body.is-mobile .brand-identity > [data-banner-id],
body.is-mobile .brand-text > [data-banner-id] {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
}
body.is-mobile .brand-identity > [data-banner-id] .gfpl-wrapper,
body.is-mobile .brand-text > [data-banner-id] .gfpl-wrapper {
    max-width: 100%;
}
body.is-mobile .brand-sponsor {
    display: contents;
}
body.is-mobile .brand-sponsor > [data-banner-id] {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
}
body.is-mobile .brand-sponsor > [data-banner-id] .gfpl-wrapper {
    max-width: 100%;
}
body.is-mobile .brand-sponsor > [data-banner-id] .gfpl-wrapper,
body.is-mobile .brand-sponsor > [data-banner-id] .gfpl-wrapper iframe {
    width: min(100%, 300px) !important;
}
body.is-mobile .brand-secondary-logo {
    height: 72px;
    top: -10px;
}
body.is-mobile .brand-feature-wrapper {
    padding: 20px 10px 10px;
}
body.is-mobile .brand-feature-list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 4px;
    width: 100%;
}
body.is-mobile .brand-feature-list li {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
body.is-mobile .brand-feature-icon img {
    width: 40px;
    height: 40px;
}
body.is-mobile .brand-feature-label {
    font-size: 1.2rem;
}
body.is-mobile .share-notification-text {
    animation-duration: 12s;
}
body.is-mobile .live-score-wrapper {
    max-height: 600px;
    overflow: auto;
}
body.is-mobile .live-score-wrapper iframe {
    height: 600px;
}
body.is-mobile .highlight-wrapper .rows {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.is-mobile .highlight-wrapper .column {
    width: 100% !important;
}
body.is-mobile .news-hero-image {
    width: 45%;
    max-width: 200px;
}
body.is-mobile .news-hero-content p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.is-mobile .news-card-image {
    max-height: 160px;
}
body.is-mobile .news-card-body p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.is-mobile .livestream-footer-intro,
body.is-mobile .livestream-footer,
body.is-mobile .livestream-footer-copy {
    font-size: 2rem;
}
body.is-mobile .news-cat-btn,
body.is-mobile .news-meta,
body.is-mobile .news-hero,
body.is-mobile .news-card-body p,
body.is-mobile .single-article-content,
body.is-mobile .single-article-content p,
body.is-mobile .single-article-meta {
    font-size: 2rem;
}
body.is-mobile .single-article-cats a {
    font-size: 1.8rem;
}
body.is-mobile .news-section.has-sidebar {
    grid-template-columns: 1fr;
}
body.is-mobile .news-sidebar {
    display: none !important;
}

.startup-banner {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.startup-banner.is-visible {
    display: flex;
}
body.startup-banner-open {
    overflow: hidden;
}
.startup-banner__panel {
    position: relative;
    width: min(840px, 96vw);
    border-radius: 20px;
    padding: 28px;
    background: #050505;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65);
}
.startup-banner__icon {
    position: absolute;
    top: -32px;
    left: 32px;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.startup-banner__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.startup-banner__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.startup-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background 0.3s ease;
}
.startup-banner__close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.startup-banner__close.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.is-mobile .startup-banner__close {
    width: 4rem;
    height: 4rem;
    font-size: 3rem;
}

.live-score-wrapper {
    margin-top: 30px;
    padding: 10px;
    border-radius: 18px;
    background: var(--color-panel);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    max-height: 600px;
    overflow: auto;
}
.live-score-wrapper iframe {
    border: none;
    border-radius: 12px;
    width: 100%;
    height: 600px;
}
.highlight-wrapper {
    margin-top: 30px;
    padding: 18px 18px 10px;
    border-radius: 18px;
    background: var(--color-panel);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    max-height: none;
    overflow: visible;
}
.highlight-wrapper .rows {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.highlight-wrapper .column {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}
.highlight-wrapper .column > a {
    display: block;
}
.highlight-wrapper .column img {
    width: 100%;
    border-radius: 12px;
    display: block;
}
.highlight-wrapper .column .dataTitle {
    margin-top: 6px;
}
.highlight-wrapper .rows::after {
    display: none !important;
}
.highlights-error {
    color: #fff;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .startup-banner {
        padding: 16px;
    }
    .startup-banner__panel {
        width: min(95vw, 560px);
        padding: 22px;
        border-radius: 18px;
    }
    .startup-banner__icon {
        top: -24px;
        left: 16px;
        width: 60px;
        height: 60px;
    }
    .startup-banner__close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .live-score-wrapper {
        margin-top: 24px;
        padding: 8px;
        border-radius: 14px;
    }
    .live-score-wrapper iframe {
        border-radius: 10px;
    }
}

.matchlist-disabled .left-panel,
.matchlist-disabled .date-buttons,
.matchlist-disabled #matchList,
.matchlist-disabled .sticky-bottom-banner,
.matchlist-disabled .filter-buttons,
.matchlist-disabled .controls-right {
    display: none !important;
}
.matchlist-disabled .right-panel {
    max-width: 1200px;
    margin: 0 auto;
}

#modal-wrapper {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
body.is-show-modal #modal-wrapper,
#modal-wrapper.is-active {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   News & Articles
   ========================================================================== */
.news-section {
    width: 100%;
    margin: 40px 0 60px;
    box-sizing: border-box;
}
.news-section.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
    align-items: flex-start;
}
.news-section.no-sidebar .news-content {
    width: 100%;
}
.news-content {
    flex: 1;
    min-width: 0;
}
.news-section.has-sidebar .news-content {
    flex: 1 1 auto;
}
.news-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.news-cat-btn {
    display: inline-block;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text);
    text-decoration: none;
    background: rgba(224, 149, 23, 0.15);
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

/* ==========================================================================
   Menu Popup Modal
   ========================================================================== */
.menu-popup[hidden] {
    display: none;
}
.menu-popup {
    position: fixed;
    inset: 0;
    z-index: 12000;
}
.menu-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}
.menu-popup__panel {
    position: relative;
    max-width: 420px;
    margin: 12vh auto 0;
    background: #050505;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    padding: 20px 20px 16px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-popup__header h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
}
.menu-popup__body {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}
.menu-popup__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.menu-popup-open body {
    overflow: hidden;
}
.menu-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.menu-popup__btn--primary {
    background: var(--color-accent, #dd9933);
    color: #0b0b0b;
    border-color: var(--color-accent, #dd9933);
}
.menu-popup__btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 540px) {
    .menu-popup__panel {
        margin: 16vh 16px 0;
    }
}
.news-cat-btn.active,
.news-cat-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.news-title {
    margin: 10px 0 20px;
    font-size: 1.5rem;
}
.news-hero {
    display: flex;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 15px;
    background: var(--color-panel);
    margin-bottom: 25px;
}
.news-hero-image,
.news-card-image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-hero-image img,
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-hero-image {
    width: 320px;
    max-width: 40%;
}
.news-hero-content h3 {
    margin: 0 0 10px;
}
.news-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.news-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: var(--color-panel-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.news-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.news-card-body h4 {
    margin: 0;
    font-size: 1rem;
}
.news-placeholder {
    width: 100%;
    padding-top: 63%;
    background: rgba(255,255,255,0.05);
}
.news-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.single-post-container {
    padding-top: 30px;
}
.single-post-layout .news-content {
    width: 100%;
}
.single-article {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--color-panel);
    padding: 25px;
    color: var(--color-text);
}
.single-article-head h1 {
    margin: 10px 0 20px;
    font-size: 2rem;
}
.single-article-hero {
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
}
.single-article-hero img {
    display: block;
    width: 100%;
    height: auto;
}
.single-article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}
.single-article-cats a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-accent);
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}
.single-article-cats a:hover {
    background: transparent;
    color: var(--color-text);
}
.single-article-content {
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}
.single-article-content p {
    margin-bottom: 1.2em;
}
.news-pagination {
    margin: 20px 0;
    text-align: center;
}
.news-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}
.news-pagination .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ==========================================================================
   Guest Chatroom
   ========================================================================== */
.livestream-chat {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 12px;
    position: relative;
    margin: 18px 0;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10,10,10,0.92);
    color: var(--color-text);
    font-size: 1rem;
}
.livestream-chat,
.livestream-chat * {
    box-sizing: border-box;
}
.livestream-chat__sidebar,
.livestream-chat__main {
    min-width: 0;
}
.livestream-chat__sidebar {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    background: rgba(255,255,255,0.035);
}
.livestream-chat__sidebar-head,
.livestream-chat__header,
.livestream-chat__composer,
.livestream-chat__create {
    display: flex;
    align-items: center;
    gap: 8px;
}
.livestream-chat__sidebar-head {
    justify-content: space-between;
    margin-bottom: 10px;
}
.livestream-chat h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
}
.livestream-chat__admin,
.livestream-chat__create button,
.livestream-chat__composer button {
    border: 0;
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}
.livestream-chat__admin {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.livestream-chat__rooms {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}
.livestream-chat__room-wrap {
    display: flex;
    align-items: stretch;
    gap: 4px;
}
.livestream-chat__room {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.livestream-chat__room.is-active {
    border-color: rgba(255,49,49,0.75);
    background: rgba(255,49,49,0.2);
}
.livestream-chat__room-delete {
    display: none;
    width: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,49,49,0.5);
    background: rgba(255,49,49,0.16);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}
.livestream-chat.is-admin-mode .livestream-chat__room-delete {
    display: inline-flex;
}
.livestream-chat__room-delete:hover,
.livestream-chat__room-delete:focus-visible {
    background: rgba(255,49,49,0.35);
    outline: none;
}
.livestream-chat__create {
    margin-top: 10px;
}
.livestream-chat__create input,
.livestream-chat__composer input {
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.5);
    color: var(--color-text);
    outline: none;
}
.livestream-chat__create input {
    width: 100%;
    height: 34px;
    padding: 0 9px;
}
.livestream-chat__create button {
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.livestream-chat__hint {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
    line-height: 1.35;
}
.livestream-chat__main {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 12px;
}
.livestream-chat__header {
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.livestream-chat__eyebrow,
.livestream-chat__status {
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
}
.livestream-chat__status {
    text-align: right;
}
.livestream-chat__rooms-toggle {
    display: none;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: var(--color-text);
    cursor: pointer;
}
.livestream-chat__rooms-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.livestream-chat__messages {
    flex: 1;
    height: 260px;
    overflow: auto;
    padding: 12px 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 1rem;
    line-height: 1.45;
}
.livestream-chat__message {
    display: grid;
    grid-template-columns: 64px minmax(70px, 120px) minmax(0, 1fr);
    gap: 10px;
    padding: 3px 0;
}
.livestream-chat.is-admin-mode .livestream-chat__message {
    grid-template-columns: 64px minmax(70px, 120px) minmax(0, 1fr) 24px;
}
.livestream-chat__message.is-admin .livestream-chat__nick {
    color: #ffd166;
}
.livestream-chat__message.is-bot .livestream-chat__nick {
    color: #fbbf24;
}
.livestream-chat__message.is-bot .livestream-chat__text {
    color: rgba(255,255,255,0.88);
}
.livestream-chat__time {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    white-space: nowrap;
}
.livestream-chat__nick {
    color: #6ee7ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.livestream-chat__text {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.livestream-chat__delete {
    display: none;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.livestream-chat.is-admin-mode .livestream-chat__delete {
    display: inline-flex;
}
.livestream-chat__delete:hover,
.livestream-chat__delete:focus-visible {
    border-color: rgba(229,43,43,0.82);
    color: #fff;
    background: rgba(229,43,43,0.28);
}
.livestream-chat__empty {
    color: rgba(255,255,255,0.56);
    padding: 12px 0;
}
.livestream-chat__composer {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.livestream-chat__composer input {
    height: 38px;
    padding: 0 10px;
}
.livestream-chat__composer input:disabled,
.livestream-chat__composer button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
#livestreamChatNick {
    width: 150px;
    flex: 0 0 150px;
}
#livestreamChatMessage {
    flex: 1 1 auto;
}
.livestream-chat__composer button {
    height: 38px;
    padding: 0 18px;
    border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.livestream-footer {
    padding: 30px 15px 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text);
}
.livestream-footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.livestream-footer-icons a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.livestream-footer-icons a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.livestream-footer-icons a:hover {
    transform: translateY(-2px);
}
.livestream-footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--color-text);
}
.livestream-footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}
.livestream-footer-links span {
    color: rgba(255,255,255,0.4);
}
.livestream-footer-intro {
    max-width: 1100px;
    margin: 30px auto 40px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    text-align: left;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
}
.livestream-footer-intro h1 {
    text-align: center;
}
.livestream-footer-intro p:last-child {
    margin-bottom: 0;
}
.livestream-footer-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.livestream-footer-intro {
    margin-bottom: 24px;
}
.livestream-footer-intro p {
    margin-bottom: 1.2em;
}
.maincontainer {
    max-width: 1200px;
    margin: 30px auto 40px;
}
.rowarea {
    display: flex;
    align-items: center;
}
.livestream-box2 {
    width: 100%;
}
.footerlogo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
}
.footerlogo img {
    height: 40px;
    margin-right: 5px;
}

@media (min-width: 320px) and (max-width: 768px) {
    .rowarea {
        flex-flow: column;
    }
}

@media (max-width: 1200px) {
    .livestream-chat {
        grid-template-columns: 1fr;
        gap: 0;
        font-size: 2rem;
    }
    .livestream-chat__sidebar {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        z-index: 8;
        width: min(440px, calc(100% - 24px));
        max-height: calc(100% - 84px);
        overflow: auto;
        border-right: 1px solid rgba(255,255,255,0.12);
        border-bottom: 1px solid rgba(255,255,255,0.12);
        background: rgba(8,8,8,0.98);
        box-shadow: 10px 16px 30px rgba(0,0,0,0.42);
    }
    .livestream-chat__sidebar-head {
        gap: 12px;
        margin-bottom: 14px;
    }
    .livestream-chat__sidebar h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .livestream-chat__admin {
        min-height: 48px;
        padding: 8px 12px;
        font-size: 1.55rem;
        line-height: 1.1;
    }
    .livestream-chat__hint {
        font-size: 1.45rem;
        line-height: 1.35;
    }
    .livestream-chat.is-rooms-open .livestream-chat__sidebar {
        display: block;
    }
    .livestream-chat__rooms-toggle {
        display: inline-flex;
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        gap: 6px;
    }
    .livestream-chat__rooms-toggle span {
        width: 26px;
        height: 3px;
    }
    .livestream-chat__rooms {
        flex-direction: column;
        overflow-x: visible;
        max-height: 220px;
        padding-bottom: 0;
    }
    .livestream-chat__room-wrap {
        width: 100%;
    }
    .livestream-chat__room {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 58px;
        padding: 8px 12px;
    }
    .livestream-chat__room-delete {
        width: 58px;
        flex-basis: 58px;
        font-size: 2rem;
    }
    .livestream-chat__main {
        min-height: 320px;
        padding: 12px 10px;
    }
    .livestream-chat__header {
        align-items: flex-start;
        gap: 14px;
        flex-wrap: nowrap;
    }
    .livestream-chat__header > div:first-of-type {
        min-width: 0;
        flex: 1 1 auto;
    }
    .livestream-chat__header h2 {
        font-size: 2rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .livestream-chat__status {
        flex: 0 0 auto;
        max-width: 24%;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .livestream-chat__composer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .livestream-chat__messages {
        font-size: 2rem;
        line-height: 1.55;
        height: auto;
        min-height: 120px;
        max-height: 15.5em;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px 4px;
    }
    .livestream-chat__message,
    .livestream-chat.is-admin-mode .livestream-chat__message {
        grid-template-columns: max-content minmax(70px, max-content) minmax(0, 1fr);
        gap: 12px;
        align-items: baseline;
        padding: 6px 0;
    }
    .livestream-chat__text {
        grid-column: auto;
        padding-left: 0;
    }
    .livestream-chat__delete {
        grid-column: 1 / -1;
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }
    .livestream-chat__eyebrow,
    .livestream-chat__status,
    .livestream-chat__time {
        font-size: 2rem;
    }
    .livestream-chat__composer input,
    .livestream-chat__composer button,
    .livestream-chat__create input,
    .livestream-chat__create button,
    .livestream-chat__room {
        font-size: 2rem;
        line-height: 1.2;
    }
    .livestream-chat__composer input,
    .livestream-chat__composer button,
    .livestream-chat__create input,
    .livestream-chat__create button {
        height: 58px;
        padding: 0 12px;
    }
    #livestreamChatNick {
        width: 100%;
        flex: 1 1 100%;
    }
    #livestreamChatMessage {
        flex-basis: 100%;
        order: 2;
    }
    .livestream-chat__composer button {
        flex: 0 0 auto;
        order: 3;
    }
    .news-section.has-sidebar {
        display: flex;
        flex-direction: column;
    }
    .news-sidebar {
        display: none;
    }
    .news-hero {
        flex-direction: column;
    }
    .news-hero-image {
        width: 100%;
        max-width: unset;
    }
}
.news-cat-btn {
    display: inline-block;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text);
    text-decoration: none;
    background: rgba(224, 149, 23, 0.15);
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}
