/* ============================================
   KINOMIX - Profesjonalna Platforma Streamingowa
   Netflix Style CSS - v2.0
   ============================================ */

/* ============================================
   0. GLOBAL RESET - BLOCK HORIZONTAL SCROLL
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Netflix Colors */
    --netflix-black: #141414;
    --netflix-dark: #181818;
    --netflix-red: #e50914;
    --netflix-red-hover: #f40612;
    --netflix-white: #ffffff;
    --netflix-text: #e5e5e5;
    --netflix-text-secondary: #a3a3a3;
    --netflix-gray: #808080;
    
    /* Layout */
    --max-width: 1400px;
    --header-height: 68px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    
    /* Border Radius */
    --border-radius: 6px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--netflix-black);
    color: var(--netflix-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   3. MAIN CONTAINER - GLOBAL WYRÓWNANIE
   ============================================ */
.container,
.header-container,
.hero-content,
.category-hero-content,
.movie-hero-content {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container,
    .header-container,
    .hero-content,
    .category-hero-content,
    .movie-hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .container,
    .header-container,
    .hero-content,
    .category-hero-content,
    .movie-hero-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   4. HERO SECTION - NETFLIX STYLE
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    padding-top: calc(68px + 60px);
    padding-bottom: 80px;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.35)
    );
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding-top: calc(68px + 40px);
        padding-bottom: 40px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 55vh;
        max-height: 450px;
        padding-top: calc(64px + 30px);
        padding-bottom: 30px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        flex: none;
        min-width: auto;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0.6) 30%, rgba(20, 20, 20, 0.2) 60%, transparent 100%),
                linear-gradient(to right, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.4) 40%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 520px;
    }
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    background: var(--netflix-red);
    color: var(--netflix-white);
    padding: 4px 12px;
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.1;
    max-width: 700px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    color: var(--netflix-text-secondary);
    flex-wrap: wrap;
}

.hero-rating {
    color: #46d369;
    font-weight: bold;
}

.hero-quality {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: var(--font-size-xs);
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    color: var(--netflix-text);
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hero-genres {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   HEADER - FIXED TRANSPARENT TO DARK
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 26px;
    font-size: 15px;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-input {
    width: 220px;
    height: 36px;
    border-radius: 6px;
    padding: 0 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 28px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 80px 0 20px 0;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.nav-mobile.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.nav-mobile li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile a {
    color: #ffffff !important;
    text-decoration: none;
    padding: 16px 24px;
    display: block;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    z-index: 10002;
    position: relative;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: white;
    background: rgba(229, 9, 20, 0.1);
    border-left-color: var(--netflix-red);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .search-input {
        display: block;
        width: 140px;
        font-size: 13px;
        padding: 0 8px;
    }

    .header-container {
        gap: 12px;
        padding-right: 15px !important;
    }
    
    .header-right {
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
}

/* ============================================
   BUTTONS - TOUCH FRIENDLY
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    min-height: 48px;
}

/* Mobile buttons */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.625rem 1.25rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

.btn-cta {
    background: var(--netflix-white);
    color: var(--netflix-black);
}

.btn-cta:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--netflix-white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-play {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--netflix-black);
    transition: var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-play:hover {
    transform: scale(1.1);
    background: var(--netflix-white);
}

/* ============================================
   6. MOVIE SECTIONS - UPORZĄDKOWANE
   ============================================ */
.movie-section {
    padding: 30px 0;
    position: relative;
}

.category-section {
    padding: 30px 0;
    margin-bottom: 30px;
}

.section-header {
    display: block;
    margin-bottom: var(--spacing-md);
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    text-align: left;
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--netflix-white);
    margin: 0;
    padding: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .section-header {
        padding: 0;
        margin-bottom: 12px;
    }
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--netflix-white);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .section-title {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .section-title {
        margin-top: 4px;
    }
}

.section-link {
    font-size: var(--font-size-sm);
    color: var(--netflix-text-secondary);
    transition: var(--transition-fast);
    text-decoration: none;
}

.section-link:hover {
    color: var(--netflix-white);
}

/* ============================================
   7. MOVIE GRID - RESPONSIVE COLUMNS
   ============================================ */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0 !important;
    padding: 0 !important;
    justify-content: start !important;
    gap: 20px !important;
}

.movie-grid > *:first-child,
.movie-row > *:first-child,
.movie-card:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 1400px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px !important;
    }
}

@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px !important;
    }
}

