/* =============================================
   MOVIES PAGE STYLES
   ============================================= */

/* Fix horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Theme Variables */
:root {
    --black: #000000;
    --noir: #0a0608;
    --charcoal: #14101a;
    --slate: #1c1624;
    --steel: #2d2438;
    --silver: #9a8fa8;
    --pearl: #f0eaf5;
    --white: #ffffff;
    --ruby: #e31b54;
    --crimson: #c41040;
    --gold: #f5a623;
    --amber: #ffb347;
    --burgundy: #6b1c3a;
    --royal-purple: #4a1259;
    --deep-violet: #2d1b4e;
    --text: var(--pearl);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme Colors */
[data-theme="ocean"] {
    --ruby: #0ea5e9;
    --crimson: #0284c7;
    --gold: #38bdf8;
    --amber: #7dd3fc;
    --burgundy: #0c4a6e;
    --royal-purple: #075985;
}

[data-theme="emerald"] {
    --ruby: #10b981;
    --crimson: #059669;
    --gold: #34d399;
    --amber: #6ee7b7;
    --burgundy: #064e3b;
    --royal-purple: #047857;
}

[data-theme="purple"] {
    --ruby: #a855f7;
    --crimson: #9333ea;
    --gold: #c084fc;
    --amber: #d8b4fe;
    --burgundy: #4c1d95;
    --royal-purple: #6b21a8;
}

[data-theme="sunset"] {
    --ruby: #f97316;
    --crimson: #ea580c;
    --gold: #fb923c;
    --amber: #fdba74;
    --burgundy: #7c2d12;
    --royal-purple: #9a3412;
}

[data-theme="rose"] {
    --ruby: #ec4899;
    --crimson: #db2777;
    --gold: #f472b6;
    --amber: #f9a8d4;
    --burgundy: #831843;
    --royal-purple: #9d174d;
}

[data-theme="red"] {
    --ruby: #ef4444;
    --crimson: #dc2626;
    --gold: #f87171;
    --amber: #fca5a5;
    --burgundy: #7f1d1d;
    --royal-purple: #991b1b;
}

[data-theme="darkred"] {
    --ruby: #b91c1c;
    --crimson: #991b1b;
    --gold: #dc2626;
    --amber: #ef4444;
    --burgundy: #450a0a;
    --royal-purple: #7f1d1d;
}

[data-theme="yellow"] {
    --ruby: #eab308;
    --crimson: #ca8a04;
    --gold: #facc15;
    --amber: #fde047;
    --burgundy: #713f12;
    --royal-purple: #854d0e;
}

[data-theme="darkyellow"] {
    --ruby: #a16207;
    --crimson: #854d0e;
    --gold: #ca8a04;
    --amber: #eab308;
    --burgundy: #422006;
    --royal-purple: #713f12;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
}

/* Override main padding for this page */
.main {
    padding-top: 0 !important;
}

/* Page Hero - Full Cover Under Menu (Same as znjirafilm) */
.page-cover {
    position: relative;
    min-height: 450px;
    display: flex;
/*    align-items: flex-end;*/
    padding: 160px 80px 60px;
    margin-top: 0;
    overflow: hidden;
}

.page-cover__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.page-cover__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--noir) 0%, rgba(10, 6, 8, 0.5) 50%, rgba(10, 6, 8, 0.3) 100%),
        linear-gradient(270deg, var(--noir) 0%, transparent 50%);
    z-index: 1;
}

.page-cover__content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

@media (max-width: 1024px) {
    .page-cover {
        padding: 120px 40px 50px;
    }
}

@media (max-width: 768px) {
    .page-cover {
        min-height: 280px;
        padding: 100px 24px 40px;
    }
}

