* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 45%, #f8fafc 100%);
    color: #0f172a;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a 0%, #172554 52%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

.brand-text {
    font-size: 24px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #facc15, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.84);
    transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: #facc15;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

.top-search input,
.mobile-search input {
    width: 180px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-direction: column;
}

.mobile-nav.is-open {
    display: flex;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 4.8s ease;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 16px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.hero h1,
.page-hero h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-meta span,
.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-actions,
.banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.cinema-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.cinema-banner a {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.cinema-banner a:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
    width: 28px;
    border-radius: 999px;
    background: #facc15;
}

.quick-search-panel {
    margin-top: -52px;
    position: relative;
    z-index: 4;
}

.quick-card,
.filter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.quick-card h2,
.quick-card p {
    margin: 0;
}

.quick-card h2 {
    font-size: 28px;
}

.quick-card p {
    margin-top: 8px;
    color: #64748b;
}

.quick-card form {
    display: flex;
    min-width: min(460px, 100%);
    border-radius: 999px;
    padding: 8px;
    background: #0f172a;
}

.quick-card input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 16px;
    color: #ffffff;
    background: transparent;
}

.quick-card button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.content-section {
    padding: 74px 0 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-head a {
    color: #2563eb;
    font-weight: 800;
}

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

.category-tile,
.category-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, #eef4ff);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after,
.category-panel::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.45), rgba(249, 115, 22, 0.28));
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 62px rgba(15, 23, 42, 0.16);
}

.category-tile strong,
.category-panel-title {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.category-tile span,
.category-panel p {
    display: block;
    margin: 12px 0 18px;
    color: #64748b;
    line-height: 1.65;
}

.category-tile em,
.category-panel div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-style: normal;
}

.category-tile em a,
.category-panel div a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    font-size: 13px;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.11);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.2);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #172554, #0f172a 60%, #f97316);
}

.poster-wrap img,
.detail-poster img,
.wide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-poster img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    transition: opacity 0.28s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    backdrop-filter: blur(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.rank-no {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 12px;
    padding: 6px 9px;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fb923c);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-info strong {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-line {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.movie-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #92400e;
    font-size: 12px;
    background: #fef3c7;
}

.movie-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 2px 20px;
    scroll-snap-type: x mandatory;
}

.movie-rail .movie-card {
    width: 210px;
    flex: 0 0 210px;
    scroll-snap-align: start;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 212px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #172554, #0f172a);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.24);
}

.wide-poster {
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.wide-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 18px;
}

.wide-body strong {
    font-size: 20px;
    line-height: 1.35;
}

.wide-body span {
    color: rgba(255, 255, 255, 0.66);
}

.wide-body em {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-style: normal;
}

.cinema-banner,
.page-hero,
.detail-top {
    margin-top: 74px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(250, 204, 21, 0.22), transparent 30%), linear-gradient(120deg, #0f172a, #172554 52%, #020617);
}

.cinema-banner {
    padding: 78px 0;
}

.banner-inner {
    flex-direction: column;
    align-items: flex-start;
}

.banner-inner span {
    color: #facc15;
    font-weight: 800;
}

.banner-inner h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.banner-inner p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.8;
}

.page-hero {
    margin-top: 0;
    padding: 86px 0 76px;
}

.compact-hero h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.filter-card {
    margin-bottom: 28px;
    align-items: stretch;
}

.filter-card input,
.filter-card select {
    min-height: 48px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
}

.filter-card input {
    flex: 1;
    min-width: 240px;
}

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

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

.detail-top {
    margin-top: 0;
    padding: 58px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #172554, #0f172a 62%, #f97316);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.66);
}

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

.breadcrumb em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

.detail-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.detail-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin: 0 0 24px;
}

.player-section {
    padding: 54px 0 0;
    background: #020617;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 32px 84px rgba(0, 0, 0, 0.38);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(250, 204, 21, 0.18), rgba(0, 0, 0, 0.74) 58%);
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.player-cover span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 32px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.44);
}

.player-cover strong {
    font-size: 24px;
    max-width: min(760px, 86%);
    text-align: center;
}

.detail-copy {
    padding-top: 64px;
}

.detail-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
}

.detail-copy article,
.detail-copy aside {
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.detail-copy h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-copy p {
    margin: 0 0 24px;
    color: #475569;
    line-height: 1.9;
    font-size: 17px;
}

.detail-copy dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.detail-copy dt {
    color: #64748b;
}

.detail-copy dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.related-section {
    padding-bottom: 74px;
}

.site-footer {
    margin-top: 0;
    padding: 54px 0 0;
    color: #ffffff;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    font-size: 22px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 16px;
    color: rgba(255, 255, 255, 0.48);
    text-align: center;
}

.searchable-card.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

    .top-search {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: 580px;
    }

    .hero-content {
        padding: 66px 0 94px;
    }

    .hero-meta span,
    .detail-meta span {
        font-size: 13px;
    }

    .quick-card,
    .filter-card {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-card form {
        min-width: 0;
    }

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

    .category-grid,
    .category-panels,
    .wide-grid,
    .footer-grid,
    .detail-layout,
    .detail-copy-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 120px 1fr;
        min-height: 174px;
    }

    .detail-poster {
        width: min(320px, 100%);
        margin: 0 auto;
    }

    .detail-line {
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .nav-shell {
        min-height: 64px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero,
    .hero-content {
        min-height: 540px;
    }

    .hero h1,
    .page-hero h1,
    .detail-intro h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

    .content-section {
        padding-top: 52px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-line,
    .tag-row {
        display: none;
    }

    .wide-card {
        grid-template-columns: 104px 1fr;
    }

    .player-cover span {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .player-cover strong {
        font-size: 18px;
    }
}
