/* Estilo "Mubi" (Minimalismo Cinematográfico) */
body {
    background-color: #0b0a0a;
    color: #f5f5f5;
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, .brand {
    font-family: 'Noto Sans', serif;
    letter-spacing: -3px;
}

a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #ccc;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), #0a0a0a),
        url('../img/header.gif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
}

.hero-content {
    width: 100%;
}

/* Featured Videos (Streaming Style) */
.featured-grid {
    position: relative;
    z-index: 10;
}

.video-card {
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: scale(1.05);
}

/* Catalog Section */
.section-title {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.7;
}

.podcast-poster {
    background: #121212;
    border: 1px solid #222;
    padding: 30px 20px;
    text-align: left;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcast-poster h5 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.podcast-poster p {
    font-size: 14px;
    color: #888;
    font-weight: 300;
}

/* Footer */
footer {
    padding: 80px 0;
   /* border-top: 1px solid #222;*/
    color: #555;
    font-size: 14px;
    margin-top: 50px;
}

.pod_badge {
    display: inline-block;
    border: 1px solid #f9ff29;
    padding: 2px 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.cds--btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 6rem;
    width: auto;
    max-width: 30rem;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.28572;
    letter-spacing: 0.16px;
    text-decoration: none;
    vertical-align: top;
    border-radius: 0;
    background-color: #0f62fe;
    color: #ffffff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 70ms cubic-bezier(0, 0, 0.38, 0.9), box-shadow 70ms cubic-bezier(0, 0, 0.38, 0.9);
}

.cds--btn--primary:hover {
    background-color: #054ada;
}

.play_button {
    color: white;
    width: 20px;
    padding-left: 10px;
}

.tabs {
    cursor: pointer;
    font-weight: 500;
}

.tab {
    opacity: 0.5;
    cursor: pointer;
}

.tab.active {
    opacity: 1;
    font-weight: bold;
}

.temporada {
    display: none;
}

.temporada.active {
    display: flex;
}

/* MODAL STYLES */
.pod {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* Darker background for better focus */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
}

.pod.active {
    display: flex;
}

.pod-content {
    background: black;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.pod .close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 20;
}

/* SLIDER STYLES */
.slider-section {
    position: relative;
    z-index: 3;
    width: 100%;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 250px;
    width: 250px; /* Or whatever exact size you prefer, like 280px */
    flex: 0 0 250px; /* This tells Flexbox: absolutely do not shrink or grow this item */
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.03);
    z-index: 5;
}

.movie-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.card-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
}

.card-title .subtitle {
    font-weight: 300;
    display: block;
    font-size: 14px;
}

/* CONTROLS */
.slider-arrow {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    background: rgb(22 22 22 / 87%);
    color: white !important;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: #0f62fe;
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}

.slider-bullets {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.bullet {
    width: 8px;
    height: 8px;
    background: #444;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.bullet.active {
    background: #0f62fe;
    width: 20px;
    border-radius: 4px;
}

.pod_bubble{
    border-radius: 30px;
    padding: 5px 10px;
    width: fit-content;
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.pub_header{
    position: fixed; 
    width: 100%; 
    border-bottom: 1px solid #afafaf; 
    background-color: #e8e8e8!important; 
    z-index: 9999; 
    top: 85px; 
    height: 100px;
}

/* Container for the whole bar */
.pub_navbar {
        width: 100%;
    background-color: #0b0a0a;
    position: fixed;
    top: 180px;
    left: 0;
    z-index: 99999;
    padding: 5px 15px 5px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  

}

/* Flexbox list to handle spacing */
.pub_nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    transition: left 0.3s ease;
}

/* Individual Link Styles */
.pub_nav-link {
    text-decoration: none;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: opacity 0.2s ease;
    display: block;
    padding: 0; /* Added padding for better click area */
}

.pub_nav-link:hover {
    opacity: 0.7;
}

/* --- DROPDOWN STYLES (Desktop) --- */
.pub_dropdown {
    position: relative; /* Anchor for the dropdown menu */
}

.pub_dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a; /* Slightly lighter black to stand out */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Show dropdown on hover (Desktop only) */
@media (min-width: 769px) {
    .pub_dropdown:hover .pub_dropdown-menu {
        display: block;
    }
}

.pub_dropdown-link {
    text-decoration: none;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    font-size: 13px;
    display: block;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

.pub_dropdown-link:hover {
    background-color: #333; /* Highlight item on hover */
}

/* Hamburger Button Styles */
.pub_hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.pub_bar {
    width: 25px;
    height: 3px;
    background-color: #f5f5f5;
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* Mobile Hidden State */
.pub_nav-list {
    left: -100%;
    /* ... other styles ... */
}

/* Mobile Visible State (Must come after) */
.pub_nav-list.active {
    left: 0 !important; 
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .pub_navbar {
        justify-content: flex-end;
    }

    .pub_hamburger {
        display: flex;
    }

    .pub_nav-list {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        background-color: #0b0a0a;
        width: 100%;
        text-align: center;
        border-top: 1px solid #333;
        padding-bottom: 20px; /* Extra padding at the bottom */
    }

    .pub_nav-list.active {
        left: 0;
    }

    .pub_nav-list > li {
        margin: 15px 0;
    }

    /* Mobile Dropdown Overrides */
    .pub_dropdown-menu {
        position: static; /* Removes absolute positioning */
        box-shadow: none;
        background-color: transparent;
        width: 100%;
        padding: 0;
        margin-top: 10px;
    }

    .pub_dropdown-menu.active {
        display: block; /* Shown via JS toggle on mobile */
    }

    .pub_dropdown-link {
        padding: 10px 0;
        color: #bbb; /* Slightly dimmer to show hierarchy */
    }

    /* Animate hamburger into an 'X' */
    .pub_hamburger.active .pub_bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .pub_hamburger.active .pub_bar:nth-child(2) {
        opacity: 0;
    }
    .pub_hamburger.active .pub_bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* This ensures that when you click a link, the section 
   stops 50px before the very top of the viewport */
[id] {
    scroll-margin-top: 150px; /* Adjust this number to match your navbar height + desired gap */
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}