.page-cover__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-cover__filters {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* Modern Filter Styles - Glassmorphism Design */
.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.filter-label i {
    font-size: 0.9rem;
    color: var(--ruby);
    filter: drop-shadow(0 0 6px var(--ruby));
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 14px 48px 14px 22px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    background-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Animated gradient border on hover */
.filter-select::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--ruby), var(--gold), var(--ruby));
    background-size: 200% 200%;
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    animation: gradientShift 3s ease infinite;
    transition: opacity 0.4s ease;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(227, 27, 84, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23e31b54' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.filter-select:focus {
    outline: none;
    border-color: var(--ruby);
    box-shadow:
        0 0 0 3px rgba(227, 27, 84, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(227, 27, 84, 0.2);
}

.filter-select:active {
    transform: translateY(0) scale(0.98);
}

.filter-select option {
    background: linear-gradient(180deg, #1a1424 0%, #0d0a12 100%);
    color: var(--white);
    padding: 14px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-select option:hover {
    background: var(--ruby);
}

/* Filter Container Wrapper for Animation */
.page-cover__filters {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   MODERN FILTER BUTTON & POPUP STYLES
   ============================================= */

/* Filter Trigger Button */
.filter-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--ruby) 0%, var(--crimson) 100%);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(227, 27, 84, 0.4);
    position: relative;
    overflow: hidden;
}

.filter-trigger-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.filter-trigger-btn:hover::before {
    transform: translateX(100%);
}

.filter-trigger-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(227, 27, 84, 0.5);
}

.filter-trigger-btn:active {
    transform: translateY(0) scale(0.98);
}

.filter-trigger-btn i {
    font-size: 1.1rem;
}

.filter-count {
    background: var(--white);
    color: var(--ruby);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* Filter Popup Overlay */
.filter-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filter Popup Modal */
.filter-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1424 0%, #0d0a12 100%);
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.filter-popup-overlay.active .filter-popup {
    transform: translateY(0);
}

/* Popup Header */
.filter-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1a1424 0%, #1a1424 100%);
    z-index: 10;
}

.filter-popup__header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.filter-popup__header h3 i {
    color: var(--ruby);
}

.filter-popup__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--pearl);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-popup__close:hover {
    background: var(--ruby);
    border-color: var(--ruby);
    color: var(--white);
    transform: rotate(90deg);
}

/* Popup Body */
.filter-popup__body {
    padding: 24px 28px;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 32px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pearl);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-section__title i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--pearl);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--ruby) 0%, var(--crimson) 100%);
    border-color: var(--ruby);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(227, 27, 84, 0.4);
}

.filter-chip.active:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(227, 27, 84, 0.5);
}

/* Popup Footer */
.filter-popup__footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    bottom: 0;
    background: linear-gradient(0deg, #0d0a12 0%, #0d0a12 80%, transparent 100%);
}

.filter-reset-btn,
.filter-apply-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--pearl);
}

.filter-reset-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-apply-btn {
    background: linear-gradient(135deg, var(--ruby) 0%, var(--gold) 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(227, 27, 84, 0.35);
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(227, 27, 84, 0.45);
}

/* Hide old filter elements */
.page-cover__filters,
.filter-group,
.filter-label,
.filter-select,
.hidden-filter-select {
    display: none !important;
}

/* Desktop: Center popup */
@media (min-width: 769px) {
    .filter-popup {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.9);
        max-width: 520px;
        width: 90%;
        max-height: 80vh;
        border-radius: 24px;
        opacity: 0;
    }

    .filter-popup-overlay.active .filter-popup {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Movies Section */
.movies-section {
    padding: 40px 80px 80px;
}

@media (max-width: 1024px) {
    .movies-section {
        padding: 30px 24px 60px;
    }
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

@media (min-width: 1400px) {
    .movies-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Movie Card */
.movie-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--charcoal) 0%, var(--noir) 100%);
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.movie-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(227, 27, 84, 0.15);
}

/* Glow Effect */
.movie-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s ease;
}

.movie-card:hover::after {
    opacity: 0.25;
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--ruby), var(--gold), var(--burgundy), var(--ruby));
    background-size: 300% 300%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 3s linear infinite;
    transition: opacity 0.4s ease;
}

.movie-card:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.movie-card__link {
    display: block;
}

.movie-card__poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.movie-card:hover .movie-card__img {
    transform: scale(1);
    filter: brightness(0.85);
}

/* Shimmer Effect */
.movie-card__poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    z-index: 2;
    transition: left 0.8s ease;
}

.movie-card:hover .movie-card__poster::before {
    left: 150%;
}

.movie-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 8, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.movie-card:hover .movie-card__overlay {
    opacity: 1;
}

