* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #ffffff;
}

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

.mockup-wrapper {
    max-width: 1500px;
    margin: 10px auto;
    padding: 0 20px;
}

.tv-page {
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #03111f 0%, #061f35 55%, #020812 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 50px;
}

/* Header */
.navbar {
    position: relative;
    min-height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 12, 22, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.join-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff6fae; /* pink */
    font-weight: 500;
}

.join-link:hover,
.nav-links a.join-link:hover {
    color: #ff8fc1 !important;
    border-bottom-color: #ff8fc1 !important;
}

.join-link img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    display: block;
}

.network-promo-banner {
    display: flex;
    align-items: center;
}

.network-promo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
}

.network-promo-text strong {
    color: #ff6fae;
    font-weight: 700;
}

.network-promo-popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: rgba(8, 18, 30, 0.97);
    border: 1px solid rgba(255, 79, 154, 0.35);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.network-promo-title {
    font-size: 16px;
    font-weight: 700;
    color: #ff6fae;
    margin-bottom: 8px;
}

.network-promo-message {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}

.network-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #ff4f9a;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.network-promo-btn:hover {
    background: #ff6fae;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,79,154,0.22);
}

.network-promo-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 16px;
}

.network-promo-close:hover {
    color: #ffffff;
}

.restricted-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    backdrop-filter: blur(6px);
}

.restricted-popup-overlay.show {
    display: flex;
}

.restricted-popup {
    position: relative;
    width: 560px;
    max-width: 100%;
    border-radius: 18px;
    padding: 36px 38px;
    background:
            radial-gradient(circle at top right, rgba(255,79,154,0.18), transparent 35%),
            linear-gradient(135deg, #071827, #020812);
    border: 1px solid rgba(255,79,154,0.32);
    box-shadow: 0 28px 70px rgba(0,0,0,0.55);
    text-align: center;
    color: #ffffff;
}

.restricted-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 18px;
    cursor: pointer;
}

.restricted-popup-close:hover {
    color: #ffffff;
}

.restricted-popup-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,80,80,0.16);
    border: 1px solid rgba(255,120,120,0.28);
    color: #ffd2d2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restricted-popup h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 14px;
}

.restricted-popup p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
}

.restricted-popup-small {
    font-size: 13px !important;
    color: rgba(255,255,255,0.62) !important;
}

.restricted-popup-btn {
    margin-top: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    border-radius: 999px;
    background: #ff4f9a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
}

.restricted-popup-btn:hover {
    background: #ff4d4d;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255,79,154,0.28);
}

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

.logo img {
    width: 80px;
    height: auto;
    display: block;
}

.portal-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-subtitle {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.80);
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.nav-links a {
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
}

