* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #b45309;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.brand-name {
    font-size: 24px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #4b5563;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #d97706;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #92400e;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fde68a;
    background: #fff;
    padding: 10px 20px 16px;
}

.mobile-panel a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 600;
}

.mobile-panel a:hover {
    background: #fffbeb;
    color: #d97706;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    color: #fff;
    background: linear-gradient(120deg, #f59e0b 0%, #fb923c 45%, #d97706 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35), transparent 32%),
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.16), transparent 25%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.06));
}

.hero-container {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.48s ease, transform 0.48s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff7ed;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #fff7ed;
    font-size: clamp(17px, 2.2vw, 24px);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff7ed;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 14px 26px rgba(154, 52, 18, 0.22);
}

.btn.ghost {
    color: #b45309;
    background: #fff;
    box-shadow: 0 14px 26px rgba(154, 52, 18, 0.12);
}

.btn.full {
    width: 100%;
    margin-top: 20px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 60px rgba(111, 45, 0, 0.34);
    border: 8px solid rgba(255, 255, 255, 0.2);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff;
    color: #d97706;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.hero-controls button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
    width: 30px;
    background: #fff;
}

.section {
    padding: 64px 0;
}

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

.section-head.centered {
    justify-content: center;
    text-align: center;
}

.section-head h2,
.rank-panel h2,
.side-card h2,
.detail-content h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: #6b7280;
}

.more-link {
    color: #d97706;
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px 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(-8px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.movie-card.compact {
    border: 2px solid #fde68a;
    background: linear-gradient(180deg, #fff, #fffbeb);
}

.poster-link {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: #fef3c7;
}

.movie-card.compact .poster-link {
    height: 210px;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.small-card:hover img {
    transform: scale(1.08);
}

.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.year-pill {
    right: 14px;
    top: 14px;
    padding: 6px 11px;
    color: #b45309;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: #d97706;
}

.movie-meta {
    margin: 0 0 10px;
    color: #d97706;
    font-size: 13px;
    font-weight: 800;
}

.movie-desc {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .tag-list span,
.detail-tags span {
    background: #fffbeb;
    color: #b45309;
}

.warm-band {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transition: transform 0.35s ease;
}

.category-tile div {
    position: relative;
    z-index: 2;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-tile p {
    margin: 0 0 12px;
    color: #fde68a;
}

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

.rank-panel,
.side-card {
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.rank-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.small-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.small-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.small-card img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.25s ease;
}

.small-card strong {
    display: block;
    overflow: hidden;
    color: #1f2937;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.small-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

.small-rank {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #d97706;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    color: #fff;
    background: linear-gradient(120deg, #d97706, #f97316);
}

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

.page-hero.compact-hero {
    padding: 56px 0;
}

.page-hero h1 {
    max-width: 900px;
    margin: 16px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fffbeb;
    font-size: 19px;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, 170px);
    gap: 12px;
    margin-top: 28px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.search-box input,
.search-box select {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    color: #374151;
    background: #fff;
    outline: none;
}

.empty-state {
    display: none;
    padding: 38px;
    text-align: center;
    color: #92400e;
    border-radius: 20px;
    background: #fffbeb;
    font-weight: 900;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding: 22px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #fffbeb;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    padding: 40px 0 70px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-card,
.detail-content,
.detail-poster,
.side-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 50%;
    color: #d97706;
    background: #fff;
    font-size: 28px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.play-overlay strong {
    font-size: 18px;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.detail-content h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-content .lead {
    margin: 0 0 18px;
    color: #92400e;
    font-size: 20px;
    font-weight: 800;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #b45309;
    background: #fffbeb;
    font-weight: 900;
}

.detail-content h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 26px;
}

.detail-content p {
    color: #4b5563;
    font-size: 17px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 22px;
}

.site-footer {
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
    border-top: 1px solid #fde68a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
    padding: 46px 0;
}

.footer-grid p,
.footer-grid a {
    color: #6b7280;
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin-top: 8px;
}

.footer-grid a:hover {
    color: #d97706;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: #1f2937;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-bottom {
    padding: 18px 0;
    color: #92400e;
    border-top: 1px solid #fde68a;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .cards-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        margin-bottom: 0;
    }
}

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

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

    .mobile-panel.is-open {
        display: block;
    }

    .hero-section,
    .hero-container {
        min-height: 680px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 42px 0 84px;
    }

    .hero-poster {
        max-width: 270px;
        justify-self: center;
        transform: none;
    }

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

    .search-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

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

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 12px;
    }

    .cards-3,
    .cards-4,
    .cards-6,
    .category-grid,
    .category-grid.overview,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .poster-link,
    .movie-card.compact .poster-link {
        height: 260px;
    }

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

    .detail-content {
        padding: 20px;
    }

    .play-overlay span {
        width: 64px;
        height: 64px;
    }
}
