:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--amber-dark);
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #374151;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > button:hover,
.main-nav > a.is-active {
    color: var(--amber-dark);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 170px;
    padding: 10px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.dropdown-panel a:hover {
    color: var(--amber-dark);
    background: #fff7ed;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.nav-search input,
.home-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    color: #374151;
    background: transparent;
    font: inherit;
}

.nav-search input {
    width: 190px;
    padding: 8px 4px 8px 12px;
}

.nav-search button,
.home-search button,
.filter-bar button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.home-search button,
.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.nav-search button {
    padding: 8px 15px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--amber-dark);
    background: white;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 800;
}

.mobile-panel a:hover {
    background: #fff7ed;
    color: var(--amber-dark);
}

.hero-slider {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 740px;
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    color: white;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.75;
}

.hero-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.movie-meta span {
    color: #4b5563;
    background: #fff7ed;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.ghost-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.nav-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.32);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: white;
}

.home-search {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}

.home-search form {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.home-search input {
    flex: 1;
    min-height: 48px;
    padding: 0 18px;
    font-size: 17px;
}

.home-search button {
    padding: 0 28px;
}

.section-block {
    padding: 58px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-copy h2 {
    margin: 6px 0 0;
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.045em;
}

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

.section-heading a {
    color: var(--amber-dark);
    font-weight: 900;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-box {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

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

.movie-badge,
.rank-num {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 12px;
    font-weight: 900;
}

.rank-num {
    left: 12px;
    right: auto;
    min-width: 32px;
    text-align: center;
    background: rgba(17, 24, 39, 0.82);
}

.hover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: all 0.25s ease;
}

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

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

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

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

.featured-card {
    grid-column: span 1;
}

.tinted-block {
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.85), rgba(255, 237, 213, 0.82));
}

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

.category-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 8px;
    height: 116px;
    overflow: hidden;
    border-radius: 20px;
}

.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-thumbs img:first-child {
    grid-row: span 2;
}

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

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

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

.movie-row {
    position: relative;
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 16px;
    min-height: 100px;
    padding: 12px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.movie-row img {
    width: 128px;
    height: 82px;
    object-fit: cover;
    border-radius: 16px;
}

.movie-row h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 950;
}

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

.movie-row .rank-num {
    top: 8px;
    left: 8px;
}

.page-hero {
    padding: 82px 0 48px;
    color: white;
    background: radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.42), transparent 32%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero h1 {
    color: white;
    font-size: clamp(36px, 5vw, 60px);
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 170px 170px auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.filter-bar button {
    padding: 0 20px;
    color: var(--amber-dark);
    background: #fff7ed;
}

.empty-result {
    display: none;
    margin: 18px 0;
    padding: 22px;
    border-radius: 20px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 800;
}

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

.detail-shell {
    padding: 38px 0 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--amber-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.player-panel {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.player-panel video {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    background: #0f172a;
}

.player-button {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
    cursor: pointer;
}

.player-button span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 5px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.38);
    font-size: 34px;
}

.player-button strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

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

.detail-info {
    padding: 30px;
    border-radius: 34px;
    background: white;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-one-line {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.75;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.info-grid div {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
}

.info-grid b,
.info-grid span {
    display: block;
}

.info-grid b {
    color: #9a3412;
    font-size: 12px;
    margin-bottom: 5px;
}

.info-grid span {
    color: #111827;
    font-weight: 900;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-cloud span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

.detail-btn {
    width: 100%;
}

.detail-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 26px 0 20px;
}

.detail-copy article {
    padding: 30px;
    border-radius: 28px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-copy h2 {
    font-size: 28px;
}

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

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

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 38px;
    padding: 46px 0;
}

.footer-brand {
    color: #fbbf24;
}

.site-footer p {
    max-width: 580px;
    color: #d1d5db;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fbbf24;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 980px) {
    .main-nav,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-slider {
        min-height: 620px;
        height: 78vh;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.84));
        align-items: end;
        padding-bottom: 90px;
    }

    .hero-content {
        margin-left: 16px;
        margin-right: 16px;
    }

    .three-col,
    .four-col,
    .category-grid,
    .rank-list,
    .detail-layout,
    .detail-copy,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 640px) {
    .nav-wrap {
        height: 60px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search form,
    .section-heading,
    .filter-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 40px 0;
    }

    .tinted-block {
        padding: 22px;
    }

    .three-col,
    .four-col,
    .category-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-row {
        grid-template-columns: 110px 1fr;
    }

    .movie-row img {
        width: 110px;
        height: 78px;
    }

    .player-panel,
    .player-panel video {
        min-height: 260px;
        border-radius: 24px;
    }

    .detail-info,
    .detail-copy article {
        padding: 22px;
        border-radius: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