.nav-links a.active,
.nav-links a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}
/* Access Status */
.top-status-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 30px;
    background: rgba(3, 12, 22, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.status-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.connection-meta {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    text-align: center;
}

.status-right {
    position: absolute;
    right: 55px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.access-pill.ok {
    background: rgba(0,180,90,0.16);
    border: 1px solid rgba(0,255,140,0.22);
    color: #b7ffd7;
}

.access-pill.blocked {
    background: rgba(255,80,80,0.15);
    border: 1px solid rgba(255,120,120,0.25);
    color: #ffd2d2;
}

.starlink-note {
    color: #ffd86b;
}

.alert.warning {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffe8a3;
    font-size: 13px;
}

/* Hero */

.hero-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
}

.play-icon {
    font-size: 34px;
    line-height: 1;
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.btn-text span:first-child {
    font-size: 14px;
    font-weight: 700;
}

.btn-text span:last-child {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.hero {
    position: relative;
    min-height: 300px;
    padding: 28px 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.08;
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 420px;
    margin-bottom: 22px;
}

.hero-screen {
    height: 250px;
    border-radius: 12px;
    background:
            linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35)),
            url('../img/hero-screen.jpg') center center / cover no-repeat;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.access-pill.blocked.access-pill-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.access-pill.blocked.access-pill-clickable:hover {
    cursor: pointer;
    background: rgba(255,80,80,0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-restricted-btn {
    cursor: pointer;
    border: none;
}

.hero-restricted-btn:hover {
    cursor: pointer;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: #ffffff;
    color: #06121f;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* TV browser / older WebKit button fixes */
.btn,
.btn-primary,
.watch-actions .btn {
    background-color: #ffffff !important;
    color: #06121f !important;
    border: 1px solid #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

.channel-card .btn {
    background-color: #06121f !important;
    max-width: 100%;
    width: auto;
    color: #ffffff !important;
    border: 1px solid #06121f;
    -webkit-appearance: none;
    appearance: none;
}

.channel-card .btn.disabled,
.btn.disabled {
    background-color: #d1d5db !important;
    color: #4b5563 !important;
    border-color: #d1d5db;
    opacity: 1;
}

.btn-primary:hover,
.watch-actions .btn:hover {
    background-color: #ffffff !important;
    color: #06121f !important;
}

/* Content */
.content {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 15px 35px 15px;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.view-all {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.channel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
}

.channel-card {
    width: 280px;
    aspect-ratio: 16 / 9;

    background: #ffffff;
    border-radius: 14px;

    border: 6px solid #4b5563;

    padding: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    box-shadow:
            0 0 0 2px rgba(255,255,255,0.08),
            0 12px 30px rgba(0,0,0,0.35);

    transition: transform 0.2s ease;
}

.channel-card:hover {
    transform: translateY(-4px) scale(1.03);
}

.channel-card .btn {
    pointer-events: none;
}

.channel-card img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.channel-card h3 {
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4b5563;
    margin: 4px 0 10px;
}

.channel-card h3 a {
    color: inherit;
    text-decoration: none;
}

.channel-card h3 a:hover {
    text-decoration: underline;
}

.channel-card .btn {
    padding: 8px 12px;
    font-size: 10px;
    border-radius: 999px;
}

.channel-item {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.provider-row {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

.provider-label {
    display: block;
}

.provider-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.provider-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.provider-info {
    cursor: help;
    margin-left: 4px;
    color: rgba(255,255,255,0.65);
}

/* Posters */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.poster {
    height: 230px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #103b65, #07111d);
    position: relative;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.poster::after {
    content: attr(data-title);
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-weight: 700;
    font-size: 15px;
}

.poster.one { background: linear-gradient(145deg, #4c160c, #d87a18); }
.poster.two { background: linear-gradient(145deg, #101827, #2f405f); }
.poster.three { background: linear-gradient(145deg, #db4f9f, #f5b0d5); }
.poster.four { background: linear-gradient(145deg, #0e1523, #986233); }
.poster.five { background: linear-gradient(145deg, #06405f, #28a5c4); }

.note {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* Footer */
footer {
    padding: 15px 35px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Reusable Page Layout */
.page-content {
    max-width: 960px;
    margin: 0 auto;
    flex: 1;
}

.content-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 34px 38px;
    color: rgba(255,255,255,0.76);
    line-height: 1.7;
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.content-card h3 {
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 20px;
}

.content-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.90);
    margin-top: 24px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-card p {
    font-size: 14px;
    margin-bottom: 12px;
}

.content-card a:not(.btn) {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Watch Page */
.watch-card {
    max-width: 1100px;
    margin: 0 auto;
}

.watch-channel-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
}

.watch-channel-logo {
    max-width: 160px;
    max-height: 90px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
}

.channel-name {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.channel-card .channel-name {
    color: #4b5563;
}

.content-card h3.watch-channel-name {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 6px 0;
}

.watch-provider-row {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.58);
}

.watch-provider-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.watch-provider-details .provider-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.50);
    margin-bottom: 6px;
}

.watch-provider-details .provider-name {
    font-size: 16px;
    margin-bottom: 8px;
}

.watch-provider-details .provider-contact {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
}

.watch-provider-details .provider-link {
    color: #ffffff;
    text-decoration: none;
}

.watch-provider-details .provider-link:hover {
    text-decoration: underline;
}

.player-container {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.player-container video {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #000000;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
}

.access-warning-box {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.28);
    color: #ffe8a3;
    border-radius: 12px;
    padding: 26px;
    text-align: center;
}

.access-warning-box h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.watch-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.mobile-menu-toggle {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    font-family: inherit;
}

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

    html,
    body {
        width: 100%;
        overflow-x: hidden;
        background: #03111f;
    }

    .hero,
    .content,
    .channel-grid,
    .channel-item,
    .channel-card {
        min-width: 0;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 8px;
        min-height: auto;
        position: relative;
    }

    .channel-item {
        width: 100%;
        max-width: 320px;
    }

    .channel-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16 / 9;
        padding: 10px;
        border-width: 4px;
        overflow: hidden;
    }

    .channel-card img {
        max-width: 82%;
        max-height: 58px;
        margin-bottom: 6px;
    }

    .channel-card h3 {
        font-size: 10px;
        line-height: 1.2;
        margin: 2px 0 6px;
        max-width: 100%;
    }

    .channel-card .btn {
        width: auto;
        max-width: 100%;
        padding: 6px 10px;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .channel-grid {
        gap: 14px;
        margin-bottom: 20px;
    }

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

    .logo img {
        width: 60px;
    }

    .portal-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        min-width: 86px;
        min-height: 36px;
        padding: 8px 14px;

        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.18);

        background: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;

        text-transform: uppercase;
        white-space: nowrap;

        cursor: pointer;

        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;

        z-index: 1002;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(3, 12, 22, 0.98);
        border-top: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 18px 20px 22px;
        z-index: 1001;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mockup-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .tv-page {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
    }

    .top-status-wrapper {
        flex-direction: column;
        gap: 4px;
        padding: 4px 8px;
    }

    .status-center {
        flex-wrap: wrap;
        gap: 8px;
        text-align: center;
    }

    .status-right {
        position: static;
        right: auto;
        width: 100%;
        justify-content: center;
    }

    .network-promo-banner {
        padding: 0;
        width: auto;
    }

    .network-promo-btn {
        width: auto;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 11px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 16px 14px 12px;
        min-height: auto;
        gap: 14px;
        text-align: center;
    }

    .hero-watch-btn {
        padding: 10px 14px;
        gap: 10px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.4;
        margin: 0 auto 14px;
        max-width: 320px;
    }

    .play-icon {
        font-size: 22px;
    }

    .btn-text span:first-child {
        font-size: 12px;
    }

    .btn-text span:last-child {
        font-size: 10px;
    }

    .hero-screen {
        height: 150px;
        border-radius: 10px;
    }

    .content {
        justify-content: flex-start;
        padding: 14px 16px 20px;
    }

    footer {
        padding: 14px 16px;
    }
}