/* ============================================
   KURD CINEMA - STUDIOS & FRANCHISES PAGE
   ============================================ */

/* Page Hero - Full Cover Under Menu */
.page-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 48px 80px;
    margin-top: -120px; /* Pull up fully under the fixed header */
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--noir) 50%, var(--deep-violet) 100%);
    z-index: 0;
}

.page-hero__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.page-hero__backdrop.loaded {
    opacity: 1;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(10, 6, 8, 0.3) 0%, 
        rgba(10, 6, 8, 0.6) 50%, 
        rgba(10, 6, 8, 0.95) 100%);
    z-index: 1;
}

.page-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 2;
}

.page-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

/* Studio Logo */
.studio-logo {
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
}

.studio-logo__img {
    height: 80px;
    transition: transform 0.5s ease;
}

.studio-logo:hover .studio-logo__img {
    transform: scale(1.1);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Studio Switcher */
.studio-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.studio-btn {
    width: 60px;
    height: 40px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.studio-btn img {
    height: 20px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.3s ease;
}

.studio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--btn-color, #fff);
    transform: translateY(-3px);
}

.studio-btn:hover img {
    filter: none;
}

.studio-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--btn-color, #fff);
    box-shadow: 0 0 20px var(--btn-color, #fff);
}

.studio-btn.active img {
    filter: none;
}

@media (max-width: 1024px) {
    .page-hero { padding: 120px 24px 60px; }
}

@media (max-width: 768px) {
    .page-hero { padding: 100px 20px 50px; }
}

@media (max-width: 576px) {
    .page-hero { padding: 100px 16px 40px; }
    .studio-logo__img { height: 60px; }
    .studio-switcher { gap: 8px; padding: 12px; }
    .studio-btn { width: 50px; height: 35px; padding: 6px 8px; }
    .studio-btn img { height: 16px; }
}

/* Stats */
.page-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.page-hero__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.page-hero__stat i {
    font-size: 1.2rem;
    color: var(--ruby);
}

/* Now Showing */
.page-hero__now-showing {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--silver);
    opacity: 0.7;
}

.page-hero__now-showing i {
    color: var(--gold);
}

@media (max-width: 768px) {
    .page-hero__stats { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .page-hero__stat { padding: 10px 16px; font-size: 0.9rem; }
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.page-hero__subtitle {
    font-size: 1.2rem;
    color: var(--silver);
    margin-bottom: 24px;
}

.page-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
}

.page-hero__count i {
    font-size: 1.2rem;
}

/* Movies Section */
.movies-section {
    padding: 60px 48px 80px;
}

@media (max-width: 1024px) {
    .movies-section { padding: 40px 24px 60px; }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pearl);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--ruby);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--silver);
}

.filter-select {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--pearl);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--ruby);
    outline: none;
}

.filter-select option {
    background: var(--charcoal);
    color: var(--pearl);
}

/* 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); }
}

@media (max-width: 576px) {
    .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Card */
.card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--charcoal), var(--noir));
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.03);
    transition: all 0.5s var(--ease-out-expo);
}

.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);
}

.card__link {
    display: block;
}

.card__poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.card:hover .card__image {
    transform: scale(1);
    filter: brightness(0.85);
}

/* Shimmer Effect */
.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;
}

.card:hover .card__poster::before {
    left: 150%;
}

/* Hover Overlay */
.card__hover {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 40%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(227, 27, 84, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.card:hover .card__hover {
    opacity: 1;
}

.card__play {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ruby) 0%, var(--crimson) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    transition: transform 0.6s var(--ease-out-back);
    box-shadow: 
        0 0 40px rgba(227, 27, 84, 0.5),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

.card:hover .card__play {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.card__play i {
    margin-left: 4px;
}

/* Badges */
.card__badge {
    position: absolute;
    top: 14px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.card__badge--rating {
    left: 14px;
    background: linear-gradient(135deg, #fff000 0%, #ffaa00 100%);
    color: var(--noir);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 240, 0, 0.3);
}

.card__badge--rating i {
    font-size: 0.65rem;
}

.card__badge--views {
    right: 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--pearl);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Card Info */
.card__info {
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

.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;
}

.card:hover .card__title {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

.card__year {
    font-size: 0.8rem;
    color: var(--silver);
    text-align: center;
    margin-top: 4px;
}

/* Skeleton Loader */
.skeleton-card {
    aspect-ratio: 2/3;
    background: linear-gradient(90deg, var(--charcoal) 25%, var(--slate) 50%, var(--charcoal) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Count Badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-right: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--silver);
}

.empty-state__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pearl);
    margin-bottom: 12px;
}

.empty-state__text {
    font-size: 1rem;
    color: var(--silver);
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--silver);
    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: transparent;
    color: var(--white);
    font-weight: 600;
}
