/* ============================================
   CineGold Review - Custom Styles
   Brand Colors & Typography
   ============================================ */

/* Color Variables - Customize these for brand changes */
:root {
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --gold-light: #E5C866;
    --warm-white: #F8F5EF;
    --near-black: #111111;
    --body-text: #333333;
    --gray-light: #B0B0B0;
    --gray-border: #E3E3E3;
    --gold-tint: #FDFBF5;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--warm-white);
    color: var(--body-text);
    line-height: 1.6;
}

/* Typography */
.logo-image {
    max-width: 200px;
    height: auto;
    display: block;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--near-black);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.logo-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Tablet view */
@media (min-width: 768px) and (max-width: 1023px) {
    .logo-video {
        max-width: 500px;
        max-height: 150px;
    }
}

/* Mobile view */
@media (max-width: 767px) {
    .logo-video {
        max-width: 350px;
        max-height: 120px;
    }
}

/* Small mobile view */
@media (max-width: 640px) {
    .logo-video {
        max-width: 280px;
        max-height: 100px;
    }
}

.tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 500;
}

.site-url {
    font-size: 0.75rem;
    color: var(--gray-light);
}

/* Navigation */
.utility-nav {
    background-color: white;
}

.nav-link {
    color: var(--near-black);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
}

/* Search */
.search-icon {
    color: var(--near-black);
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-icon:hover {
    color: var(--gold);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    padding-top: 10vh;
}

.search-overlay input {
    background-color: white;
    color: var(--near-black);
}

/* Mobile Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--near-black);
    transition: all 0.3s ease;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.hidden {
    max-height: 0;
    display: none !important;
}

.mobile-menu.active {
    max-height: 500px;
    display: block !important;
}

/* Ensure active state overrides hidden */
.mobile-menu.active.hidden {
    display: block !important;
    max-height: 500px;
}

/* News Ticker */
.news-ticker {
    font-size: 0.875rem;
}

.ticker-label {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    flex-shrink: 0;
    padding-right: 1rem;
    min-width: fit-content;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: transform 0.1s linear;
}

.ticker-clone {
    position: absolute;
    left: 100%;
    top: 0;
}

.ticker-item {
    white-space: nowrap;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.ticker-divider {
    flex-shrink: 0;
    padding: 0 0.5rem;
}

/* Hero Section */
.category-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 600;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--near-black);
}

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

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Responsive max-heights for article images */
@media (min-width: 1024px) {
    .hero-image-wrapper img {
        max-height: 500px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image-wrapper img {
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .hero-image-wrapper img {
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .hero-image-wrapper img {
        max-height: 250px;
    }
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.hero-deck {
    color: var(--body-text);
    line-height: 1.7;
}

.category-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gold);
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-radius: 0.25rem;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-track {
    display: flex;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Desktop view - Reduced carousel images */
@media (min-width: 1024px) {
    .carousel-container {
        height: 400px;
        max-height: 400px;
    }
    
    .carousel-item {
        height: 100%;
        aspect-ratio: 16 / 9;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .carousel-overlay {
        padding: 2rem;
    }
    
    .carousel-headline {
        font-size: 1.75rem;
    }
    
    .carousel-category {
        font-size: 0.875rem;
    }
}

.carousel-item img {
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: white;
}

.carousel-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--near-black);
}

.carousel-btn:hover {
    background-color: var(--gold);
    color: white;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-light);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--gold);
}

/* Article Cards */
.article-card {
    background-color: white;
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Container height determined by image - no white space */
.article-card-img-pd {
    overflow: hidden;
    border: none;
    width: 100%;
    max-width: 100%;
    display: block;
    /* No height defined - container height matches image */
}

/* Desktop view - Match hero image container style */
@media (min-width: 1024px) {
    .article-card {
        overflow: visible;
    }
    
    .article-card-image {
        border-radius: 0.5rem;
        margin-bottom: 0;
    }
    
    /* Container for article card images to ensure proper containment */
    .article-card > .article-card-image {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    /* IMG_PD.png - Container height determined by image, image fills width */
    .article-card-img-pd {
        width: 100%;
        max-width: 100%;
        display: block;
        border: none;
        overflow: hidden;
        /* No height defined - container height matches image */
    }
    
    .article-card-img-pd .article-card-image {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        display: block;
        margin: 0;
        border: 1px solid var(--gray-border);
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    /* Make content area match container width */
    .article-card-img-pd .article-card-content {
        width: 100%;
        max-width: 100%;
    }
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--gold);
    transform: translateY(-2px);
}

.article-card-image {
    /* Aspect ratio defined in responsive section */
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0 0.75rem;
    color: var(--near-black);
}

.article-card-headline a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.article-card-headline a:hover {
    color: var(--gold);
}

.article-card-summary {
    color: var(--body-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-light);
}

.article-card-meta a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.article-card-meta a:hover {
    color: var(--gold-dark);
}

/* Sidebar */
.sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--near-black);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 1rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-border);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
    width: 80px;
}

