* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 36%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(250, 245, 255, 0.94), rgba(253, 242, 248, 0.94));
    border-bottom: 1px solid rgba(244, 114, 182, 0.22);
    box-shadow: 0 12px 32px rgba(190, 24, 93, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #9333ea);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.logo-text strong {
    display: block;
    font-size: 20px;
    color: #1f2937;
    line-height: 1.1;
}

.logo-text small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.mobile-nav-link {
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
    color: #be123c;
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #be123c;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(190, 24, 93, 0.12);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.hero-carousel {
    position: relative;
    height: min(680px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #be123c, #9333ea);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 32%), linear-gradient(120deg, #be123c, #7e22ce);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(4px) saturate(1.15);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(136, 19, 55, 0.54), rgba(147, 51, 234, 0.24));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.56fr);
    align-items: center;
    gap: 48px;
}

.hero-copy {
    color: #ffffff;
    max-width: 720px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: #fff1f2;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
}

.eyebrow {
    color: #be123c;
    background: #fff1f2;
    border-color: rgba(244, 63, 94, 0.2);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
    margin: 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.small-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #db2777);
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.34);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185, #a855f7);
    box-shadow: 0 32px 80px rgba(17, 24, 39, 0.36);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hero-poster::after,
.poster-frame.is-missing::after,
.category-image.is-missing::after,
.rank-poster.is-missing::after,
.detail-poster.is-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #e11d48, #7e22ce);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

.quick-search {
    margin-top: -54px;
    position: relative;
    z-index: 8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(190, 24, 93, 0.16);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #111827;
}

.search-panel p,
.section-heading p,
.page-hero p,
.category-overview-head p,
.site-footer p {
    margin: 0;
    color: #6b7280;
    line-height: 1.75;
}

.search-box {
    display: grid;
    gap: 8px;
}

.search-box span {
    color: #be123c;
    font-size: 13px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.22);
    border-radius: 16px;
    outline: none;
    padding: 0 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    border-color: #e11d48;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.filter-chip {
    min-height: 38px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 999px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #db2777);
}

.section-block {
    padding: 78px 0 0;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1,
.category-overview-head h2 {
    margin: 12px 0 10px;
    color: #111827;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-link,
.small-button {
    color: #be123c;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.2);
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.full-grid {
    padding-top: 26px;
}

.compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(190, 24, 93, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(225, 29, 72, 0.28);
    box-shadow: 0 28px 70px rgba(190, 24, 93, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185, #a855f7);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.05);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    flex: 1;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #be123c;
    font-size: 12px;
    font-weight: 900;
}

.movie-card-meta span,
.movie-card-meta a {
    display: inline-flex;
    align-items: center;
}

.movie-card h3,
.rank-copy h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p,
.rank-copy p {
    margin: 0;
    color: #6b7280;
    line-height: 1.68;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(190, 24, 93, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(190, 24, 93, 0.14);
}

.category-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185, #a855f7);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.category-info strong {
    color: #111827;
    font-size: 18px;
}

.category-info small {
    color: #6b7280;
    line-height: 1.5;
}

.page-main {
    padding: 50px 0 90px;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
    gap: 30px;
    align-items: end;
    padding: 42px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(190, 24, 93, 0.12);
}

.category-hero {
    align-items: center;
}

.page-search {
    align-self: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #be123c;
}

.category-overview-list {
    display: grid;
    gap: 26px;
    margin-top: 34px;
}

.category-overview-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 30px;
    box-shadow: 0 18px 50px rgba(190, 24, 93, 0.08);
}

.rank-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.rank-item {
    display: grid;
    grid-template-columns: 74px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(190, 24, 93, 0.08);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #9333ea);
    border-radius: 18px;
    font-weight: 1000;
    font-size: 18px;
}

.rank-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185, #a855f7);
    border-radius: 18px;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    gap: 8px;
}

.detail-main {
    padding-top: 34px;
}

.detail-top {
    display: grid;
    gap: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    min-height: 480px;
}

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle at 50% 45%, rgba(244, 63, 94, 0.2), rgba(15, 23, 42, 0.72));
    border: 0;
    cursor: pointer;
    text-align: center;
    padding: 24px;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #9333ea);
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(225, 29, 72, 0.36);
    font-size: 34px;
}

.player-overlay strong {
    display: block;
    max-width: 80%;
    font-size: clamp(24px, 4vw, 46px);
    line-height: 1.16;
}

.detail-card {
    display: grid;
    gap: 14px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fb7185, #a855f7);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(190, 24, 93, 0.16);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-meta-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.detail-meta-box span {
    display: grid;
    place-items: center;
    min-height: 44px;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 14px;
    font-weight: 900;
}

.detail-content {
    margin-top: 34px;
}

.detail-copy {
    padding: 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(190, 24, 93, 0.1);
}

.detail-copy h1 {
    margin: 14px 0 14px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-copy h2 {
    margin: 30px 0 12px;
    color: #111827;
    font-size: 26px;
}

.detail-copy p {
    color: #4b5563;
    line-height: 1.95;
    font-size: 17px;
}

.lead-text {
    color: #be123c !important;
    font-weight: 800;
}

.detail-tags {
    margin-top: 18px;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.info-table div {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 18px;
}

.info-table span {
    color: #9f1239;
    font-size: 12px;
    font-weight: 900;
}

.info-table strong {
    color: #111827;
    line-height: 1.5;
}

.site-footer {
    margin-top: 92px;
    color: #e5e7eb;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 42px 0;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.footer-links a {
    color: #fda4af;
    font-weight: 800;
}

.is-hidden-card {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content,
    .detail-layout,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .detail-card {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 86px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .search-panel,
    .section-heading,
    .category-overview-head,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rank-item {
        grid-template-columns: 52px 76px minmax(0, 1fr);
    }

    .rank-item .small-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .detail-card {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 240px;
    }

    .info-table,
    .detail-meta-box {
        grid-template-columns: 1fr 1fr;
    }

    .player-shell,
    .movie-player {
        min-height: 320px;
    }
}

@media (max-width: 520px) {
    .container,
    .header-inner,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-copy,
    .category-overview-card,
    .search-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .rank-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-poster {
        display: none;
    }

    .rank-item .small-button {
        grid-column: 1 / -1;
    }

    .info-table,
    .detail-meta-box {
        grid-template-columns: 1fr;
    }
}
