html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #111827;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

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

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

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

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #92400e;
    background: #fef3c7;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #f59e0b;
    color: #ffffff;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 48%, #fefce8 100%);
}

.hero-slide {
    display: none;
    min-height: 72vh;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.18;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 24%, rgba(245, 158, 11, 0.26), transparent 34%), rgba(17, 24, 39, 0.06);
}

.hero-content {
    position: relative;
    min-height: 72vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 52px;
    padding: 74px 0 62px;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: #b45309;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.hero-copy h1 span {
    display: block;
    color: #b45309;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    color: #4b5563;
    font-size: 18px;
}

.hero-copy p {
    max-width: 680px;
    margin: 24px 0 0;
}

.hero-actions,
.card-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    padding: 13px 22px;
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 18px 28px rgba(217, 119, 6, 0.24);
}

.btn-secondary {
    padding: 13px 22px;
    background: rgba(255, 255, 255, 0.82);
    color: #92400e;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.card-link:hover {
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.72);
    padding: 18px;
}

.hero-poster {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fff7ed;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-panel-meta {
    padding: 18px 4px 4px;
}

.hero-panel-meta h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.28);
}

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

.section {
    padding: 64px 0;
}

.section.white {
    background: #ffffff;
}

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

.section-header h2,
.detail-section h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-header p {
    margin: 8px 0 0;
    color: #64748b;
}

.text-link {
    color: #b45309;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 62px rgba(15, 23, 42, 0.12);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.year-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.78);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin: 0 0 8px;
    color: #b45309;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3,
.rank-copy h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.card-summary,
.rank-copy p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span,
.rank-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.card-link {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fff7ed;
    color: #b45309;
}

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

.category-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 18px 38px rgba(146, 64, 14, 0.08);
}

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

.category-card p {
    color: #64748b;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #111827;
    color: #fbbf24;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #fff7ed;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.page-hero {
    padding: 72px 0 42px;
    background: linear-gradient(135deg, #fef3c7, #fff7ed 52%, #ffffff);
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
    max-width: 760px;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.search-box {
    flex: 1 1 320px;
    display: grid;
    gap: 8px;
    color: #475569;
    font-weight: 800;
}

.search-box input,
.filter-panel select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    color: #111827;
    outline: none;
}

.search-box input:focus,
.filter-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.detail-main {
    background: #f8fafc;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 26px;
    color: #64748b;
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 34px 0 52px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: #fff7ed;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

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

.detail-copy h1 {
    font-size: clamp(34px, 5.4vw, 66px);
}

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

.player-section,
.detail-section {
    margin-bottom: 34px;
    border-radius: 28px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0.32);
    transition: opacity 0.2s ease;
}

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

.play-button {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 22px 44px rgba(245, 158, 11, 0.32);
}

.play-button span {
    transform: translateX(3px);
    font-size: 30px;
    font-weight: 900;
}

.detail-section p {
    color: #475569;
    font-size: 17px;
}

.detail-section p + h2 {
    margin-top: 24px;
}

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

.site-footer {
    background: #111827;
    color: #e5e7eb;
    padding: 44px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
}

.footer-inner p {
    max-width: 560px;
    color: #cbd5e1;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    color: #94a3b8;
    font-size: 14px;
}

.is-hidden {
    display: none !important;
}

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

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

    .hero-content,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 780px) {
    .header-inner {
        min-height: 64px;
    }

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    }

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

    .site-nav a {
        padding: 12px 14px;
    }

    .hero-slider,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 52px 0 76px;
        gap: 28px;
    }

    .section-header {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 44px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 13px;
    }

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

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

@media (max-width: 520px) {
    .header-inner,
    .footer-inner,
    .container,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

    .site-logo span:last-child {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .player-section,
    .detail-section {
        padding: 16px;
        border-radius: 22px;
    }
}