@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px !important;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        width: 100%;
        max-width: 100%;
        justify-content: center !important;
        align-items: start !important;
    }
    
    .movie-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }
    
    .movie-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .movie-card-image-wrapper {
        width: 100% !important;
        aspect-ratio: 2/3 !important;
    }
    
    .movie-card-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .movie-card-info {
        padding: 8px 0 !important;
        text-align: center !important;
    }
    
    .movie-card-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .movie-card-meta {
        font-size: 11px !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
        width: 100%;
        max-width: 100%;
        justify-content: center !important;
    }
    
    .movie-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
        padding: 0 12px !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }
    
    .movie-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .movie-card-image-wrapper {
        width: 100% !important;
        aspect-ratio: 2/3 !important;
        border-radius: 8px !important;
    }
    
    .movie-card-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .movie-card-info {
        padding: 6px 0 !important;
        text-align: center !important;
    }
    
    .movie-card-title {
        font-size: 12px !important;
        text-align: center !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .movie-card-meta {
        font-size: 10px !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    
    .movie-card-rating {
        font-size: 10px !important;
    }
}

/* ============================================
   8. MOVIE CARDS - NETFLIX STYLE WITH HOVER
   ============================================ */
.movie-card:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(229, 9, 20, 0.3);
}

.movie-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.movie-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.movie-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: var(--spacing-sm);
}

.movie-card:hover .movie-card-overlay {
    opacity: 1;
}

.movie-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--netflix-black);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.movie-card:hover .movie-card-play {
    opacity: 1;
}

.movie-card-play:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--netflix-white);
}

.movie-card-info {
    padding: var(--spacing-sm) 0 0 0;
}

.movie-card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--netflix-white);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--netflix-text-secondary);
}

.movie-card-rating {
    color: #46d369;
    font-weight: bold;
}

.movie-card-year {
    color: var(--netflix-text-secondary);
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */
.slider-container {
    position: relative;
    width: 100%;
}

/* ============================================
   MOVIE ROW - GRID LAYOUT (Multi-row)
   ============================================ */
.movie-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: start !important;
}

.movie-row > *:first-child,
.movie-row > .movie-card:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

@media (max-width: 1400px) {
    .movie-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px !important;
    }
}

@media (max-width: 1200px) {
    .movie-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px !important;
    }
}

@media (max-width: 992px) {
    .movie-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px !important;
    }
}

@media (max-width: 768px) {
    .movie-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .movie-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ============================================
   9. HEADER - STICKY
   ============================================ */

.footer {
    background: var(--netflix-dark);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-section h3 {
    color: var(--netflix-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--netflix-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--netflix-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--netflix-text-secondary);
    font-size: 0.875rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
        text-align: center;
    }
    
    .footer-section h3 {
        margin-bottom: 0.75rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    
    .footer-section li {
        margin-bottom: 0;
    }
    
    .footer {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 24px 0 16px;
        margin-top: 30px;
    }
    
    .footer-content {
        padding: 0 16px;
        gap: 16px;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 16px;
        margin-top: 16px;
    }
}

@media (max-width: 320px) {
    .footer-content {
        padding: 0 12px;
    }
}

/* ============================================
   11. MOVIE DETAIL PAGE - NETFLIX STYLE
   ============================================ */

/* Movie Hero - pełna szerokość z backdrop */
.movie-hero {
    position: relative;
    min-height: 80vh;
    height: auto;
    display: flex;
    align-items: flex-end;
    padding: 0 0 40px 0;
    overflow: hidden;
    margin-top: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.movie-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.movie-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.7) 30%, rgba(20, 20, 20, 0.3) 60%, transparent 100%),
                linear-gradient(to right, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.4) 40%, transparent 70%);
    z-index: 1;
}

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

.movie-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    line-height: 1.1;
    max-width: 700px;
}

.movie-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--netflix-text-secondary);
    flex-wrap: wrap;
}

.movie-hero-rating {
    color: #46d369;
    font-weight: bold;
}

.movie-hero-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.movie-hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--netflix-text);
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.movie-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Movie Content Layout - 2 kolumny */
.movie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.movie-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .movie-layout {
        grid-template-columns: 1fr;
    }
}

/* Movie Poster */
.movie-poster-container {
    position: sticky;
    top: 100px;
}

.movie-poster-large {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    aspect-ratio: 2/3;
    object-fit: cover;
}

/* Movie Info */
.movie-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--netflix-white);
}

.movie-info-section {
    margin-bottom: 1.5rem;
}

