/* --- Hero Section Styling --- */
.hero-section {
    padding: 30px 0;
    background-color: #fff;
    width: 100%;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    /* Space between left and right sections */
    align-items: flex-start;
}

/* Common Card Styles */
.video-card,
.headline-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    background-color: #000;
}

/* Left Section: 925px */
.main-featured {
    flex: 0 0 925px;
    height: 403px;
}

.main-featured .video-card {
    width: 100%;
    height: 100%;
}

.hero-img,
.headline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.5s ease;
}

.video-card:hover .hero-img,
.headline-card:hover .headline-img {
    transform: scale(1.03);
}

/* Live TV Tag */
.live-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e31b23;
    color: #fff;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.live-dot-static {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.7;
}

/* Play Buttons */
.play-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-button-center.sm {
    width: 45px;
    height: 45px;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #000;
    margin-left: 4px;
}

.play-button-center.sm .play-icon {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #000;
}

/* Text Overlay (Bottom Gradient) */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

.label-now {
    color: #DD221B;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-overlay h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
}

.meta-info {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* Right Section: 429px */
.top-headlines {
    flex: 0 0 429px;
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 5px;
}

.top-headlines .section-heading {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 10px;
    padding: 10px 15px;
    background-color: #DD221B;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
}

.headlines-player-wrap {
    width: 100%;
}

.headlines-main-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    background-color: #000;
}

.headlines-main-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.headlines-thumbs {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 5px;
}

.headlines-thumb {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    background: none;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.headlines-thumb:hover,
.headlines-thumb.active {
    border-color: #DD221B;
}

.headlines-thumb img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    display: block;
}

/* Animated Live Dot for Hero Section */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
    /* Reusing the pulse animation from header */
    animation: professional-pulse 1.8s infinite ease-out;
}

/* Ensure the keyframes exist (if not already in your file) */
@keyframes professional-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5);
        /* Slightly larger scale for the hero visibility */
        opacity: 0;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1300px) {
    .main-featured {
        flex: 1;
    }

    .top-headlines {
        flex: 0 0 350px;
    }
}

@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
    }

    .main-featured,
    .top-headlines {
        flex: none;
        width: 100%;
        height: auto;
    }

    .main-featured .video-card {
        height: 350px;
    }

    .hero-overlay h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-featured .video-card {
        height: 250px;
    }

    .hero-overlay h1 {
        font-size: 16px;
    }

    .play-button-center {
        width: 50px;
        height: 50px;
    }
}


/* Start of the Second section */
/* Font Import - Using Inter/Helvetica as fallback for Neue Haas Grotesk Display Pro */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg-color: #F6F6F6;
    --accent-red: #E11B22;
    --text-black: #000000;
    --text-grey: #666666;
    --font-main: "Neue Haas Grotesk Display Pro", "Inter", "Helvetica Neue", Arial, sans-serif;
}

.latest-updates-section {
    background-color: var(--bg-color);
    padding: 40px 0;
    width: 100%;
    font-family: var(--font-main);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 750;
    color: #333;
    letter-spacing: -0.5px;

}

.view-all {
    color: #DD221B;
    text-decoration: underline;
    font-weight: 700;
    font-size: 14px;
}

/* Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    /* Spacing between cards */
}

.news-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Image Container Specs */
.image-wrapper {
    width: 217px;
    height: 122px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #ddd;
    margin-bottom: 12px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    /* Hover animation speed */
}

/* Hover Effect */
.news-card:hover img {
    transform: scale(1.08);
}

.news-card:hover .headline {
    color: var(--accent-red);
}

/* Text Content */
.category {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #DD221B;
    margin-bottom: 6px;
    text-transform: uppercase;

}

.headline {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-black);
    margin: 0 0 8px 0;
    /* Limit to 2-3 lines of text */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .headline a {
    color: inherit;
    text-decoration: none;
}

.news-card:hover .headline a {
    color: var(--accent-red);
}

.timestamp {
    font-size: 14px;
    font-weight: 500;
    color: #373737;
    margin: 0;
}

/* Responsive adjustment for tablets/mobile */
@media (max-width: 1300px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 217/122;
    }
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (1 card per row - AS REQUESTED) */
@media (max-width: 768px) {
    .news-grid {
        /* This forces only one card to show at a time vertically */
        grid-template-columns: 1fr;
        gap: 30px;
        /* Increased gap slightly for better breathing room on mobile */
    }

    .container {
        padding: 0 15px;
        /* Slightly tighter padding for mobile screens */
    }

    .section-title {
        font-size: 14px;
        /* Slightly smaller title for mobile */
    }
}

