:root {
    --color-primary: #f97316;
    --color-primary-dark: #ea580c;
    --color-primary-soft: #fff7ed;
    --color-accent-soft: #fdf8f6;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-card: #ffffff;
    --color-page: #f9fafb;
    --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
    --shadow-hover: 0 24px 45px rgba(17, 24, 39, 0.16);
    --radius-card: 18px;
    --radius-soft: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    background: var(--color-page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #fb923c);
    border-radius: 13px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.logo__text {
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: #374151;
}

.main-nav a {
    position: relative;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    content: "";
    background: var(--color-primary);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--color-primary-dark);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--color-ink);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(249, 115, 22, 0.28), transparent 28%),
        radial-gradient(circle at 88% 28%, rgba(251, 146, 60, 0.18), transparent 30%),
        linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
}

.hero::before {
    position: absolute;
    inset: auto -10% -45% 40%;
    width: 680px;
    height: 680px;
    content: "";
    background: rgba(249, 115, 22, 0.10);
    border-radius: 50%;
    filter: blur(5px);
}

.hero__inner {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 610px;
    margin: 0 auto;
    padding: 58px 0 64px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.74fr);
    gap: 44px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
}

.hero__eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
    color: var(--color-primary-dark);
    background: rgba(255, 237, 213, 0.88);
    border: 1px solid rgba(253, 186, 116, 0.7);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    max-width: 820px;
    margin: 20px 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero__intro {
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: #374151;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

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

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.button--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
}

.button--ghost {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.hero__visual {
    position: relative;
}

.hero-cover {
    position: relative;
    overflow: hidden;
    min-height: 462px;
    background: #111827;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.25);
}

.hero-cover img {
    width: 100%;
    height: 462px;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #f97316);
    transition: transform 0.6s ease;
}

.hero-cover:hover img {
    transform: scale(1.04);
}

.hero-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12), transparent);
}

.hero-cover__caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
}

.hero-cover__caption strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.hero-cover__caption span {
    color: #f3f4f6;
    font-size: 14px;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    background: rgba(249, 115, 22, 0.22);
    border: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--color-primary);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: var(--color-ink);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
}

.section {
    padding: 44px 0;
}

.section--tight {
    padding-top: 28px;
}

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

.section-title {
    margin: 10px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 680px;
    margin-top: 8px;
    color: var(--color-muted);
}

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

.movie-card {
    min-width: 0;
}

.movie-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card__link:hover {
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.movie-card__poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #111827, #f97316);
}

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

.movie-card__link:hover .movie-card__poster img {
    transform: scale(1.09);
}

.movie-card__poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent 62%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card__link:hover .movie-card__poster::after {
    opacity: 1;
}

.movie-card__badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card__link:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.movie-card__body h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0;
    color: var(--color-ink);
    font-size: 17px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card__body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.card-meta span {
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 999px;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.96)),
        #ffffff;
    border: 1px solid rgba(253, 186, 116, 0.45);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.category-card__count {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding: 6px 10px;
    color: var(--color-primary-dark);
    background: #ffedd5;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
    gap: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-list a:hover {
    border-color: rgba(249, 115, 22, 0.42);
    transform: translateY(-2px);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #fb923c);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-subtitle {
    color: var(--color-muted);
    font-size: 13px;
}

.rank-score {
    color: var(--color-primary-dark);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(150px, 0.42fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.filter-field {
    display: grid;
    gap: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    color: var(--color-ink);
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-status {
    margin: -8px 0 18px;
    color: var(--color-muted);
    font-size: 14px;
}

.page-hero {
    padding: 46px 0 22px;
}

.page-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--color-muted);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 8px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.74fr) minmax(320px, 0.36fr);
    gap: 28px;
    align-items: start;
    padding: 26px 0 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

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

.player-start {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    color: #ffffff;
    background: var(--color-primary);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.player-start.is-hidden {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 3;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    pointer-events: none;
}

.detail-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.detail-card__cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #111827, #f97316);
}

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

.detail-card__body {
    padding: 20px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.22;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.detail-tags span {
    padding: 5px 10px;
    color: var(--color-primary-dark);
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.content-card {
    padding: 24px;
    margin-bottom: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #374151;
}

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

.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-cloud a {
    padding: 8px 12px;
    color: #374151;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.link-cloud a:hover {
    color: var(--color-primary-dark);
    border-color: rgba(249, 115, 22, 0.48);
}

.index-list {
    column-count: 4;
    column-gap: 28px;
    padding: 0;
    list-style: none;
}

.index-list li {
    break-inside: avoid;
    margin: 0 0 9px;
}

.index-list a {
    color: #374151;
    font-weight: 700;
}

.index-list a:hover {
    color: var(--color-primary-dark);
}

.site-footer {
    margin-top: 56px;
    color: #d1d5db;
    background: #111827;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
    gap: 28px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: #9ca3af;
    border-top: 1px solid rgba(75, 85, 99, 0.75);
    font-size: 13px;
}

.no-results {
    display: none;
    padding: 24px;
    color: var(--color-muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-card);
}

.no-results.is-visible {
    display: block;
}

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

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

    .hero-slide,
    .detail-layout,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .hero-cover {
        min-height: 380px;
    }

    .hero-cover img {
        height: 380px;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 0 6px;
    }

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

    .main-nav a {
        padding: 10px 0;
    }

    .hero__inner {
        min-height: auto;
        padding: 34px 0 40px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero__intro {
        font-size: 16px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section-header {
        display: grid;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .index-list {
        column-count: 1;
    }
}