.movie-info-section h3 {
    font-size: 0.9rem;
    color: var(--netflix-text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.movie-info-section p,
.movie-info-section span {
    font-size: 1rem;
    color: var(--netflix-text);
    line-height: 1.6;
}

.movie-cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.movie-cast-item {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Video Player */
.movie-player-section {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 40px;
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--netflix-black);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Player Action Buttons - Ulubione, Udostępnij */
.movie-player-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.movie-player-actions .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--netflix-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.movie-player-actions .btn-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.movie-player-actions .btn-action.favorite:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
}

/* Similar Movies Section */
.similar-movies {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.similar-movies h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--netflix-white);
}

.similar-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .movie-hero {
        min-height: 60vh;
        padding-bottom: 30px;
    }
    
    .movie-content {
        padding: 20px;
    }
    
    .movie-player-section,
    .similar-movies {
        padding: 0 20px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .movie-hero {
        min-height: 50vh;
        padding-bottom: 20px;
    }
    
    .movie-hero-title {
        font-size: 1.75rem;
    }
    
    .movie-player-section {
        margin-top: 30px;
    }
}

/* ============================================
   10. RESPONSIVE - MOBILE OPTIMIZATIONS
   ============================================ */

/* Typography improvements for mobile */
@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        line-height: 1.5;
        max-width: 100%;
    }
    
    .hero-meta {
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .movie-section {
        padding: 20px 0;
    }
    
    .category-section {
        padding: 16px 0;
        margin-bottom: 16px;
    }
    
    .section-header {
        margin-bottom: 12px;
    }
    
    .movie-card-title {
        font-size: 0.85rem;
    }
    
    .movie-card-meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-link {
        font-size: 0.8rem;
    }
    
    .genre-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .movie-card-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.35rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .hero {
        height: 55vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .hero-badge {
        font-size: 0.65rem;
    }
}

/* ============================================
   11. UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

/* ============================================
   SEARCH - MODERN TRANSPARENT NETFLIX STYLE
   ============================================ */

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    transition: all 0.25s ease;
    min-width: 200px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 260px;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--netflix-white);
    font-size: 14px;
    padding: 0 10px;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-weight: 400;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.search-box:focus-within .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Search */