/* Start of the Thrid Section */
/* Unique CSS for the Bulletin & Debate Section */
.p-news-dual-layout {
    width: 100%;
    padding: 50px 0;
    background-color: #fff;
    /* White background for this section */
    font-family: "Neue Haas Grotesk Display Pro", "Inter", Arial, sans-serif;
}

.p-news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    /* Space between the two main columns */
}

.p-news-column {
    flex: 1;
}

.p-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.p-news-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.p-news-view-all {
    color: #E11B22;
    text-decoration: underline;
    font-weight: 700;
    font-size: 14px;
}

.p-news-grid {
    display: flex;
    gap: 20px;
}

/* LEFT SIDE: VIDEO CARDS (310x170) */
.p-news-video-card {
    width: 310px;
    cursor: pointer;
}

.p-news-video-thumb {
    width: 310px;
    height: 170px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 12px;
}

/* RIGHT SIDE: CATEGORY CARDS (315 image height) */
.p-news-debate-card {
    width: 315px;
    cursor: pointer;
}

.p-news-debate-card a {
    color: inherit;
    text-decoration: none;
}

.p-news-debate-thumb {
    width: 100%;
    /* Spans the width of the card */
    height: 142px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Global Thumbnail Image styling */
.p-news-video-thumb img,
.p-news-debate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-news-video-card:hover img,
.p-news-debate-card:hover img {
    transform: scale(1.05);
}

/* Video Overlay UI */
.p-news-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-news-play-btn svg {
    width: 28px;
    fill: #333;
}

.p-news-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Text Content Styling */
.p-news-cat {
    display: block;
    color: #DD221B;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.p-news-headline {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin: 0 0 5px 0;
}

.p-news-video-card a {
    color: inherit;
    text-decoration: none;
}

.p-news-meta {
    font-size: 14px;
    font-weight: 500;
    color: #373737;
    margin: 0;
}

/* RESPONSIVENESS */
@media (max-width: 1400px) {
    .p-news-container {
        flex-direction: column;
        gap: 50px;
    }

    .p-news-video-card,
    .p-news-debate-card {
        width: 48%;
        /* On mid-screens, make items share the row */
    }

    .p-news-video-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 310/170;
    }

    .p-news-debate-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 315/142;
    }
}

@media (max-width: 768px) {
    .p-news-grid {
        flex-direction: column;
    }

    .p-news-video-card,
    .p-news-debate-card {
        width: 100%;
    }
}

/* Start of the Section fourth */
/* --- FEATURED PROGRAMME SECTION --- */

/* 1. Main Section Background and Font Setup */
.pm-feat-section {
    background-color: #000000;
    padding: 60px 0;
    /* Use local font or standard fallback */
    font-family: 'Neue Haas Grotesk Display Pro', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    width: 100%;
}

/* 2. 1400px Centered Container */
.pm-feat-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Header Styling */
.pm-feat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pm-feat-title {
    font-size: 16px;
    font-weight: 700;
    /* Maps to 75 Bold */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.pm-feat-view-all {
    color: #E11B22;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: opacity 0.2s;
}

.pm-feat-view-all:hover {
    text-decoration: underline;
}

/* 4. Layout Grid */
.pm-feat-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 5. MAIN VIDEO BLOCK (808x438) */
.pm-feat-main {
    width: 808px;
    flex-shrink: 0;
}

.pm-feat-player-wrapper {
    width: 808px;
    height: 438px;
    background-color: #111;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    /* Essential for the Overlay */
}

/* Video/Iframe size */
.pm-feat-player-wrapper iframe,
.pm-feat-player-wrapper div#playerPlaceholder {
    width: 100%;
    height: 100%;
    border: none;
}

/* THE OVERLAY (Inside the video container) */
.pm-feat-main-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient for text readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push text to bottom */
    padding: 40px;
    box-sizing: border-box;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s;
    pointer-events: none;
    /* Allows clicks to pass to play button */
}

/* Centered Play Button */
.pm-feat-play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #E11B22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable pointer for button */
    z-index: 11;
    transition: transform 0.2s ease, background-color 0.2s;
}

.pm-feat-play-trigger:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #ff1f27;
}

.pm-feat-play-trigger svg {
    width: 35px;
    fill: white;
    margin-left: 5px;
    /* Offset to visually center the triangle */
}

/* Overlay Text Styling */
.pm-feat-text-block {
    max-width: 90%;
    pointer-events: none;
}

