/* Watch with Falcons (shared section) - extracted from matches.css
   Scoped to watch-related classes only to avoid overriding page-level layouts on other pages. */

/* Watch with Falcons Section */
.watch-with-falcons {
    padding: 3.5rem 0;
    background: linear-gradient(160deg, rgba(8, 14, 18, 0.95), rgba(12, 19, 25, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.watch-with-falcons .container {
    max-width: 1200px;
    margin: 0 auto;
}

.watch-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.watch-head-text {
    max-width: 640px;
    text-align: center;
}

.watch-with-falcons .section-eyebrow {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #01BE6E;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.watch-head-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    color: var(--text-color);
    margin: 0;
}

.watch-head-text p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.watch-follow-note {
    text-align: center;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    font-size: 0.90rem;
}

.watch-head-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    width: 100%;
}

.watch-featured-player {
    width: 50%;
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 10, 14, 0.75);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    display: none;
}

.watch-featured-player.active {
    display: block;
}

.watch-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.watch-featured-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #01BE6E;
    margin: 0 0 0.25rem;
}

.watch-featured-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.watch-featured-platform {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.watch-featured-frame {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #05090d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-featured-frame iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

.watch-featured-fallback {
    padding: 1.5rem;
    text-align: center;
}

.watch-featured-fallback p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.watch-featured-fallback a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.watch-featured-fallback a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #01BE6E;
}

.watch-refresh-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-refresh-btn:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

.watch-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.watch-streamers {
    margin-top: 2.5rem;
    position: relative;
}

/* Streamers Loading State */
.watch-streamers-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 280px;
}

.watch-streamers-loading p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.loading-spinner--streamers {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #01BE6E;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* Show loading state and hide grid when loading */
.watch-with-falcons[data-loading="true"] .watch-streamers-loading {
    display: flex;
}

.watch-with-falcons[data-loading="true"] .watch-cards-grid {
    display: none;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state {
    display: none !important;
}

[data-theme="light"] .watch-streamers-loading p {
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .loading-spinner--streamers {
    border-color: rgba(11, 20, 29, 0.1);
    border-top-color: #01BE6E;
}

.watch-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.1rem;
    justify-items: center;
}

.watch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 220px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    align-items: center;
    text-align: center;
}

.watch-card.live {
    border-color: rgba(255, 80, 80, 0.5);
    box-shadow: 0 15px 30px rgba(255, 80, 80, 0.15);
}

.watch-card:hover {
    transform: translateY(-6px);
    border-color: rgba(1, 190, 110, 0.5);
}

.watch-card:focus-visible {
    outline: 2px solid #01BE6E;
    outline-offset: 3px;
}

.watch-card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: 100%;
}

.watch-status-pill {
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

.watch-status-pill.live {
    background: rgba(255, 78, 78, 0.15);
    border-color: rgba(255, 78, 78, 0.4);
    color: #ff8484;
}

.watch-status-pill.offline {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.watch-status-pill .platform-name {
    font-weight: 700;
}

.watch-status-pill.live .platform-youtube,
.watch-status-pill.offline .platform-youtube {
    color: #FF0000 !important;
}

.watch-status-pill.live .platform-twitch,
.watch-status-pill.offline .platform-twitch {
    color: #9146FF !important;
}

.watch-status-pill.live .platform-kick,
.watch-status-pill.offline .platform-kick {
    color: #53FC18 !important;
}

.watch-status-pill.live .platform-x,
.watch-status-pill.offline .platform-x {
    color: #1DA1F2 !important;
}

.watch-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.watch-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(1, 190, 110, 0.35);
    background: #0b141a;
}

.watch-info {
    width: 100%;
}

.watch-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
}

.watch-info p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

.watch-platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

.watch-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 14px;
    border: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 46px;
    font-weight: 600;
    color: #ffffff;
}

.watch-platform-badge:hover {
    transform: translateY(-2px);
}

