/* ------------------------------
   GLOBAL
--------------------------------*/

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

html {
    scroll-behavior: smooth;
}

body {
    background: #080a0d;
    color: #ffffff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    min-height: 100vh;
}


/* ------------------------------
   HEADER
--------------------------------*/

.header {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    background: rgba(8, 10, 13, 0.95);

    border-bottom: 1px solid #20242b;

    position: sticky;
    top: 0;

    z-index: 100;
}


.logo {
    color: white;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: 1px;

    text-decoration: none;
}


.logo span {
    color: #e50914;
}


.nav {
    display: flex;
    gap: 30px;
}


.nav a {
    color: #9298a2;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}


.nav a:hover,
.nav a.active {
    color: white;
}


/* ------------------------------
   WATCH
--------------------------------*/

.watch-section {
    width: min(1200px, 92%);

    margin: 45px auto 80px;
}


.player-container {
    width: 100%;

    aspect-ratio: 16 / 9;

    position: relative;

    overflow: hidden;

    background: #000;

    border-radius: 14px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55);
}


#videoPlayer {
    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #000;
}


.player-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 15px;

    background:
        radial-gradient(
            circle at center,
            #171b22,
            #050607
        );

    color: #777;
}


.play-icon {
    width: 70px;
    height: 70px;

    border-radius: 50%;

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

    padding-left: 5px;

    background: #ffffff;

    color: #080a0d;

    font-size: 25px;
}


.programme-area {
    display: grid;

    grid-template-columns: 1fr 320px;

    gap: 50px;

    margin-top: 28px;
}


.live-label {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #ff3541;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}


.live-dot {
    width: 8px;
    height: 8px;

    background: #ff3541;

    border-radius: 50%;

    box-shadow:
        0 0 10px rgba(255, 53, 65, 0.8);
}


.programme-info h1 {
    font-size: clamp(28px, 4vw, 42px);

    margin-bottom: 8px;
}


.episode {
    color: #b7bbc2;

    font-size: 17px;

    margin-bottom: 15px;
}


.description {
    color: #747b85;

    line-height: 1.6;
}


.up-next {
    border-left: 1px solid #292d34;

    padding-left: 30px;
}


.small-heading {
    display: block;

    color: #6f7680;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 10px;
}


.up-next h2 {
    margin-bottom: 6px;

    font-size: 20px;
}


.up-next p {
    color: #8d939c;

    font-size: 14px;
}


/* ------------------------------
   CHANNELS
--------------------------------*/

.channels-section,
.schedule-section {
    width: min(1200px, 92%);

    margin: 0 auto 100px;
}


.section-heading {
    margin-bottom: 25px;
}


.section-heading h2,
.schedule-section h2 {
    font-size: 28px;
}


.channel-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.channel-card {
    border: 0;

    background: #101319;

    color: white;

    border-radius: 12px;

    overflow: hidden;

    cursor: pointer;

    text-align: left;

    transition:
        transform 0.2s,
        background 0.2s;
}


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

    background: #151920;
}


/* Channel artwork container */

.channel-image {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #202631,
            #090b0f
        );

    display: flex;

    align-items: center;
    justify-content: center;
}


/* Channel artwork */

.channel-image img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


.channel-name {
    position: relative;

    z-index: 2;

    font-size: clamp(20px, 3vw, 32px);

    font-weight: 900;

    letter-spacing: 2px;
}


.channel-live {
    position: absolute;

    left: 15px;
    bottom: 15px;

    z-index: 3;

    background: rgba(0, 0, 0, 0.75);

    padding: 7px 10px;

    border-radius: 5px;

    font-size: 10px;

    font-weight: bold;
}


.channel-live span {
    display: inline-block;

    width: 6px;
    height: 6px;

    background: #ff3541;

    border-radius: 50%;

    margin-right: 5px;
}


.channel-details {
    padding: 16px;
}


.channel-details strong {
    display: block;

    margin-bottom: 5px;
}


.channel-details span {
    color: #737a84;

    font-size: 13px;
}


.coming-soon {
    opacity: 0.35;

    cursor: default;
}


/* ------------------------------
   SCHEDULE
--------------------------------*/

.schedule-section h2 {
    margin-bottom: 25px;
}


.schedule {
    background: #101319;

    border: 1px solid #20242b;

    border-radius: 12px;

    overflow: hidden;
}


.schedule-item {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 20px;

    padding: 20px 25px;

    border-bottom: 1px solid #20242b;
}


.schedule-item:last-child {
    border-bottom: 0;
}


.schedule-item.current {
    background: #151920;
}


.schedule-time {
    color: #747b85;

    font-size: 12px;

    font-weight: 800;
}


.schedule-item.current .schedule-time {
    color: #ff3541;
}


.schedule-item p {
    color: #777e87;

    font-size: 13px;

    margin-top: 5px;
}


/* ------------------------------
   FOOTER
--------------------------------*/

footer {
    min-height: 150px;

    border-top: 1px solid #20242b;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 10px;

    color: #606771;
}


.footer-logo {
    font-size: 17px;
}


/* ------------------------------
   TABLET
--------------------------------*/

@media (max-width: 850px) {

    .programme-area {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .up-next {
        border-left: 0;

        border-top: 1px solid #292d34;

        padding-left: 0;

        padding-top: 20px;
    }


    .channel-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ------------------------------
   MOBILE
--------------------------------*/

@media (max-width: 600px) {

    .header {
        height: 58px;

        padding: 0 16px;
    }


    .logo {
        font-size: 17px;
    }


    .nav {
        gap: 15px;
    }


    .nav a {
        font-size: 12px;
    }


    .nav a:nth-child(3) {
        display: none;
    }


    .watch-section {
        width: 100%;

        margin-top: 0;
    }


    .player-container {
        border-radius: 0;
    }


    .programme-area {
        padding: 0 18px;

        margin-top: 20px;
    }


    .programme-info h1 {
        font-size: 27px;
    }


    .episode {
        font-size: 15px;
    }


    .channels-section,
    .schedule-section {
        width: calc(100% - 36px);

        margin-bottom: 70px;
    }


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


    .schedule-item {
        grid-template-columns: 60px 1fr;

        padding: 18px;
    }


    .play-icon {
        width: 55px;
        height: 55px;

        font-size: 20px;
    }

}