.pm-feat-tag {
    color: #E11B22;
    font-size: 13px;
    font-weight: 700;
    /* 75 Bold */
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pm-feat-main-title {
    font-size: 34px;
    font-weight: 700;
    /* 75 Bold */
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: #fff;
}

.pm-feat-main-desc {
    font-size: 16px;
    color: #bbb;
    margin: 0;
    font-weight: 400;
}

/* 6. SIDEBAR BLOCK (Takes remaining space) */
.pm-feat-sidebar {
    flex-grow: 1;
    background-color: #111111;
    border-radius: 8px;
    padding: 24px;
    height: 438px;
    /* Matches main video height */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.pm-feat-side-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* List restricted to 3 items */
.pm-feat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Sidebar Item Styling */
.pm-feat-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid transparent;
}

.pm-feat-item:hover {
    background: #222;
}

/* Sidebar Thumbnail (190x101) */
.pm-feat-thumb {
    width: 190px;
    height: 101px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #333;
}

.pm-feat-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pm-feat-item-info h4 {
    font-size: 15px;
    font-weight: 700;
    /* 75 Bold */
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #fff;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-feat-item-meta {
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

/* 7. RESPONSIVE ADJUSTMENTS */
@media (max-width: 1350px) {
    .pm-feat-content {
        flex-direction: column;
        align-items: center;
    }

    .pm-feat-main,
    .pm-feat-player-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 808/438;
    }

    .pm-feat-sidebar {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .pm-feat-main-title {
        font-size: 24px;
    }

    .pm-feat-item {
        flex-direction: column;
    }

    .pm-feat-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 190/101;
    }
}


/* Start of the 5th section */
/* Container & Section */
.pm-blogs-section {
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}

.pm-blogs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.pm-blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pm-blogs-title {
    font-size: 16px;
    font-weight: 700;
    /* Mapping "75 Bold" */
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}

.pm-blogs-view-all {
    color: #E11B22;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #E11B22;
}

.pm-blogs-view-all:hover {
    text-decoration: underline;
}

/* Grid Layout (4 columns) */
.pm-blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 335px));
    gap: 20px;
}