.movie-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 40px rgba(227, 27, 84, 0.5);
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Rating Badge */
.movie-card__rating {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: linear-gradient(135deg, #fff000 0%, #ffaa00 100%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--black);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(255, 240, 0, 0.3);
}

.movie-card__rating i {
    font-size: 0.65rem;
}

/* Views Badge */
.movie-card__views {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pearl);
    z-index: 5;
}

.movie-card__views i {
    font-size: 0.7rem;
    color: var(--gold);
}

/* Movie Card Info */
.movie-card__info {
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.movie-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pearl);
    text-align: center;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.4s ease;
}

.movie-card:hover .movie-card__title {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-wrap a:hover {
    background: var(--ruby);
    border-color: var(--ruby);
    color: var(--white);
}

.pagination-wrap .currentpage {
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-color: var(--ruby);
    color: var(--white);
    font-weight: 600;
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--noir);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--ruby);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .page-cover__content {
        padding: 30px 24px;
    }

    .page-cover__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-cover {
        height: 280px;
    }

    .filter-select {
        min-width: 150px;
        padding: 12px 40px 12px 18px;
        border-radius: 30px;
    }

    .movies-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .page-cover {
        height: 240px;
    }

    .page-cover__filters {
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}

/* Mobile - Force 2 columns */
@media (max-width: 950px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .movies-section {
        padding: 20px 16px 80px;
    }

    .container {
        padding: 0 12px;
    }

    /* Smaller cards on mobile */
    .movie-card__rating,
    .movie-card__views {
        padding: 4px 8px;
        font-size: 0.6rem;
        top: 8px;
        border-radius: 6px;
    }

    .movie-card__rating {
        left: 8px;
    }

    .movie-card__views {
        right: 8px;
    }

    .movie-card__rating i,
    .movie-card__views i {
        font-size: 0.5rem;
    }

    .movie-card__info {
        padding: 10px;
    }

    .movie-card__title {
        font-size: 0.8rem;
    }

    .movie-card__play {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .movie-card {
        border-radius: 12px;
    }

    /* Page cover adjustments */
    .page-cover {
        min-height: 320px;
        padding: 180px 20px 30px;
/*        margin-top: -100px;*/
    }

    .page-cover__title {
/*        font-size: 1.6rem;*/
        margin-bottom: 16px;
        text-align: right;
    }

    .page-cover__filters {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .filter-group {
        width: auto;
        flex: 1;
        max-width: 160px;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
        padding: 12px 36px 12px 16px;
        font-size: 0.85rem;
        border-radius: 30px;
    }

    .filter-label {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 580px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .movies-section {
        padding: 16px 10px 90px;
    }

    .container {
        padding: 0 8px;
    }

    /* Even smaller badges */
    .movie-card__rating,
    .movie-card__views {
        padding: 3px 6px;
        font-size: 0.55rem;
        top: 6px;
        border-radius: 5px;
    }

    .movie-card__rating {
        left: 6px;
    }

    .movie-card__views {
        right: 6px;
    }

    .movie-card__rating i,
    .movie-card__views i {
        font-size: 0.45rem;
    }

    .movie-card__info {
        padding: 8px;
    }

    .movie-card__title {
        font-size: 0.75rem;
    }

    .movie-card__play {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .movie-card {
        border-radius: 10px;
    }

    /* Page cover */
    .page-cover {
        min-height: 300px;
        padding: 100px 12px 25px;
/*        margin-top: -100px;*/
    }

    .page-cover__title {
/*        font-size: 1.4rem;*/
        margin-bottom: 12px;
        text-align: right;
    }

    .page-cover__filters {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
    }

    .filter-group {
        flex: 1;
        max-width: 150px;
    }

    .filter-select {
        padding: 11px 30px 11px 14px;
        font-size: 0.8rem;
        border-radius: 30px;
    }

    .filter-label {
        display: none;
    }

    /* Pagination */
    .pagination-wrap {
        margin-top: 30px;
        gap: 6px;
    }

    .pagination-wrap a,
    .pagination-wrap span {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

@media screen and (max-width: 1180px) {
    .page-cover {
        min-height: 390px !important;
        padding: 0 !important;
        align-items: unset !important;
    }
}
