:root {
    /* Kuvaportti Theme Palette */
    --bg-color: #281815;
    /* Darkest Brick/Brown from gradient */
    --bg-gradient: radial-gradient(circle at center, #4E342E 0%, #281815 100%);

    --text-color: #FFF8E1;
    /* Vintage Paper / Off-white */

    --ticket-bg: #FFF3E0;
    /* Warm Paper */
    --ticket-text: #3E2723;
    /* Dark Brown Text */

    --accent-color: #B71C1C;
    /* Theater Red */
    --secondary-color: #1B5E20;
    /* Vintage Green */

    --gold: #FFD54F;
    /* Softer Gold */
    --black: #0D0D0D;
}

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

html,
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    /* Estä selaus aluksi */
    /* Height 100% handles better than 100vh on mobile usually */
    height: 100%;
    width: 100%;
}

body {
    overflow: hidden;
    /* Keep original overflow behavior if needed for intro */
}

/* Fixed Background Layer for Full Coverage */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Use dynamic viewport height if supported, fallback to 100vh */
    height: 100dvh;
    z-index: -10;
    background-color: var(--bg-color);
    background: var(--bg-gradient);
    pointer-events: none;
}

/* Intro Container */
.intro-container {
    position: fixed;
    top: -25vh;
    left: 0;
    width: 100%;
    height: 150vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(10, 5, 0, 0.95);
    perspective: 1000px;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.2s ease;
}

#projector-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; /* Below ticket */
    overflow: hidden;
}

#projector-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.08;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}

#projector-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 4;
}

.proj-layer {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    z-index: 2;
    animation: zoomPan 30s linear infinite alternate;
}

.proj-layer.active {
    opacity: 0.35;
}

@keyframes zoomPan {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

.ticket-wrapper {
    z-index: 10;
}

.intro-container.dismissed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Ticket Wrapper */
.ticket-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
    cursor: grab;
}

.ticket-wrapper:active {
    cursor: grabbing;
}

/* Ticket Styles */
.ticket {
    width: 300px;
    /* background-color: var(--ticket-bg); REMOVED */
    color: var(--ticket-text);
    /* border-radius: 10px; REMOVED */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.5); REMOVED */
    position: relative;
    /* overflow: hidden; REMOVED to allow parts to move */
    transform-origin: top center;
    /* Alkuanimaatio: Tulostus */
    animation: print-ticket 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ticket-top {
    background-color: var(--ticket-bg);
    border-radius: 10px 10px 0 0;
    /* Use clip-path to cut off the shadow exactly at the bottom edge */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    clip-path: inset(-30px -30px 0px -30px);
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* Keep content inside rounded corners */
}

.ticket-top::before,
.ticket-top::after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Position at the bottom edge of top part */
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    /* Match main background */
    border-radius: 50%;
    z-index: 3;
}

.ticket-top::before {
    left: -10px;
}

.ticket-top::after {
    right: -10px;
}

.ticket-header {
    background-color: var(--accent-color);
    color: #FFF8E1;
    padding: 20px;
    text-align: center;
    border-bottom: 2px dashed rgba(62, 39, 35, 0.2);
}

.ticket-header span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.ticket-header h2 {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(1.4rem, 6vw, 1.8rem); /* Scale down properly on tiny screens */
    line-height: 1.1;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto; /* Re-enabled specifically for very long titles here */
    -webkit-hyphens: auto;
}

.ticket-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 40px;
    /* Space for rip line area */
}

.ticket-info {
    flex: 1 0 45%;
    margin-bottom: 15px;
}

.ticket-info .label {
    display: block;
    font-size: 0.7rem;
    color: #5D4037;
    /* Lighter brown for labels */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-info .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ticket-text);
}

.ticket-footer {
    background-color: var(--ticket-bg);
    padding: 20px;
    text-align: center;
    border-top: 2px dashed #8D6E63;
    /* Visible tear line */
    position: relative;
    z-index: 1;
    border-radius: 0 0 10px 10px;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.3); REMOVED */
    margin-top: -2px;
    /* Slight overlap to prevent gap */
}

/* .ticket-footer::before,
.ticket-footer::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border-radius: 50%;
    z-index: 3;
}

.ticket-footer::before {
    left: -10px;
}

.ticket-footer::after {
    right: -10px;
} REMOVED */

.barcode {
    height: 50px;
    width: 80%;
    margin: 0 auto 5px;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Libre Barcode 39', cursive;
    font-size: 40px;
    color: #3E2723;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    background: none;
    /* Ensure no gradient interference */
}

