.films-page {
    padding: 60px 40px;
}

.film-category {
    margin-bottom: 10px;
}

.film-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.film-header h2 {
    font-size: 26px;
    font-family: 'Playfair Display', serif;
}

.film-header button {
    background: black;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
}

/* 🔥 GRID */
.film-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

/* 🔥 HORIZONTAL SCROLL */
.film-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.film-scroll::-webkit-scrollbar {
    display: none;
}
.film-row {
    display: flex;
    gap: 20px;
}

.film-row .film-card {
    min-width: 320px;
}

/* 🔥 CARD */
.film-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.film-card:hover {
    transform: translateY(-5px);
}
@media (min-width: 1025px) {
    .film-row .film-card {
        flex: 0 0 320px; /* 🔥 FIXED WIDTH */
    }
}
/* 🔥 THUMB */
.film-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* FIXED SIZE */
    border-radius: 14px;
    overflow: hidden;
}

/* 🔥 VIDEO FIX */
.film-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* 🔥 HOVER EFFECT (NO PLAY/PAUSE) */
.film-card:hover video {
    transform: scale(1.08);
    filter: brightness(0.8);
}

/* 🔥 PLAY BUTTON */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    padding: 12px;
    font-size: 14px;
}

/* 🔥 TEXT */
.film-meta {
    font-size: 12px;
    margin-top: 12px;
    color: black;
}

.film-title {
    font-size: 16px;
    margin-top: 5px;
    transition: color 0.3s ease;
    text-align: left;
}

/* 🔥 TEXT HOVER */
.film-card:hover .film-title {
    color: #e63946;
}
@media (max-width: 1024px) {

    .films-page {
        padding: 40px 20px;
    }

    .film-header h2 {
        font-size: 22px;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* FIX TRENDING SIZE */
    .film-row .film-card {
        min-width: 260px;
    }
}
@media (max-width: 768px) {

    .films-page {
        padding: 30px 14px;
    }

    .film-header h2 {
        font-size: 18px;
    }

    .film-header button {
        font-size: 11px;
        padding: 4px 12px;
    }

    /* 🔴 GRID → SCROLL */
    .film-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 6px;
    }

    .film-grid::-webkit-scrollbar {
        display: none;
    }

    /* 🔴 CRITICAL FIX */
    .film-grid .film-card {
        min-width: 220px;
        flex-shrink: 0;
    }

    /* 🔴 TRENDING FIX */
    .film-row .film-card {
        min-width: 220px;
    }
}
@media (max-width: 480px) {

    /* ===== PAGE ===== */
    .films-page {
        padding: 16px 8px;   /* 🔥 tighter */
    }

    .film-category {
        margin-bottom: -8px; /* 🔥 reduced gap */
    }

    /* ===== HEADER ===== */
    .film-header {
        margin-bottom: 8px;
        padding: 0 2px;
    }

    .film-header h2 {
        font-size: 20px;
        font-weight: 600;
    }

    .film-header button {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 20px;
    }

    /* ===== ROW ===== */
    .film-row {
        padding-left: 2px;
        gap: 10px;
    }

    /* ===== CARD (MAIN FIX) ===== */
    .film-card {
        flex: 0 0 auto;
        min-width: 260px;   /* 🔥 increased */
    }

    /* ===== THUMB ===== */
    .film-thumb {
        height: 160px;      /* 🔥 bigger height */
        border-radius: 12px;
        overflow: hidden;
    }

    .film-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ===== TEXT ===== */
    .film-meta {
        font-size: 13px;
        margin-top: 5px;
        opacity: 1;
        margin-left: 4px;
    }

    .film-title {
        font-size: 16px;
        font-weight: 500;
        margin-top: 2px;
    }

    /* ===== BUTTON ===== */
    .play-btn {
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 20px;
    }

}
.skeleton-box,
.skeleton-text {
    background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite;
}

.skeleton-box { height: 100%; }
.skeleton-text { height: 12px; margin-top: 10px; width: 80%; }

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}