@media (max-width: 992px) {
    .search-box {
        min-width: 180px;
    }
    
    .search-box:focus-within {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        position: static;
    }
    
    .search-box {
        min-width: 140px;
        padding: 5px 10px;
    }
    
    .search-box:focus-within {
        min-width: 180px;
    }
    
    .search-input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-box {
        min-width: 120px;
        padding: 4px 8px;
        border-radius: 16px;
    }
    
    .search-input {
        font-size: 12px;
    }
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--netflix-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.search-result-poster {
    width: 45px;
    height: 68px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--netflix-dark);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    color: var(--netflix-white);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    color: var(--netflix-text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-rating {
    color: #46d369;
    font-weight: 600;
}

.search-no-results {
    padding: 30px 16px;
    text-align: center;
    color: var(--netflix-text-secondary);
    font-size: 14px;
}

.search-loading {
    padding: 30px 16px;
    text-align: center;
    color: var(--netflix-text-secondary);
    font-size: 14px;
}

/* Responsive Search */
@media (max-width: 992px) {
    .search-box {
        min-width: 200px;
    }
    
    .search-results {
        width: 340px;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        position: static;
    }
    
    .search-box {
        min-width: 160px;
        padding: 6px 10px;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-results {
        position: fixed;
        top: 68px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 90px);
        border-radius: 8px;
        z-index: 2000;
    }
}

@media (max-width: 480px) {
    .search-box {
        min-width: 130px;
        padding: 5px 8px;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
    }
    
    .search-input {
        font-size: 12px;
        padding: 0 6px;
    }
}

/* ============================================
   VIDEO PLAYER & OVERLAY - NETFLIX STYLE
   ============================================ */

/* Video Player Container */
.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Player Placeholder (gdy brak wideo) */
.video-player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    min-height: 300px;
}

.video-placeholder-content {
    text-align: center;
    padding: 2rem;
}

.video-placeholder-content p {
    color: var(--netflix-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Video Overlay - Netflix Style */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 100;
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-overlay-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.video-overlay-text {
    font-size: 1.25rem;
    color: var(--netflix-white);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.video-overlay-btn {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Movie Player Section */
.movie-player-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

/* Responsive Video Player */
@media (max-width: 768px) {
    .movie-player-section {
        padding: 0 20px;
    }
    
    .video-player {
        border-radius: 8px;
    }
    
    .movie-player-actions {
        margin-top: 20px;
        gap: 10px;
    }
    
    .movie-player-actions .btn-action {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .video-overlay-content {
        padding: 1.5rem;
    }
    
    .video-overlay-text {
        font-size: 1.1rem;
    }
    
    .video-placeholder-content {
        padding: 1.5rem;
    }
    
    .video-placeholder-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .movie-player-section {
        padding: 0 16px;
    }
    
    .video-player {
        border-radius: 6px;
    }
    
    .movie-player-actions {
        margin-top: 20px;
        gap: 8px;
        justify-content: center;
    }
    
    .movie-player-actions .btn-action {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .video-overlay-content {
        padding: 1rem;
    }
    
    .video-overlay-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .video-overlay-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .video-placeholder-content {
        padding: 1rem;
    }
    
    .video-placeholder-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Video Fallback - gdy trailer zablokowany */
.video-fallback {
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-fallback-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-fallback-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-fallback:hover .video-fallback-thumbnail {
    opacity: 0.5;
}

.video-fallback-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    padding: 2rem;
}

.video-fallback-text {
    color: var(--netflix-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.video-fallback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .video-fallback {
        border-radius: 8px;
    }
    
    .video-fallback-text {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .video-fallback-overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-fallback {
        border-radius: 6px;
    }
    
    .video-fallback-text {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .video-fallback-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .video-fallback-overlay {
        padding: 1rem;
    }
}

/* ============================================
   UNIWERSALNY SYSTEM BLOKADY VIDEO
   ============================================ */

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
}

.video-container .video-player {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.video-lock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lock-box {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.lock-box h3 {
    color: var(--netflix-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.lock-box p {
    color: var(--netflix-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--netflix-red);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background: #e50914;
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive */
@media (max-width: 768px) {
    .video-container {
        border-radius: 8px;
    }
    
    .lock-box {
        padding: 1.5rem;
    }
    
    .lock-box h3 {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .lock-box {
        padding: 1rem;
    }
    
    .lock-box h3 {
        font-size: 1.1rem;
    }
    
    .lock-box p {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Play button - widoczny przycisk startu */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 9, 20, 0.9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s, transform 0.2s;
}

.play-button:hover {
    background: rgba(229, 9, 20, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

/* ============================================
   LOGO STYLES - KINOMIX
   ============================================ */

.logo svg {
    height: 48px;
    width: auto;
    display: block;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo svg,
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo svg,
    .logo img {
        height: 32px;
    }
}

/* ============================================
   HERO CATEGORY - SIMPLE BANNER
   ============================================ */
.hero-category {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 40px 16px;
    background-size: cover;
    background-position: center;
    margin-top: 68px;
}

.hero-category::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.3)
    );
}

.hero-category-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-category-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-category-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--netflix-text);
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-category {
        min-height: 180px;
        padding: 30px 16px;
        margin-top: 64px;
    }
    
    .hero-category-title {
        font-size: 2rem;
    }
    
    .hero-category-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-category {
        min-height: 160px;
        padding: 25px 16px;
    }
    
    .hero-category-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   CATEGORY HERO BANNERS - NETFLIX STYLE
   ============================================ */
.category-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    margin-top: 68px;
    background-size: cover;
    background-position: center;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0.7) 40%, rgba(20, 20, 20, 0.3) 70%, transparent 100%),
                linear-gradient(to right, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.4) 50%, transparent 80%);
    z-index: 1;
}

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

.category-hero-badge {
    display: inline-block;
    background: var(--netflix-red);
    color: var(--netflix-white);
    padding: 0.4rem 1rem;
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.category-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.1;
    max-width: 700px;
}

.category-hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.5;
    color: var(--netflix-text);
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Category Hero Mobile */
@media (max-width: 768px) {
    .category-hero {
        height: 45vh;
        min-height: 350px;
        max-height: 500px;
        margin-top: 64px;
    }
    
    .category-hero-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
        margin-bottom: 0.5rem;
    }
    
    .category-hero-description {
        font-size: var(--font-size-base);
        max-width: 100%;
    }
    
    .category-hero-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .category-hero {
        height: 40vh;
        min-height: 300px;
        max-height: 400px;
    }
    
    .category-hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .category-hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* SPÓJNE ODSTĘPY MIĘDZY SEKCJAMI */
.movie-section .container {
    padding-left: 40px !important; /* To jest nasza linia bazowa */
    padding-right: 40px !important;
}

@media (max-width: 768px) {
    .movie-section .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .movie-section .section-header {
        text-align: left !important;
        margin-bottom: 12px !important;
    }
    
    .movie-section .section-title {
        text-align: left !important;
        font-size: 20px !important;
    }
    
    .movie-section .movie-row {
        justify-content: start !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .movie-section .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .movie-section .section-title {
        font-size: 18px !important;
    }
}
.section-header, .movie-grid, .movie-row {
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: start !important;
}
.movie-card:first-child {
    margin-left: 0 !important;
}

/* SEARCH RESULTS DROPDOWN */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--netflix-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--netflix-white);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-poster {
    width: 45px;
    height: 68px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--netflix-dark);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    color: var(--netflix-white);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    color: var(--netflix-text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-no-results {
    padding: 30px 16px;
    text-align: center;
    color: var(--netflix-text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .search-results {
        position: fixed;
        top: 68px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 90px);
        border-radius: 8px;
        z-index: 2000;
    }
}

/* ============================================
   MOVIE CARD - HORIZONTAL SCROLL
   ============================================ */
.movie-card {
    flex: 0 0 auto;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

@media (max-width: 768px) {
    .movie-card {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
}

/* ============================================
   SLIDER ARROWS
   ============================================ */
.slider-container {
    position: relative;
    padding: 0 50px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .slider-container {
        padding: 0 16px;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .slider-arrow.prev {
        left: 5px;
    }
    .slider-arrow.next {
        right: 5px;
    }
}

/* ============================================
   STRICT VERTICAL ALIGNMENT - CATEGORY PAGES ONLY
   ============================================ */

/* Only apply to category pages - sections with category-section class */
.category-section .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
}

/* Category page section headers - strict left alignment */
.category-section .section-header {
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.category-section .section-title {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
}

/* Slider container in category pages - remove left padding */
.category-section .slider-container {
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

/* Category page movie grid/row - strict left alignment */
.category-section .movie-grid,
.category-section .movie-row {
    margin: 0 !important;
    padding: 0 !important;
    justify-content: start !important;
    gap: 20px !important;
}

/* First card in category pages must start at 0 */
.category-section .movie-card:first-child,
.category-section .movie-grid > *:first-child,
.category-section .movie-row > *:first-child {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Category page slider arrows - reposition to not affect alignment */
.category-section .slider-arrow.prev {
    left: -50px !important;
}

.category-section .slider-arrow.next {
    right: -50px !important;
}

/* Mobile category pages */
@media (max-width: 768px) {
    .category-section .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .category-section .movie-grid,
    .category-section .movie-row {
        justify-content: start !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .category-section .section-header {
        text-align: left !important;
        margin-bottom: 16px !important;
    }
    
    .category-section .section-title {
        text-align: left !important;
        font-size: 20px !important;
    }
    
    .category-section .slider-arrow.prev {
        left: -30px !important;
    }
    
    .category-section .slider-arrow.next {
        right: -30px !important;
    }
}

@media (max-width: 480px) {
    .category-section .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .category-section .movie-grid,
    .category-section .movie-row {
        justify-content: start !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .category-section .section-header {
        text-align: left !important;
        margin-bottom: 12px !important;
    }
    
    .category-section .section-title {
        text-align: left !important;
        font-size: 18px !important;
    }
    
    .category-section .slider-arrow.prev {
        left: -20px !important;
    }
    
    .category-section .slider-arrow.next {
        right: -20px !important;
    }
}

/* Category Hero - ensure consistent alignment */
.category-hero .container,
.hero .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

@media (max-width: 768px) {
    .category-hero .container,
    .hero .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 480px) {
    .category-hero .container,
    .hero .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES - HAMBURGER MENU
   ============================================ */

/* Mobile Navigation Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow-y: auto;
}

.nav-mobile.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.nav-mobile ul {
    list-style: none;
    padding: 40px 30px;
    margin: 0;
    width: 100%;
    max-width: 300px;
}

.nav-mobile li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.nav-mobile li:last-child {
    border-bottom: none;
}

.nav-mobile a {
    display: block;
    padding: 18px 0;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--netflix-white);
    color: var(--netflix-red);
    transform: scale(1.05);
}

/* Close button for mobile menu */
.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--netflix-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.2s ease;
}

.nav-mobile-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ============================================
   FINAL MOBILE FIX
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 10px !important;
        height: 60px !important;
    }
    
    .search-container, .header-right {
        flex: 1 !important;
        margin: 0 !important;
        margin-left: 10px !important;
    }
    
    .header-right {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    
    .search-box {
        height: 38px !important;
        border-radius: 20px !important;
        width: 100% !important;
    }
    
    .logo {
        flex-shrink: 0 !important;
    }
    
    .movie-grid {
        padding: 0 16px !important;
        margin: 0 !important;
        justify-content: start !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        max-width: 100% !important;
    }
    
    .movie-grid .movie-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .movie-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        justify-content: start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .movie-row .movie-card {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .movie-card-image-wrapper {
        width: 100% !important;
        aspect-ratio: 2/3 !important;
    }
    
    .movie-card-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .nav {
        display: none !important;
    }
    
    .hero {
        margin-top: 60px !important;
    }
}