/* Remove span styles as they are no longer used/needed like before */
/* .barcode span { ... } - REMOVED */

.instruction {
    font-size: 0.8rem;
    color: #5D4037;
    margin-top: 10px;
    font-style: italic;
}

/* Animations */
@keyframes print-ticket {
    0% {
        transform: translateY(-120%) rotateX(-20deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Page Turn Animation for Ticket Footer */
@keyframes page-turn-right {
    0% {
        transform: rotate(0deg);
        transform-origin: top right;
        opacity: 1;
    }

    100% {
        transform: rotate(-120deg) translateX(50px) translateY(100px);
        transform-origin: top right;
        opacity: 0;
    }
}

/* Tearing State - Removed in favor of JS 3D Curl */
/* .ticket.tearing .ticket-footer {
    animation: page-turn-right 0.8s ease-in-out forwards;
    box-shadow: none;
} */

/* Add a jagged border to the body bottom when tearing starts to simulate the rip on the top part */
.ticket.tearing .ticket-body {
    border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
    /* Ensure visual consistency */
}

/* Main Content (Hidden initially) */
.main-content {
    padding: 50px;
    /* Restored to original */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
    max-width: 1200px;
    /* Restored to 1200px to match Hero alignment if needed or just standard */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        /* Restored to clear 20px margin */
    }
}

.main-content.visible {
    opacity: 1;
    transform: scale(1);
}

/* Movie List Styles */
.movies-container {
    padding: 20px 0;
}

.season-header {
    margin: 40px 0 20px;
    border-bottom: 1px solid rgba(255, 248, 225, 0.2);
    padding-bottom: 10px;
}

.season-header h2 {
    font-family: 'Abril Fatface', serif;
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.movies-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    padding-left: 0;

    /* Asymmetric Full Bleed Logic: */
    /* Left side: Respects parent padding (0 extra pull) */
    /* Right side: Pulls to screen edge (-50px parent padding) */
    margin-right: -50px;
    padding-right: 50px;
    /* Add visual padding at the end of scroll */
    width: calc(100% + 50px);

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Hide Native Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.movies-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* On Mobile, adjust for smaller parent padding */
@media (max-width: 768px) {
    .movies-grid {
        /* Mobile Bleed: -20px to match mobile padding */
        margin-right: -20px;
        padding-right: 20px;
        width: calc(100% + 20px);
        padding-left: 0;
    }

    .hero-container {
        width: 95%;
        height: 68vh;
        /* Increased from 60vh as requested */
        min-height: 450px;
        margin-bottom: 30px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Remove old scrollbar styles */
/* .movies-grid::-webkit-scrollbar-track ... REMOVED */
/* .movies-grid::-webkit-scrollbar-thumb ... REMOVED */

.movie-card {
    margin-right: 20px;
    flex: 0 0 auto;
    width: 200px;
    /* Poster width */

    /* Box Styles */
    background: transparent;
    /* Clean look, maybe just image and text? Or a card bg? User said "poster shaped". Let's do a minimal card or transparent. */
    /* Let's keep a subtle card background for readability but minimal padding */
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 0;
    /* Full bleed image top? */
    display: flex;
    flex-direction: column;
    /* VERTICAL */
    align-items: flex-start;
    transition: transform 0.3s ease;
    border: none;
    /* Cleaner */
    overflow: hidden;
    /* For image corners */
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.05);
}

.poster-container {
    width: 100%;
    aspect-ratio: 2/3;
    /* Standard Poster Ratio */
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}

.card-poster-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    /* Slightly brighter than before since text is NOT over it */
    transition: transform 0.3s ease;
}

.movie-card:hover .card-poster-thumb {
    transform: scale(1.05);
    /* Zoom effect */
    filter: brightness(1);
}

.card-info-vertical {
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Date in Bottom-Left Corner */
.poster-date-corner {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align left */
    z-index: 2;
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.9), transparent 80%);
    width: 100%;
    /* Gradient across corner */
    pointer-events: none;
}

.poster-date-corner .day {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.poster-date-corner .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.movie-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    /* Slightly smaller for card */
    margin: 0;
    line-height: 1.3;
    color: #FFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    /* Fix overflow for long titles like Piemonten... */
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* hyphens: none */
}

.movie-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
    font-weight: 300;

    /* Fix truncation of long strings */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    /* Aggressively break long words/paths */
    /* hyphens: none */
    line-height: 1.4;
}

/* Remove expanded styles as we use lightbox now */

/* Year Separator */
.year-separator {
    flex: 0 0 auto;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-right: 15px;
    padding-top: 20px;
    opacity: 0.8;
}

.year-separator span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Abril Fatface', serif;
    color: var(--gold);
    line-height: 1;
}

