/* Full-width override: home.html wraps content in .container.mt-4 */
.container.mt-4.mb-5 > #vp-root {
    margin-left: -15px;
    margin-right: -15px;
}

/* ═══════════════════════════════════════════════════════
   BBC-STYLE VIDEO PORTAL — DARK CINEMA THEME
   ═══════════════════════════════════════════════════════ */

#vp-root {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: -16px -15px 0 -15px;
    padding-bottom: 60px;
}

/* Page Masthead */
.vp-masthead {
    background: #121212;
    border-bottom: 1px solid #2a2a2a;
    padding: 32px 0 20px;
    text-align: center;
}
.vp-masthead h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
}
.vp-masthead p {
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Inner wrapper */
.vp-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════
   HERO SECTION  (65% + 35% sidebar)
   ══════════════════════════════════════ */
.vp-hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 32px 0 40px;
    border-bottom: 1px solid #2a2a2a;
}

/* Featured card */
.vp-featured-card {
    position: relative;
    cursor: pointer;
}
.vp-featured-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #222;
}
.vp-featured-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vp-featured-card:hover .vp-featured-thumb img {
    transform: scale(1.03);
}
/* Large circular play button */
.vp-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    pointer-events: none;
}
.vp-play-circle svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    margin-left: 4px;
}
.vp-featured-card:hover .vp-play-circle {
    background: rgba(255,255,255,0.32);
    transform: translate(-50%, -50%) scale(1.1);
}
/* Duration badge */
.vp-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}
.vp-featured-title {
    margin-top: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}
.vp-featured-title a {
    color: inherit;
    text-decoration: none;
}
.vp-featured-title a:hover { color: #e0e0e0; }
.vp-featured-meta {
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    margin-top: 8px;
}

/* Explore More sidebar */
.vp-explore {
    display: flex;
    flex-direction: column;
}
.vp-explore-header {
    color: #aaa;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 4px;
}
.vp-sidebar-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #2a2a2a;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}
.vp-sidebar-card:hover { opacity: 0.8; color: #fff; text-decoration: none; }
.vp-sidebar-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #222;
}
.vp-sidebar-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
/* Small black square play badge */
.vp-play-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.85);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-play-badge svg {
    width: 10px;
    height: 10px;
    fill: #fff;
    margin-left: 1px;
}
.vp-sidebar-info {}
.vp-sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 4px;
}
.vp-sidebar-meta {
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    color: #888;
}

/* ══════════════════════════════════════
   SECTION ROWS  (horizontal carousel)
   ══════════════════════════════════════ */
.vp-section {
    padding: 36px 0 0;
}
.vp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2a2a2a;
}
.vp-section-title {
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #cccccc;
    margin: 0;
}
.vp-section-nav {
    display: flex;
    gap: 6px;
}
.vp-nav-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #444;
    border-radius: 2px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.vp-nav-btn:hover { background: #fff; color: #000; }
.vp-nav-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* The scrollable row */
.vp-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.vp-row::-webkit-scrollbar { display: none; }

/* Standard card in row */
.vp-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
    text-decoration: none;
    color: #fff;
    display: block;
    transition: opacity 0.2s;
}
.vp-card:hover { opacity: 0.82; color: #fff; text-decoration: none; }
.vp-card-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #222;
    margin-bottom: 12px;
}
.vp-card-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.vp-card:hover .vp-card-thumb img { transform: scale(1.04); }
.vp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 6px;
}
.vp-card-desc {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vp-card-cat {
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 6px;
}

/* Media video card */
.vp-media-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
    cursor: pointer;
    display: block;
    transition: opacity 0.2s;
}
.vp-media-card:hover { opacity: 0.82; }
.vp-media-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #1a1a1a;
    margin-bottom: 10px;
}
.vp-media-thumb video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.vp-media-title {
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: #bbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state */
.vp-empty {
    background: #1a1a1a;
    border: 1px dashed #333;
    border-radius: 6px;
    padding: 60px 24px;
    text-align: center;
    color: #555;
}
.vp-empty i { font-size: 3rem; margin-bottom: 16px; display: block; }
.vp-empty p { font-family: Arial, sans-serif; font-size: 0.95rem; }

/* No-content placeholder card */
.vp-card-placeholder {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
}
.vp-card-placeholder .ph-thumb {
    background: #1e1e1e;
    aspect-ratio: 16/9;
    border-radius: 3px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.vp-card-placeholder .ph-line {
    height: 12px;
    background: #1e1e1e;
    border-radius: 2px;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .vp-hero { grid-template-columns: 1fr; }
    .vp-explore { display: none; }
    .vp-masthead h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .vp-card, .vp-media-card { flex: 0 0 80vw; min-width: 260px; }
    .vp-inner { padding: 0 16px; }
}

/* Live Streams Module Styles */
.vp-live-section {
    padding: 30px 0 15px;
    border-bottom: 1px solid #2a2a2a;
}
.vp-live-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.vp-live-filter-btn {
    background: #1a1a1a;
    color: #aaa;
    border: 1px solid #333;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vp-live-filter-btn:hover {
    background: #2a2a2a;
    color: #fff;
}
.vp-live-filter-btn.active {
    background: #1a7a3f;
    color: #fff;
    border-color: #1a7a3f;
}
.vp-live-filter-btn.active[data-filter="live"] {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.vp-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.vp-live-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
.vp-live-card:hover {
    transform: translateY(-2px);
}
.vp-live-card.status-live {
    border-color: #28a745;
}
.vp-live-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.vp-live-player-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vp-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}
.vp-live-badge.badge-live {
    background: #28a745;
}
.vp-live-badge.badge-upcoming {
    background: #17a2b8;
}
.vp-live-badge.badge-ended {
    background: #6c757d;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-animation 1.5s infinite;
}
@keyframes pulse-animation {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.vp-live-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.vp-live-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #fff;
    font-family: Arial, sans-serif;
}
.vp-live-desc {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}
.vp-live-meta {
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
