:root {
    --color-bg: #fff8df;
    --color-bg-soft: #fffdf5;
    --color-card: #ffffff;
    --color-ink: #1f2937;
    --color-muted: #667085;
    --color-border: rgba(31, 41, 55, 0.10);
    --color-primary: #facc15;
    --color-primary-dark: #d97706;
    --color-dark: #111827;
    --shadow-soft: 0 18px 50px rgba(31, 41, 55, 0.12);
    --shadow-card: 0 12px 32px rgba(31, 41, 55, 0.10);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    background: linear-gradient(135deg, #fff7cc 0%, #ffffff 45%, #fff3bf 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #facc15 0%, #fde047 50%, #f59e0b 100%);
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.20);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #111827;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.22);
}

.logo-text {
    font-size: 22px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #111827;
    background: rgba(255, 255, 255, 0.80);
    transform: translateY(-1px);
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 58px;
    background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.70) 0 7%, transparent 8%), radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.36) 0 9%, transparent 10%), linear-gradient(135deg, #facc15 0%, #fde047 46%, #f59e0b 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    animation: pulse-ring 4s ease-in-out infinite;
}

.hero::before {
    width: 136px;
    height: 136px;
    left: 7%;
    bottom: 52px;
}

.hero::after {
    width: 92px;
    height: 92px;
    right: 9%;
    top: 78px;
    animation-delay: 1.5s;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 38px;
}

.hero-copy {
    text-align: left;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-bottom: 18px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.12);
}

.hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    margin-top: 10px;
    color: #3f3f46;
    font-size: clamp(25px, 3.6vw, 42px);
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 670px;
    margin: 24px 0 0;
    color: #3f3f46;
    font-size: 18px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-dark {
    color: #ffffff;
    background: #111827;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.26);
}

.btn-light {
    color: #111827;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(120, 53, 15, 0.14);
}

.hero-carousel {
    position: relative;
    min-height: 530px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
    border-radius: 32px;
    box-shadow: 0 26px 70px rgba(120, 53, 15, 0.30);
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 530px;
    object-fit: cover;
    opacity: 0.72;
}

.hero-slide-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 96px 26px 28px;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.06));
}

.hero-slide-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.18;
}

.hero-slide-content p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    top: 22px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    background: #facc15;
}

.section {
    padding: 58px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #fffdf2, #fff7d1);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    font-weight: 900;
}

.section h2,
.page-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.75;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(31, 41, 55, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.12;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #78350f);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, opacity 0.36s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.06);
    opacity: 0.86;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #111827;
    background: rgba(250, 204, 21, 0.92);
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #111827;
    background: #facc15;
    border-radius: 999px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 9px;
}

.card-meta span {
    padding: 4px 8px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-summary {
    display: -webkit-box;
    min-height: 68px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-summary.compact {
    min-height: 46px;
    -webkit-line-clamp: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    padding: 5px 9px;
    color: #a16207;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

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

.category-card {
    display: block;
    min-height: 168px;
    padding: 22px;
    background: linear-gradient(145deg, #ffffff, #fff7d1);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
}

.category-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
    gap: 26px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
    transition: transform 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #111827;
    background: #facc15;
    border-radius: 999px;
    font-weight: 950;
}

.rank-row img {
    width: 62px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-info {
    display: grid;
    gap: 4px;
}

.rank-info strong {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em,
.rank-heat {
    color: var(--color-muted);
    font-size: 13px;
    font-style: normal;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(130px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 850;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.16);
    border-radius: 14px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.page-hero {
    padding: 52px 0 30px;
}

.page-hero-box {
    padding: 36px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.88));
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    padding: 36px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #92400e;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.detail-cover {
    overflow: hidden;
    background: #111827;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4.12;
    object-fit: cover;
}

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

.detail-title {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span {
    padding: 9px 13px;
    color: #78350f;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-weight: 850;
}

.player-card {
    overflow: hidden;
    background: #0f172a;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, rgba(250, 204, 21, 0.22), transparent 32%), #020617;
    cursor: pointer;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 26px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.70));
    transition: opacity 0.2s ease;
}

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

.player-play {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    place-items: center;
    color: #111827;
    background: #facc15;
    border-radius: 999px;
    font-size: 28px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.player-overlay strong {
    display: block;
    font-size: 22px;
}

.player-overlay span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
}

.content-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.empty-state {
    display: none;
    padding: 40px;
    color: var(--color-muted);
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
}

.no-results .empty-state {
    display: block;
}

.no-results .movie-grid {
    display: none;
}

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #facc15;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
    color: #facc15;
}

.footer-bottom {
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.56);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.16;
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .ranking-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-description,
    .hero-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-slide img {
        min-height: 460px;
    }

    .movie-grid,
    .movie-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel .search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        min-height: 66px;
    }

    .menu-button {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(255, 255, 255, 0.96);
        border-radius: 18px;
        box-shadow: var(--shadow-soft);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        text-align: center;
    }

    .hero {
        padding: 48px 0;
    }

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

    .hero-slide img {
        min-height: 390px;
    }

    .section-head {
        display: block;
    }

    .movie-grid,
    .movie-grid.three,
    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 36px 54px minmax(0, 1fr);
    }

    .rank-heat {
        display: none;
    }

    .page-hero-box,
    .content-card {
        padding: 24px;
    }
}

.category-wide {
    min-height: 238px;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #111827;
    border-radius: 10px;
}