.year-separator .season-name {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.year-separator .season-year {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

/* Modal / Lightbox Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUp 0.3s;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 3rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 20;
    border-radius: 5px;
    transition: background 0.2s, transform 0.2s;
    user-select: none;
}

.modal-nav-btn:hover {
    background: rgba(255, 213, 79, 0.8);
    color: #000;
}

.modal-nav-btn.prev {
    left: -80px;
}

.modal-nav-btn.next {
    right: -80px;
}

/* Hide Nav Buttons on small screens (swipe is better) or adjust position */
@media (max-width: 900px) {
    .modal-content {
        margin: 10vh auto 0;
        min-height: 90vh;
        width: 100%;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid var(--gold);
        animation: slideUp 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    }
    .modal-hero {
        border-radius: 20px 20px 0 0;
    }
    
    .modal-nav-btn {
        background: rgba(0, 0, 0, 0.5);
        padding: 20px 10px;
        font-size: 2rem;
    }

    .modal-nav-btn.prev {
        left: 0;
        border-radius: 0 5px 5px 0;
    }

    .modal-nav-btn.next {
        right: 0;
        border-radius: 5px 0 0 5px;
    }
}

.close-modal:hover,
.close-modal:focus {
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Styling for content inside modal */
.modal-hero {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #1a1a1a, transparent);
}

.modal-info {
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Jos modalilla on hero-kuva, siirretään posteri/otsikot hero-kuvan päälle! */
.modal-info.has-hero {
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.modal-poster-wrap {
    flex-shrink: 0;
    max-width: 160px;
}

.modal-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal-text-wrap {
    flex: 1;
    min-width: 250px;
}

.modal-title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    color: var(--gold);
    margin-top: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .modal-info {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }
}

.modal-meta {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-desc {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    /* hyphens: none */
    max-width: 100%;
}

/* Calendar Button */
.calendar-btn {
    background-color: rgba(255, 213, 79, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    /* Align with title effectively but floating right */
    position: relative;
    z-index: 5;
}

.calendar-btn:hover {
    background-color: var(--gold);
    color: var(--black);
}

.calendar-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.calendar-btn:hover svg {
    transform: scale(1.1);
}

.calendar-btn.added {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.calendar-btn.added svg {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* NEW OVERLAY STYLES */
.poster-wrapper {
    position: relative;
    width: 70px;
    /* Reduced from 80 */
    height: 100px;
    /* Reduced from 120 */
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    background-color: #1a1a1a;
}

.card-poster-placeholder {
    width: 100%;
    height: 100%;
}

.movie-date-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    padding: 2px;
}

.movie-date-overlay .day {
    font-size: 1.5rem;
    /* Reduced from 1.8 */
    font-weight: 800;
    color: #FFF;
    line-height: 1;
}

.movie-date-overlay .month {
    font-size: 0.65rem;
    /* Reduced from 0.8 */
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .calendar-btn .btn-label {
        display: none;
    }

    .calendar-btn {
        padding: 10px;
    }
}

.movie-card.special-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #7F0000 100%);
    /* Red gradient */
    border-left: 4px solid var(--gold);
    margin-bottom: 20px;
}

.movie-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.movie-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2px;
    font-weight: 600;
}

.movie-info {
    flex: 1;
}

.movie-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #FFF;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    /* Fix overflow for long titles like Piemonten... */
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* hyphens: none */
}

.movie-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.movie-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s ease;
    margin-top: 0;
    font-size: 0.95rem;
    color: #EEE;
    line-height: 1.5;
}

.movie-poster {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

/* HERO SECTION */
.hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px;

    /* Desktop Height */
    height: 80vh;
    min-height: 500px;

    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Portrait / Mobile Tweaks */
@media (max-width: 768px) {
    .hero-container {
        width: 95%;
        /* User Request: 95% width on mobile */
        height: 60vh;
        /* Reduced height on mobile (was too tall) */
        min-height: 400px;
        margin-bottom: 30px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: transform 0.5s ease;
}

.hero-container:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.hero-date {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--white);
    margin: 0 0 10px 0;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.hero-meta {
    font-family: 'Inter', sans-serif;
    color: #CCC;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 600px;
    font-family: 'Inter', sans-serif;
    color: #EEE;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero-container {
        min-height: 400px;
    }
}

.movie-card {
    cursor: pointer;
    /* Indicate interactivity */
}

.movie-card.expanded .movie-details {
    max-height: 200px;
    /* Adjust as needed */
    margin-top: 15px;
}

.movie-card.expanded {
    background-color: #2E7D32;
    /* Slightly lighter/different green when active */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

/* About Section Styles */
.about-section {
    padding: 40px 0 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-block {
    background-color: var(--ticket-bg);
    /* Warm Paper background */
    color: var(--ticket-text);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid #D7CCC8;
    transform: rotate(-1deg);
    /* Slight rotation for "pinned note" effect */
    transition: transform 0.3s ease;
    margin-bottom: 50px;
}

.info-block:nth-child(1) {
    margin-bottom: 15px;
}

.info-block:nth-child(2) {
    transform: rotate(1deg);
    margin-bottom: 50px;
}

.info-block:nth-child(3) {
    transform: rotate(-0.5deg);
}

.info-block:hover {
    transform: scale(1.02) rotate(0);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Pin effect */
.info-block::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    /* Red pin */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.info-block h3 {
    font-family: 'Abril Fatface', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px dashed rgba(62, 39, 35, 0.2);
    padding-bottom: 10px;
}

.info-block p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Stylish Membership Section */
.highlight-box {
    background-color: #EEEae3;
    /* Vintage paper */
    border: 2px dashed #9E8B7E;
    /* Ticket perforation look */
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.highlight-box:hover {
    transform: translateY(-2px) rotate(0.5deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



.highlight-box .label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #5D4037;
    margin-bottom: 5px;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Stack "KAUSIKORTTI" and Season Label */
    align-items: center;
}

#current-season-label {
    color: #5D4037;
    font-weight: 800;
    font-size: 1.1rem;
    /* Slightly larger for emphasis */
    margin-top: 2px;
}

.highlight-box .price {
    font-family: 'Abril Fatface', serif;
    font-size: 2.5rem;
    color: #2E7D32;
    /* Vintage Green for price */
    line-height: 1;
}

.highlight-box .address {
    font-family: 'Abril Fatface', serif;
    font-size: 1.5rem;
    color: #3E2723;
    text-align: center;
    line-height: 1.2;
}

/* Placeholder card styles */
.movie-card.season-placeholder {
    opacity: 0.9;
    cursor: default;
    background: #1a1a1a;
    /* Dark background mainly */
}

.movie-card.season-placeholder:hover {
    transform: none;
    box-shadow: none;
}

.season-placeholder .card-poster-placeholder {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--gold);
    color: var(--text-color);
    /* Dark text on gold */
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

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

    .ticket {
        transform: scale(0.9);
        /* Scale down ticket slightly on mobile */
    }

    .info-block {
        transform: rotate(0) !important;
        /* Remove rotation on mobile */
        margin-bottom: 20px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    /* Darker than body */
    border-top: 1px solid var(--gold);
    padding: 40px 20px;
    margin-top: 0px;
    text-align: center;
    color: var(--text-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo h2 {
    font-family: 'Abril Fatface', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy p {
    font-size: 0.8rem;
    color: #888;
}

/* --- UI IMPROVEMENTS --- */

/* 1. Hero Text Truncation */
.hero-desc.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
}

.hero-desc.truncated:hover {
    color: #FFF;
}

.read-more-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
}

/* 2. Drag to Scroll & Full Bleed Layout */
.movies-grid {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    /* Full Bleed Logic */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* Align first item with content: max(MobilePadding, (Screen - Container)/2 + DesktopPadding) */
    padding-left: max(20px, calc((100vw - 1200px) / 2 + 50px));
    padding-right: 50px;
    /* End padding */
}

@media (max-width: 768px) {
    .movies-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.movies-grid img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.movies-grid.is-dragging {
    cursor: grabbing;
}

/* 3. Scroll Hint (Animated Arrow) */
.movies-section-wrapper {
    position: relative;
    width: 100%;
}

/* Container for the hint */
.scroll-hint-overlay {
    position: absolute;
    top: 50%;
    /* Position relative to viewport right edge even inside centered container */
    right: calc(50% - 50vw + 20px);
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-hint-overlay.visible {
    opacity: 1;
}

/* The visual arrow (SVG) */
.scroll-hint-overlay svg {
    width: 60px;
    height: 60px;
    color: var(--gold);
    background: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    /* Use filter for arrow shadow instead of box shadow */
    animation: sideBounce 1.5s infinite;
}

/* Remove old pseudo-element */
.scroll-hint-overlay::after {
    display: none;
}

@keyframes sideBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}