/* Card Styling (335x373) */
.pm-blogs-card {
    width: 100%;
    max-width: 335px;
    height: 373px;
    border: 2px solid #F0F0F0;
    border-radius: 5px;
    background-color: #ffffff;
    box-sizing: border-box;
    padding: 14px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pm-blogs-card:hover {
    transform: translateY(-5px);
    border-color: #e0e0e0;
}

.pm-blogs-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image (307x173) */
.pm-blogs-img-wrapper {
    width: 100%;
    height: 173px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.pm-blogs-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text Content */
.pm-blogs-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pm-blogs-category {
    color: #E11B22;
    font-size: 14px;
    font-weight: 700;
    /* "75 Bold" */
    margin-bottom: 8px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-blogs-headline {
    font-size: 16px;
    font-weight: 700;
    /* "75 Bold" */
    line-height: 1.1;
    /* Figma line-height 100% */
    color: #000000;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-blogs-excerpt {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Meta */
.pm-blogs-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.pm-blogs-author {
    font-size: 14px;
    font-weight: 700;
    color: #373737;
}

.pm-blogs-details {
    font-size: 12px;
    font-weight: 500;
    color: #999999;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 1400px) {
    .pm-blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 335px));
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .pm-blogs-grid {
        grid-template-columns: minmax(0, 335px);
        justify-content: center;
    }
}

/* Start of the sixth section */
/* --- EXCLUSIVES (SHORTS) SECTION --- */
.pm-shorts-section {
    background-color: #000000;
    padding: 40px 0;
    font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
    color: #ffffff;
    width: 100%;
    overflow: hidden;
}

.pm-shorts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pm-shorts-header {
    margin-bottom: 25px;
}

.pm-shorts-title {
    font-size: 18px;
    font-weight: 700;
    /* 75 Bold mapping */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Scroll Container Styling */
.pm-shorts-wrapper {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.pm-shorts-wrapper::-webkit-scrollbar {
    display: none;
}

/* Individual Card (203x300) */
.pm-shorts-card {
    flex: 0 0 203px;
    /* Strictly 203px width */
    width: 203px;
    cursor: pointer;
}

.pm-shorts-thumb-box {
    width: 203px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #1a1a1a;
}

.pm-shorts-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pm-shorts-card:hover .pm-shorts-thumb-box img {
    transform: scale(1.05);
}

/* Play Button Overlay */
.pm-shorts-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pm-shorts-play-btn svg {
    width: 24px;
    fill: #000;
    margin-left: 3px;
}

/* Duration Badge */
.pm-shorts-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

/* Card Text Styling */
.pm-shorts-info {
    text-align: center;
}

.pm-shorts-headline {
    font-size: 14px;
    font-weight: 700;
    /* 75 Bold */
    line-height: 1.2;
    margin: 0 0 4px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-shorts-views {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* --- EXCLUSIVES (SHORTS) UPDATED CSS --- */

/* Ensure the thumb box can hold the iframe perfectly */
.pm-shorts-thumb-box {
    width: 203px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #000;
    /* Black background for video loading */
}

/* The iframe should fill the box */
.pm-shorts-thumb-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    /* Hidden by default */
}

/* When the card is playing, hide the static elements and show iframe */
.pm-shorts-card.is-playing .pm-shorts-thumb-box img,
.pm-shorts-card.is-playing .pm-shorts-play-btn,
.pm-shorts-card.is-playing .pm-shorts-duration {
    display: none;
}

.pm-shorts-card.is-playing .pm-shorts-thumb-box iframe {
    display: block;
}

/* --- BASE STYLES --- */
.pm-shorts-section {
    background-color: #000000;
    padding: 40px 0;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    color: #ffffff;
    width: 100%;
    overflow: hidden;
}

.pm-shorts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pm-shorts-header {
    margin-bottom: 20px;
}

.pm-shorts-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SCROLL WRAPPER --- */
.pm-shorts-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Smooth momentum scroll on iOS */
    scrollbar-width: none;
    /* Firefox */
}

.pm-shorts-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* --- CARD SIZING (Desktop) --- */
.pm-shorts-card {
    flex: 0 0 203px;
    /* Fixed width for horizontal scroll */
    width: 203px;
    cursor: pointer;
}

.pm-shorts-thumb-box {
    width: 203px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 10px;
}

.pm-shorts-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-shorts-thumb-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

/* Playing State */
.pm-shorts-card.is-playing .pm-shorts-thumb-box img,
.pm-shorts-card.is-playing .pm-shorts-play-btn,
.pm-shorts-card.is-playing .pm-shorts-duration {
    display: none;
}

.pm-shorts-card.is-playing .pm-shorts-thumb-box iframe {
    display: block;
}

/* Play Button Overlay */
.pm-shorts-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-shorts-play-btn svg {
    width: 22px;
    fill: #000;
    margin-left: 2px;
}

.pm-shorts-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
}

.pm-shorts-headline {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-shorts-views {
    font-size: 12px;
    color: #888;
}

/* --- MOBILE RESPONSIVE QUERIES --- */

/* Tablet and Smaller Desktop */
@media (max-width: 1024px) {
    .pm-shorts-container {
        padding: 0 15px;
    }
}

/* Small Mobile (e.g. iPhone, Pixel) */
@media (max-width: 480px) {
    .pm-shorts-section {
        padding: 25px 0;
    }

    .pm-shorts-title {
        font-size: 16px;
    }

    /* Shrink cards slightly on small mobile to show a "peek" of the next one */
    .pm-shorts-card {
        flex: 0 0 165px;
        width: 165px;
    }

    .pm-shorts-thumb-box {
        width: 165px;
        height: 245px;
        /* Maintain aspect ratio roughly */
    }

    .pm-shorts-headline {
        font-size: 13px;
    }

    .pm-shorts-play-btn {
        width: 40px;
        height: 40px;
    }
}


/* ===== Desktop Video Height Fix ===== */
@media (min-width: 769px) {

    .main-featured {
        height: 520px !important;
    }

    .video-card {
        height: 520px !important;
        overflow: hidden !important;
    }

    .video-card iframe {
        width: 100% !important;
        height: 520px !important;
        border: 0 !important;
        display: block !important;
    }

}

/* ===== Rixcast Player Responsive Fix ===== */

iframe[src*="rixcast"] {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
    border: 0 !important;
}


/* Fix iframe parent containers */
iframe[src*="rixcast"] {
    margin: 0 !important;
    padding: 0 !important;
}


/* All wrappers around Rixcast */
iframe[src*="rixcast"] + *,
iframe[src*="rixcast"] {
    max-width: 100% !important;
}


/* Remove extra height/gaps from parents */
iframe[src*="rixcast"] {
    overflow: hidden !important;
}


body,
html {
    overflow-x: hidden !important;
}