* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 18px 45px rgba(120, 53, 15, 0.12);
    --shadow-strong: 0 24px 70px rgba(120, 53, 15, 0.25);
    --radius-xl: 24px;
}

body {
    margin: 0;
    color: var(--gray-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fefce8 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(120, 53, 15, 0.08);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 24px;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 12px;
}

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

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--amber-100);
    color: var(--amber-600);
    font-size: 24px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2), transparent 25%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(680px, calc(100% - 48px));
    color: #ffffff;
    transform: translateY(-50%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.3);
}

.eyebrow.warm {
    color: #9a3412;
    background: #ffedd5;
    box-shadow: none;
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2.3vw, 23px);
    line-height: 1.7;
}

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

.hero-meta {
    margin: 28px 0;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.35);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ghost-btn.light {
    color: var(--amber-700, #b45309);
    border-color: rgba(245, 158, 11, 0.28);
    background: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.section-block,
.section-panel,
.sub-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-panel {
    margin-top: 48px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 460px);
    gap: 28px;
    align-items: center;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.home-search h2,
.sub-hero h1 {
    margin: 16px 0 10px;
    color: var(--gray-900);
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
}

.home-search p,
.sub-hero p,
.section-title p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.8;
}

.search-box,
.inline-filter {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.search-box input,
.inline-filter input,
.inline-filter select {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--gray-800);
    background: transparent;
    font-size: 15px;
}

.search-box button {
    flex: 0 0 auto;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 900;
    cursor: pointer;
}

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

.soft-panel {
    margin-top: 64px;
    padding: 38px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 237, 213, 0.86));
    box-shadow: var(--shadow-soft);
}

.section-title {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.section-title h2 {
    margin: 0 0 6px;
    color: var(--gray-900);
    font-size: clamp(26px, 4vw, 38px);
}

.section-title > a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--amber-600);
    background: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.section-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    font-size: 24px;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

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

.poster-grid.six-col,
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.card-cover img,
.wide-card img,
.category-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.duration-badge,
.rank-badge,
.play-mini {
    position: absolute;
    z-index: 2;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.play-mini {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--amber-600);
}

.card-meta {
    margin-bottom: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: #d1d5db;
}

.card-desc {
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    padding: 5px 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.scroll-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scroll-snap-type: x mandatory;
}

.wide-card {
    flex: 0 0 330px;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
}

.wide-card img {
    aspect-ratio: 16 / 9;
}

.wide-card:hover img {
    transform: scale(1.06);
}

.wide-card div {
    padding: 16px;
}

.wide-card strong,
.wide-card span {
    display: block;
}

.wide-card strong {
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 18px;
}

.wide-card span {
    color: var(--gray-500);
    line-height: 1.6;
}

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

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

.category-tile {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    aspect-ratio: 16 / 8;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.category-info {
    padding: 18px;
}

.category-info h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 22px;
}

.category-info p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.sub-hero {
    margin-top: 42px;
    padding: 54px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(135deg, #ffffff, #ffedd5);
    box-shadow: var(--shadow-soft);
}

.sub-hero .inline-filter {
    margin-top: 28px;
    width: min(720px, 100%);
}

.inline-filter select {
    flex: 0 0 180px;
    border-left: 1px solid var(--gray-200);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    filter: blur(4px);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.74));
}

.detail-layout {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.34));
    cursor: pointer;
}

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

.big-play {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-size: 38px;
    box-shadow: 0 24px 55px rgba(245, 158, 11, 0.4);
}

.detail-info {
    color: #ffffff;
}

.breadcrumb {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5.5vw, 60px);
    line-height: 1.08;
}

.lead-text {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    margin: 22px 0 28px;
}

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

.copy-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.copy-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 26px;
}

.copy-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 72px;
    color: #ffffff;
    background: linear-gradient(135deg, #78350f, #9a3412, #92400e);
}

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

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
}

.footer-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

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

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1080px) {
    .poster-grid,
    .poster-grid.six-col,
    .ranking-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 70px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text small {
        display: none;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-strong);
    }

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

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

    .hero-content {
        top: auto;
        bottom: 86px;
        transform: none;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-arrow {
        display: none;
    }

    .section-panel {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .search-box,
    .inline-filter {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .inline-filter select {
        flex-basis: auto;
        border-left: 0;
        border-top: 1px solid var(--gray-200);
    }

    .section-title {
        grid-template-columns: auto 1fr;
    }

    .section-title > a {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .poster-grid,
    .poster-grid.six-col,
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .soft-panel,
    .sub-hero {
        padding: 24px;
        border-radius: 24px;
    }

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

    .player-shell {
        border-radius: 20px;
    }

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

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

@media (max-width: 460px) {
    .poster-grid,
    .poster-grid.six-col,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        flex-basis: 86vw;
    }
}
