/*
VIDEOTEKA CSS
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #0b0b0b;
    color: white;
    font-family: Arial, sans-serif;
}

img,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    padding: 24px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: rgba(11,11,11,0.92);
    backdrop-filter: blur(12px);
    z-index: 999;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
}

.container {
    max-width: 1600px;
    margin: auto;
    padding: 40px;
}

.page-title {
    font-size: 56px;
    margin-bottom: 40px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 30px;
}

/* Base Card Styles */
.movie-card {
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, filter 0.3s ease, opacity 0.3s ease;
}

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

/* Greyed out state for movies without streams */
.movie-card.no-stream {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Return to full color on hover */
.movie-card.no-stream:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,200,83,0.95);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

.subtitle-flags {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.flag {
    background: rgba(0,0,0,0.7);
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}

.movie-info {
    margin-top: 14px;
}

.movie-info h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.movie-meta {
    display: flex;
    gap: 12px;
    color: #aaa;
    font-size: 14px;
}

.movie-page {
    min-height: 100vh;
}

.movie-hero {
    position: relative;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.movie-content {
    display: flex;
    gap: 50px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: auto;
    align-items: flex-start;
}

.movie-poster {
    width: 320px;
    flex-shrink: 0;
}

.movie-poster img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.movie-details {
    flex: 1;
    min-width: 0;
}

.movie-details h1 {
    font-size: 56px;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.1;
}

.subtitle-badges {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.subtitle-badges span {
    background: rgba(255,255,255,0.12);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
}

.movie-description {
    margin: 40px 0;
    line-height: 1.8;
    font-size: 18px;
    color: #ddd;
    max-width: 900px;
}

.cast-section {
    max-width: 1400px;
    margin: auto;
    padding: 0 40px 80px;
}

.cast-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

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

.actor-card {
    text-decoration: none;
    color: white;
}

.actor-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.actor-name {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 768px) {

    .site-header {
        padding: 18px 20px;
    }

    .logo {
        font-size: 26px;
    }

    .container {
        padding: 20px;
    }

    .page-title {
        font-size: 38px;
        margin-bottom: 30px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .movie-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .movie-poster {
        width: 220px;
        max-width: 100%;
        margin: 0 auto;
    }

    .movie-details {
        width: 100%;
    }

    .movie-details h1 {
        font-size: 38px;
    }

    .movie-description {
        font-size: 17px;
        line-height: 1.7;
        margin: 30px 0;
    }

    .cast-section {
        padding: 0 20px 60px;
    }

    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

}