:root {
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-deep: #0f172a;
    --site-muted: #64748b;
    --site-soft: #f1f5f9;
    --site-card: #ffffff;
    --site-line: #e2e8f0;
    --site-radius: 20px;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1e293b;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 34%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.nav-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-logo:hover .brand-icon {
    transform: scale(1.08);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.hero-viewport {
    position: relative;
    min-height: 680px;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.58fr);
    gap: 46px;
    align-items: center;
    padding: 86px max(24px, calc((100vw - 1220px) / 2)) 96px;
    transition: opacity 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.67), rgba(15, 23, 42, 0.28)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), #f8fafc);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.16));
    color: #0891b2;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 18px 0 10px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #fef08a;
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 850;
}

.hero-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.tag-cloud,
.detail-facts,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a,
.tag-row span,
.tag-cloud span,
.detail-facts span,
.filter-pills button {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.search-form button,
.inline-filter button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button,
.inline-filter button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover,
.inline-filter button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
    aspect-ratio: 3 / 4;
}

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

.hero-poster span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 28px;
    backdrop-filter: blur(12px);
}

.hero-poster:hover img {
    transform: scale(1.08);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.45);
    font-size: 32px;
    line-height: 1;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #fef08a;
}

.section-inner,
.section-block {
    max-width: 1220px;
    margin: 0 auto;
    padding: 56px 20px;
}

.search-band {
    background: #ffffff;
    border-bottom: 1px solid var(--site-line);
}

.search-band .section-inner {
    padding-top: 24px;
    padding-bottom: 24px;
}

.search-form,
.inline-filter {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.search-form input,
.inline-filter input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #0f172a;
    font-size: 16px;
    background: transparent;
}

.inline-filter {
    margin-top: 28px;
    border: 1px solid var(--site-line);
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.story-panel h2,
.side-panel h2 {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.section-heading a,
.text-link {
    color: var(--site-blue);
    font-weight: 800;
}

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

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
    border-color: rgba(37, 99, 235, 0.24);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.72));
    opacity: 0.85;
}

.play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-year {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.75);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f97316, #facc15);
}

.movie-card-body {
    padding: 17px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.movie-meta-line span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row span {
    background: #f1f5f9;
    color: #475569;
}

.soft-panel {
    max-width: none;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.soft-panel > * {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px;
    color: #ffffff;
    box-shadow: var(--site-shadow);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.82)), var(--category-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.category-tile:hover::before {
    transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

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

.ranking-grid .movie-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}

.ranking-grid .movie-cover {
    aspect-ratio: auto;
    min-height: 210px;
}

.ranking-grid .movie-card p {
    min-height: auto;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.page-hero {
    padding: 88px 0;
}

.page-hero::before,
.detail-hero::before,
.category-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68)), var(--hero-image, linear-gradient(135deg, #1d4ed8, #0891b2));
    background-size: cover;
    background-position: center;
}

.page-hero .section-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.narrow {
    max-width: 920px;
}

.page-hero h1 {
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--site-muted);
    line-height: 1.75;
}

.filter-pills {
    margin-top: 16px;
}

.filter-pills button {
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
}

.filter-pills button.is-active {
    color: #0f172a;
    background: #fef08a;
}

.detail-hero {
    padding: 42px 20px 72px;
}

.detail-hero-inner {
    max-width: 1220px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.detail-top {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-top: 36px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.detail-copy p {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.detail-facts {
    margin: 20px 0 28px;
}

.player-section {
    background: #0f172a;
    color: #ffffff;
}

.player-section .section-inner {
    padding-top: 42px;
    padding-bottom: 54px;
}

.player-section h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.player-overlay strong {
    font-size: 20px;
}

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

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

.story-panel,
.side-panel {
    border: 1px solid var(--site-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.story-panel {
    padding: 32px;
}

.story-panel h2,
.side-panel h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.story-panel p {
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.tag-cloud span {
    background: #e0f2fe;
    color: #0369a1;
}

.side-panel {
    align-self: start;
    padding: 26px;
}

.side-panel dl {
    margin: 0;
}

.side-panel dt {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.side-panel dd {
    margin: 5px 0 18px;
    color: #0f172a;
    font-weight: 800;
}

.compact-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.compact-card img {
    width: 74px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: #0f172a;
    font-weight: 900;
    line-height: 1.35;
}

.compact-card em {
    margin-top: 6px;
    color: #64748b;
    font-style: normal;
    font-size: 13px;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 56px 20px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-column h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.footer-column a,
.footer-column p {
    display: block;
    margin: 0 0 10px;
    color: #cbd5e1;
    line-height: 1.75;
}

.footer-column a:hover {
    color: #67e8f9;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 20px;
    text-align: center;
    color: #94a3b8;
}

[hidden] {
    display: none !important;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 18px;
        background: #1d4ed8;
    }

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

    .nav-link {
        padding: 14px 8px;
    }

    .hero-viewport {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 58px;
        padding-bottom: 92px;
    }

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
    }

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

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

    .detail-top,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 580px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-viewport {
        min-height: 840px;
    }

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

    .hero-actions,
    .search-form,
    .inline-filter {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .search-form input,
    .inline-filter input {
        min-height: 48px;
    }

    .movie-grid,
    .ranking-grid,
    .category-tiles,
    .category-overview-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-panel,
    .side-panel {
        padding: 22px;
    }
}