.watch-platform-badge.platform-twitch {
    background: linear-gradient(135deg, #6f2cfa, #9146ff);
    box-shadow: 0 12px 24px rgba(110, 44, 250, 0.35);
}

.watch-platform-badge.platform-twitch:hover {
    box-shadow: 0 16px 28px rgba(110, 44, 250, 0.45);
}

.watch-platform-badge.platform-youtube {
    background: linear-gradient(135deg, #ff2e2e, #ff5f5f);
    box-shadow: 0 12px 24px rgba(255, 46, 46, 0.35);
}

.watch-platform-badge.platform-youtube:hover {
    box-shadow: 0 16px 28px rgba(255, 46, 46, 0.45);
}

.watch-platform-badge.platform-kick {
    background: #00ff95;
    color: #032818;
    box-shadow: 0 12px 24px rgba(0, 255, 149, 0.35);
}

.watch-platform-badge.platform-kick:hover {
    box-shadow: 0 16px 30px rgba(0, 255, 149, 0.45);
}

.watch-platform-badge.platform-x {
    background: linear-gradient(135deg, #111111, #1f1f1f);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.watch-platform-badge.platform-x:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.watch-platform-badge.live {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 18px 36px rgba(255, 80, 80, 0.25);
}

.watch-platform-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.watch-platform-badge.platform-kick img {
    width: 20px;
    height: 20px;
}

.watch-empty-state {
    display: none;
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.watch-empty-state.active {
    display: block;
}

.watch-empty-content {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(0);
}

.watch-empty-state i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.6rem;
    display: block;
}

.watch-empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
    text-transform: capitalize;
}

.watch-empty-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.watch-empty-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(6, 12, 18, 0.55);
    z-index: 2;
}

.loading-spinner--watch {
    width: 78px;
    height: 78px;
    border-width: 5px;
    margin: 0;
}

.watch-with-falcons[data-loading="true"] {
    pointer-events: none;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state {
    position: relative;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state.active .watch-empty-loader {
    display: flex;
}

.watch-with-falcons[data-loading="true"] .watch-empty-state.active .watch-empty-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.watch-with-falcons[data-loading="true"] .watch-refresh-btn {
    opacity: 0.6;
    pointer-events: none;
}

[data-theme="light"] .watch-with-falcons {
    background: linear-gradient(160deg, rgba(243, 246, 250, 0.98), rgba(233, 239, 244, 0.92));
    border-bottom: 1px solid rgba(11, 20, 29, 0.08);
}

[data-theme="light"] .watch-head-text h2 {
    color: #0b141d;
}

[data-theme="light"] .watch-head-text p,
[data-theme="light"] .watch-follow-note {
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .watch-featured-player {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(11, 20, 29, 0.08);
    box-shadow: 0 16px 36px rgba(11, 20, 29, 0.12);
}

[data-theme="light"] .watch-featured-header h3 {
    color: #0b141d;
}

[data-theme="light"] .watch-featured-platform {
    border-color: rgba(11, 20, 29, 0.15);
    color: rgba(11, 20, 29, 0.75);
}

[data-theme="light"] .watch-featured-frame {
    background: rgba(8, 12, 16, 0.8);
    border-color: rgba(11, 20, 29, 0.08);
}

[data-theme="light"] .watch-featured-fallback p {
    color: rgba(11, 20, 29, 0.7);
}

[data-theme="light"] .watch-featured-fallback a {
    border-color: rgba(11, 20, 29, 0.2);
    color: #0b141d;
}

[data-theme="light"] .watch-featured-fallback a:hover {
    background: rgba(11, 20, 29, 0.05);
    color: #01BE6E;
}

[data-theme="light"] .watch-refresh-btn {
    border-color: rgba(11, 20, 29, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #0b141d;
}

[data-theme="light"] .watch-card {
    background: #ffffff;
    border-color: rgba(11, 20, 29, 0.08);
    box-shadow: 0 18px 38px rgba(13, 26, 34, 0.08);
}

[data-theme="light"] .watch-card.live {
    border-color: rgba(255, 80, 80, 0.35);
    box-shadow: 0 18px 38px rgba(255, 80, 80, 0.18);
}

[data-theme="light"] .watch-card-status {
    color: #0b141d;
}

[data-theme="light"] .watch-status-pill.offline {
    background: rgba(11, 20, 29, 0.07);
    border-color: rgba(11, 20, 29, 0.12);
    color: rgba(11, 20, 29, 0.7);
}

[data-theme="light"] .watch-info h3 {
    color: #071019;
}

[data-theme="light"] .watch-info p {
    color: rgba(11, 20, 29, 0.65);
}

[data-theme="light"] .watch-empty-state {
    border-color: rgba(11, 20, 29, 0.12);
    background: rgba(11, 20, 29, 0.02);
}

[data-theme="light"] .watch-empty-state h3,
[data-theme="light"] .watch-empty-state p {
    color: rgba(11, 20, 29, 0.75);
}

/* Modal player */
.watch-player-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(3, 6, 10, 0.85);
    backdrop-filter: blur(14px);
    z-index: 1300;
}

.watch-player-modal.open {
    display: flex;
}

.watch-player-dialog {
    width: min(960px, 100%);
    background: #060d13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 35px 80px rgba(3, 6, 10, 0.6);
    z-index: 2;
}

.watch-player-backdrop {
    position: absolute;
    inset: 0;
}

.watch-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.watch-player-eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #01BE6E;
    margin: 0 0 0.3rem;
}

.watch-player-header h3 {
    margin: 0;
    color: #ffffff;
}

.watch-player-platform {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.watch-player-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.watch-player-close:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

.watch-player-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.watch-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.watch-player-fallback {
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 19, 0.95);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.watch-player-fallback[hidden] {
    display: none !important;
}

.watch-player-fallback a {
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.watch-player-fallback a:hover {
    border-color: #01BE6E;
    color: #01BE6E;
}

body.watch-player-open {
    overflow: hidden;
}

[data-theme="light"] .watch-player-dialog h3 {
    color: #0b141d;
}

[data-theme="light"] .watch-player-modal {
    background: rgba(241, 244, 247, 0.9);
}

[data-theme="light"] .watch-player-dialog {
    background: #ffffff;
    border-color: rgba(11, 20, 29, 0.08);
    box-shadow: 0 35px 80px rgba(13, 26, 34, 0.2);
}

[data-theme="light"] .watch-player-header h3 {
    color: #0b141d;
}

[data-theme="light"] .watch-player-platform {
    border-color: rgba(11, 20, 29, 0.15);
    color: rgba(11, 20, 29, 0.8);
}

[data-theme="light"] .watch-player-close {
    border-color: rgba(11, 20, 29, 0.15);
    background: rgba(11, 20, 29, 0.05);
    color: #0b141d;
}

[data-theme="light"] .watch-player-close:hover {
    color: #01BE6E;
}

[data-theme="light"] .watch-player-fallback {
    background: rgba(250, 250, 250, 0.95);
    color: #0b141d;
}

[data-theme="light"] .watch-player-fallback a {
    border-color: rgba(11, 20, 29, 0.2);
    color: #0b141d;
}

[data-theme="light"] .watch-player-fallback a:hover {
    border-color: rgba(1, 190, 110, 0.5);
    color: #01BE6E;
}

@media (max-width: 768px) {
    .watch-player-dialog {
        padding: 1rem;
        border-radius: 18px;
    }

    .watch-player-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }

    html[dir="rtl"] .watch-player-header {
        align-items: flex-end;
        text-align: end;
    }

    .watch-featured-frame iframe {
        height: 320px;
    }
}

html[dir="rtl"] .watch-player-header {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    .watch-head-actions {
        justify-content: center;
    }

    .watch-featured-player {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .watch-head-actions,
    .watch-refresh-btn,
    .watch-follow-note {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .watch-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .watch-featured-player {
        width: 70%;
    }
}

html[dir="rtl"] .watch-head {
    flex-direction: column;
}

html[dir="rtl"] .watch-head-text {
    text-align: center;
}

html[dir="rtl"] .watch-head-actions {
    justify-content: center;
}

html[dir="rtl"] .watch-follow-note {
    text-align: center;
}