.popular-item-content {
    flex: 1;
}

.popular-item-category {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.popular-item-headline {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.popular-item-headline a {
    color: var(--near-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-item-headline a:hover {
    color: var(--gold);
}

.review-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item-image {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
    width: 60px;
}

.review-item-content {
    flex: 1;
}

.review-item-category {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-item-headline {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.review-item-headline a {
    color: var(--near-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-item-headline a:hover {
    color: var(--gold);
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    color: var(--gold);
    font-size: 0.875rem;
}

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Section Headings */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--near-black);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--gold);
    margin-bottom: 1.5rem;
}

/* Festival Grid */
.festival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.festival-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.festival-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.festival-card:hover img {
    transform: scale(1.1);
}

.festival-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    color: white;
}

/* Spotlight */
.spotlight-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* What to Watch */
.bg-gold-tint {
    background-color: var(--gold-tint);
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.watch-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.watch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.watch-card-image {
    /* Aspect ratio defined in responsive section */
}

.watch-card-content {
    padding: 1rem;
}

.watch-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--near-black);
}

.watch-card-platform {
    font-size: 0.75rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.watch-card-recommendation {
    font-size: 0.75rem;
    color: var(--body-text);
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: #111111;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
    display: flex;
}

/* Utility Classes */
.text-gold {
    color: var(--gold);
}

.text-gold-dark {
    color: var(--gold-dark);
}

.bg-gold {
    background-color: var(--gold);
}

.bg-gold-dark {
    background-color: var(--gold-dark);
}

.border-gold {
    border-color: var(--gold);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .logo-image {
        max-width: 150px;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-headline {
        font-size: 1.25rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .article-card-headline {
        font-size: 1.25rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 0.5rem;
    }
    
    .carousel-btn-next {
        right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .logo-image {
        max-width: 120px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .hero-headline {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .news-ticker {
        font-size: 0.75rem;
    }
    
    .ticker-label {
        font-size: 0.625rem;
        padding-right: 0.75rem;
    }
    
    .ticker-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .ticker-inner {
        min-width: max-content;
    }
}

/* Accessibility */
*:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.6s ease-out;
}

/* Container max-width for better readability */
.container {
    max-width: 1280px;
}

/* Image optimization - Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--gray-border);
}

/* Aspect Ratio Containers for Proportional Images */
.carousel-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-card-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

/* Specific handling for IMG_PD.png - Container height determined by image, image fills width */
.article-card-img-pd {
    width: 100%;
    max-width: 100%;
    display: block;
    border: none;
    overflow: hidden;
    /* No height defined - container height matches image */
}

.article-card-img-pd .article-card-image {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0;
    border: 1px solid var(--gray-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    object-fit: contain;
    object-position: center;
    background-color: transparent;
}

/* Desktop view - Match hero image style */
@media (min-width: 1024px) {
    .article-card-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    /* IMG_PD.png - Container height determined by image, image fills width */
    .article-card-img-pd {
        width: 100%;
        max-width: 100%;
        display: block;
        border: none;
        overflow: hidden;
        /* No height defined - container height matches image */
    }
    
    .article-card-img-pd .article-card-image {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        display: block;
        margin: 0;
        border: 1px solid var(--gray-border);
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    /* Make article-card-content also respect the container width */
    .article-card-img-pd .article-card-content {
        width: 100%;
        max-width: 100%;
    }
}

/* Hero image wrapper base styles are defined above */

.hero-image-streaming {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.hero-image-streaming img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.watch-card-image {
    aspect-ratio: 2 / 3;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-image-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Popular and Review Items - Maintain Aspect Ratios */
.popular-item-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.review-item-image {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
}

/* Responsive Image Adjustments - Maintain Proportions */
/* Desktop (default) - images at full size */
@media (min-width: 1024px) {
    .carousel-item {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    
    .article-card-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    .hero-image-streaming {
        aspect-ratio: 16 / 9;
        max-height: 600px;
    }
    
    .watch-card-image {
        aspect-ratio: 2 / 3;
    }
    
    .popular-item-image {
        width: 80px;
        aspect-ratio: 4 / 3;
    }
    
    .review-item-image {
        width: 60px;
        aspect-ratio: 2 / 3;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-item {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    
    .article-card-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    /* IMG_PD.png - Container height determined by image, image fills width on tablet */
    .article-card-img-pd {
        width: 100%;
        max-width: 100%;
        display: block;
        border: none;
        overflow: hidden;
        /* No height defined - container height matches image */
    }
    
    .article-card-img-pd .article-card-image {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: unset;
        object-fit: contain;
        display: block;
        margin: 0;
        border: 1px solid var(--gray-border);
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    .hero-image-streaming {
        aspect-ratio: 16 / 9;
        max-height: 450px;
    }
    
    .watch-card-image {
        aspect-ratio: 2 / 3;
    }
    
    .popular-item-image {
        width: 70px;
        aspect-ratio: 4 / 3;
    }
    
    .review-item-image {
        width: 50px;
        aspect-ratio: 2 / 3;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .carousel-item {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }
    
    .article-card-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    /* IMG_PD.png - Container height determined by image, image fills width on mobile */
    .article-card-img-pd {
        width: 100%;
        max-width: 100%;
        display: block;
        border: none;
        overflow: hidden;
        /* No height defined - container height matches image */
    }
    
    .article-card-img-pd .article-card-image {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: unset;
        object-fit: contain;
        display: block;
        margin: 0;
        border: 1px solid var(--gray-border);
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    .hero-image-streaming {
        aspect-ratio: 16 / 9;
        max-height: 350px;
    }
    
    .watch-card-image {
        aspect-ratio: 2 / 3;
    }
    
    .popular-item-image {
        width: 60px;
        aspect-ratio: 4 / 3;
    }
    
    .review-item-image {
        width: 45px;
        aspect-ratio: 2 / 3;
    }
    
    .carousel-headline {
        font-size: 1.25rem;
    }
    
    .carousel-overlay {
        padding: 1rem;
    }
}

/* Small Mobile (below 640px) */
@media (max-width: 640px) {
    .carousel-item {
        aspect-ratio: 16 / 9;
        max-height: 250px;
    }
    
    .article-card-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        object-fit: contain;
        object-position: center;
    }
    
    /* IMG_PD.png - Container height determined by image, image fills width on small mobile */
    .article-card-img-pd {
        width: 100%;
        max-width: 100%;
        border: none;
        overflow: hidden;
        /* No height defined - container height matches image */
    }
    
    .article-card-img-pd .article-card-image {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: unset;
        object-fit: contain;
        display: block;
        margin: 0;
        border: 1px solid var(--gray-border);
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    .hero-image-streaming {
        aspect-ratio: 16 / 9;
        max-height: 280px;
    }
    
    .watch-card-image {
        aspect-ratio: 2 / 3;
    }
    
    .popular-item-image {
        width: 50px;
        aspect-ratio: 4 / 3;
    }
    
    .review-item-image {
        width: 40px;
        aspect-ratio: 2 / 3;
    }
}

/* Article content images (prose/content areas) - Maintain Natural Aspect Ratio */
.article-content img,
.prose img,
.main-streaming-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    display: block;
}

/* Ensure all images maintain aspect ratio */
img:not(.logo-video):not(.popular-item-image):not(.review-item-image) {
    max-width: 100%;
    height: auto;
}

/* Books page specific images - Maintain Aspect Ratio */
.article-feed .md\\:flex,
#books-feed .md\\:flex {
    display: flex;
}

.article-feed .md\\:flex > div:first-child,
#books-feed .md\\:flex > div:first-child {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.article-feed .md\\:flex img,
#books-feed .md\\:flex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .article-feed .md\\:flex > div:first-child,
    #books-feed .md\\:flex > div:first-child {
        aspect-ratio: 3 / 4;
        width: 100%;
    }
}

/* General image container for any flex layouts with images */
.md\\:flex img,
.flex img {
    max-width: 100%;
    height: auto;
}

/* Ensure object-cover works with aspect ratios */
img.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .article-content img,
    .prose img,
    .main-streaming-content img {
        margin: 1rem 0;
        border-radius: 0.25rem;
    }
}

/* Featured image wrapper responsive - Maintain Aspect Ratio */
.featured-image-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 1024px) {
    .featured-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .featured-image-wrapper {
        max-height: 350px;
    }
}

@media (max-width: 640px) {
    .featured-image-wrapper {
        max-height: 250px;
    }
}

/* Books page image - Maintain Aspect Ratio */
.article-feed img,
#books-feed img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .article-feed img,
    #books-feed img {
        aspect-ratio: 3 / 4;
    }
}

/* Article Page Styles */
.article-page {
    min-height: 60vh;
}

.article-title {
    font-family: 'Playfair Display', serif;
    color: var(--near-black);
    line-height: 1.2;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--body-text);
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--near-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    text-decoration: none;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Interviews Page Specific Styles */
.interviews-page {
    background-color: white;
}

.interview-card {
    transition: box-shadow 0.2s ease;
}

.interview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.play-button {
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

.expand-button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.action-button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
}

.video-container {
    position: relative;
}

.host-avatar {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.sort-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

@media (max-width: 768px) {
    .interview-card {
        padding: 1rem;
    }
    
    .play-button {
        width: 3rem;
        height: 3rem;
    }
    
    .play-button svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Streaming Page Specific Styles */
.hero-streaming {
    background-color: white;
}

.hero-image-streaming {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-image-streaming img {
    transition: transform 0.3s ease;
}

.hero-image-streaming:hover img {
    transform: scale(1.02);
}

.hero-headline-streaming {
    font-family: 'Playfair Display', serif;
    color: var(--near-black);
    line-height: 1.2;
}

.hero-headline-streaming a {
    text-decoration: none;
    color: inherit;
}

.hero-subheadline {
    font-weight: 500;
    line-height: 1.5;
}

.most-popular-box {
    position: sticky;
    top: 2rem;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.popular-list-streaming {
    width: 100%;
    overflow: visible;
}

.popular-item-streaming {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    min-width: 0; /* Allows flex items to shrink below content size */
    overflow: hidden;
    word-wrap: break-word;
}

.popular-item-streaming img {
    width: 80px;
    height: 64px;
    min-width: 80px;
    max-width: 80px;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.popular-item-streaming > div {
    flex: 1;
    min-width: 0; /* Critical for text truncation */
    overflow: hidden;
}

.popular-item-streaming h4 {
    color: var(--near-black);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Responsive adjustments for Most Popular section */
@media (max-width: 768px) {
    .popular-item-streaming img {
        width: 60px;
        height: 48px;
        min-width: 60px;
        max-width: 60px;
    }
    
    .popular-item-streaming h4 {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 640px) {
    .popular-item-streaming {
        gap: 0.5rem;
    }
    
    .popular-item-streaming img {
        width: 50px;
        height: 40px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .popular-item-streaming h4 {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}

.article-item-streaming {
    transition: all 0.2s ease;
}

.article-item-streaming:hover {
    transform: translateY(-2px);
}

.article-item-streaming h3 a {
    text-decoration: none;
    color: inherit;
}

.featured-box-office {
    transition: transform 0.2s ease;
}

.featured-image-wrapper {
    overflow: hidden;
}

.featured-image-wrapper img {
    transition: transform 0.3s ease;
}

.featured-box-office:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.platform-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.platform-card h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for streaming page */
@media (max-width: 768px) {
    .hero-headline-streaming {
        font-size: 1.75rem;
    }
    
    .hero-subheadline {
        font-size: 1.125rem;
    }
    
    .most-popular-box {
        position: static;
        margin-top: 2rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .utility-nav,
    .primary-nav,
    .news-ticker,
    .carousel-btn,
    .carousel-dots,
    .sidebar,
    .back-to-top,
    footer {
        display: none;
    }
    
    .article-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Hide sidebar sections on home page */
.hide-sidebar-section {
    display: none !important;
}

