:root {
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-red: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --panel: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f9fafb;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    background: #e5e7eb;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-dark);
    background: #fff7ed;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--brand-dark);
    font-size: 20px;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1f2937 45%, #111827);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -18px;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    opacity: 0.28;
    filter: blur(10px);
    transform: scale(1.04);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.22) 52%, rgba(17, 24, 39, 0.76));
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 600px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    color: #fb923c;
    background: rgba(249, 115, 22, 0.18);
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0 0 24px;
}

.hero p {
    color: #d1d5db;
    font-size: clamp(18px, 2.5vw, 23px);
    line-height: 1.7;
    margin: 0 0 32px;
}

.hero-actions,
.quick-actions,
.detail-meta,
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.ghost-button,
.quick-actions a,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 14px 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    box-shadow: 0 18px 30px rgba(234, 88, 12, 0.28);
}

.ghost-button {
    padding: 13px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.quick-actions a:hover,
.small-button:hover {
    transform: translateY(-2px);
}

.hero-meta {
    margin-top: 24px;
    color: #d1d5db;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
    line-height: 1;
}

.quick-entry {
    margin-top: -46px;
    position: relative;
    z-index: 5;
    padding: 0 24px;
}

.quick-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 28px;
    align-items: center;
}

.quick-shell h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

.quick-shell p {
    margin: 0;
    color: var(--muted);
}

.quick-actions a {
    padding: 11px 18px;
    background: #fff7ed;
    color: var(--brand-dark);
}

.main-shell,
.detail-shell,
.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
}

.search-panel {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    margin-bottom: 34px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f9fafb;
}

.search-box span {
    color: var(--brand-dark);
    font-size: 20px;
}

.search-input {
    width: 100%;
    outline: none;
    background: transparent;
    color: var(--ink);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    padding: 8px 13px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 650;
}

.filter-chip.active,
.filter-chip:hover {
    color: var(--brand-dark);
    background: #ffedd5;
}

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: var(--brand-dark);
    background: #ffedd5;
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.section-more {
    margin-left: auto;
    color: var(--brand-dark);
    font-weight: 800;
}

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

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

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

.movie-card-link,
.movie-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover,
.movie-card > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

.movie-cover img,
.category-card img,
.related-card img,
.poster-panel img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card-link:hover .movie-cover img,
.category-card:hover img,
.related-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-pill {
    top: 12px;
    left: 12px;
}

.rank-badge {
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
}

.play-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-dark);
    opacity: 0;
    transition: all 0.25s ease;
}

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

.movie-body {
    padding: 17px;
}

.movie-meta-row,
.movie-mini-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 9px;
    color: var(--brand-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 800;
}

.movie-body h3 {
    margin: 10px 0 7px;
    color: #111827;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body p {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-wide .movie-card-link {
    border-radius: 24px;
}

.movie-card-wide .movie-cover {
    aspect-ratio: 16 / 8.2;
}

.movie-card-wide .movie-body h3 {
    font-size: 20px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 20px;
    border-radius: 22px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.15);
}

.category-card img {
    position: absolute;
    inset: 0;
    opacity: 0.38;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.16));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-top: 72px;
    font-size: 19px;
    font-weight: 900;
}

.category-card p {
    color: #e5e7eb;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    color: #ffffff;
}

.sub-hero-inner,
.detail-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px;
}

.sub-hero h1,
.detail-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sub-hero p,
.detail-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb,
.breadcrumb-line a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.breadcrumb-line.light {
    color: rgba(255, 255, 255, 0.8);
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

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

.category-overview-card span {
    color: var(--brand-dark);
    font-weight: 900;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.rank-row a {
    display: grid;
    grid-template-columns: 64px 168px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
}

.rank-row img {
    width: 168px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff7ed;
    color: var(--brand-dark);
    font-weight: 900;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-row p {
    margin: 0 0 8px;
    color: #4b5563;
    line-height: 1.55;
}

.rank-meta {
    color: #6b7280;
    font-size: 13px;
}

.rank-play {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    font-weight: 850;
}

.detail-hero {
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--detail-image);
    background-position: center;
    background-size: cover;
    opacity: 0.26;
    filter: blur(10px);
}

.detail-hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.4));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-content,
.poster-panel,
.related-panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.player-card {
    padding: 12px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
}

.player-overlay[hidden] {
    display: none;
}

.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-dark);
    font-size: 34px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.player-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-frame:hover .player-controls,
.video-frame.is-playing .player-controls {
    opacity: 1;
}

.player-controls button {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.detail-content {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.detail-title-row h2,
.detail-content section h2,
.related-panel h2,
.poster-panel h2 {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 900;
}

.small-button {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: var(--brand-dark);
    background: #fff7ed;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px;
}

.tag-list span {
    padding: 7px 10px;
    border-radius: 10px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.detail-content section {
    padding-top: 22px;
    border-top: 1px solid var(--line);
    margin-top: 22px;
}

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

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.poster-panel {
    overflow: hidden;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.poster-panel div {
    padding: 18px;
}

.poster-panel p {
    color: var(--muted);
    margin: 8px 0 0;
}

.related-panel {
    padding: 20px;
}

.related-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.related-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
}

.related-card img {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.empty-state {
    margin: 26px 0;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
}

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

.footer-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

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

.footer-shell p {
    max-width: 560px;
    margin: 12px 0 0;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #d1d5db;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: #9ca3af;
}

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

    .wide-grid,
    .category-overview-grid,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .nav-link {
        justify-content: center;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero-inner {
        padding: 64px 18px 84px;
    }

    .quick-shell,
    .footer-shell,
    .rank-row a,
    .category-overview-card a {
        grid-template-columns: 1fr;
    }

    .quick-actions,
    .footer-links {
        justify-content: flex-start;
    }

    .main-shell,
    .detail-shell,
    .footer-shell,
    .sub-hero-inner,
    .detail-hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-body {
        padding: 13px;
    }

    .movie-body h3 {
        font-size: 15px;
    }

    .movie-body p,
    .movie-mini-meta {
        display: none;
    }

    .category-card {
        min-height: 160px;
    }

    .rank-row img {
        width: 100%;
    }

    .rank-play {
        text-align: center;
    }

    .detail-title-row {
        display: block;
    }

    .small-button {
        margin-top: 14px;
    }

    .related-card {
        grid-template-columns: 110px 1fr;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .wide-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-actions a,
    .quick-actions a {
        width: 100%;
    }
}
