:root {
    --bg-start: #fff7ed;
    --bg-middle: #fffbeb;
    --bg-end: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --white: #ffffff;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --orange-soft: #ffedd5;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-start), var(--bg-middle), var(--bg-end));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.32);
    font-size: 14px;
}

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

.site-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #92400e;
    background: var(--amber-soft);
}

.header-search {
    display: flex;
    overflow: hidden;
    min-width: 270px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 14px 10px 18px;
    color: var(--text);
}

.header-search button {
    border: 0;
    padding: 10px 17px;
    color: #ffffff;
    background: var(--amber);
    font-weight: 800;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--text);
    background: var(--amber-soft);
    font-weight: 900;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    color: #ffffff;
    background: #0f172a;
}

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

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62) 58%, rgba(0, 0, 0, 0.88));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.94);
    font-size: 13px;
    font-weight: 900;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    padding: 11px 21px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    color: #92400e;
    background: var(--amber-soft);
}

.btn-secondary:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

.btn-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #f59e0b;
}

.page-hero {
    padding: 70px 0 42px;
}

.page-hero-card {
    overflow: hidden;
    border-radius: 32px;
    padding: clamp(30px, 6vw, 60px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(254, 243, 199, 0.9));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

.section {
    padding: 42px 0;
}

.section-card {
    border-radius: 32px;
    padding: clamp(20px, 4vw, 34px);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 760px;
    margin: -10px 0 26px;
    color: var(--muted);
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.movie-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-type {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 8px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.95);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-title {
    display: block;
    overflow: hidden;
    margin-bottom: 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--amber);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f3f4f6;
}

.movie-meta span:last-child {
    color: #92400e;
    background: var(--amber-soft);
}

.movie-card-large .movie-title {
    font-size: 22px;
}

.movie-card-large .movie-line {
    font-size: 15px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #ea580c 55%, #f59e0b);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile h2,
.category-tile h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.category-tile p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -28px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    border-radius: 22px;
    padding: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #111827;
}

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

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

.rank-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-head a {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-number {
    display: inline-grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 13px;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 14px;
    margin-bottom: 28px;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: var(--text);
    background: #ffffff;
}

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

.movie-detail {
    padding: 34px 0 58px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #92400e;
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.62));
}

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

.player-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 999px;
    padding: 14px 24px;
    background: rgba(217, 119, 6, 0.95);
    box-shadow: 0 18px 44px rgba(217, 119, 6, 0.38);
    font-weight: 900;
}

.play-symbol {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 999px;
    color: #92400e;
    background: #ffffff;
}

.detail-card,
.side-card {
    border-radius: 28px;
    padding: clamp(20px, 3vw, 30px);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-card {
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-card h2,
.side-card h2 {
    margin: 26px 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.detail-card h2:first-child,
.side-card h2:first-child {
    margin-top: 0;
}

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

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.detail-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.info-table {
    display: grid;
    gap: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    color: #4b5563;
}

.info-row strong {
    color: #111827;
    text-align: right;
}

.side-card {
    position: sticky;
    top: 96px;
}

.related-section {
    padding: 24px 0 64px;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
    background: rgba(255, 255, 255, 0.58);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0;
    color: #6b7280;
}

.footer-links {
    display: flex;
    gap: 14px;
    font-weight: 800;
    color: #92400e;
}

.empty-state {
    display: none;
    border-radius: 24px;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.empty-state.active {
    display: block;
}

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

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

    .site-nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        border-radius: 22px;
        padding: 10px;
        background: #ffffff;
        box-shadow: var(--shadow-soft);
    }

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

    .site-nav a {
        border-radius: 14px;
    }

    .header-search {
        width: 100%;
        min-width: 0;
        order: 5;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-content {
        padding: 56px 0;
    }

    .hero-control {
        width: 40px;
        height: 40px;
    }

    .hero-control.prev {
        left: 12px;
    }

    .hero-control.next {
        right: 12px;
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .category-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-slider {
        height: 480px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .category-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

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

    .detail-card,
    .side-card {
        border-radius: 22px;
    }

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

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.quick-links a {
    overflow: hidden;
    max-width: 180px;
    border-radius: 999px;
    padding: 7px 11px;
    color: #92400e;
    background: var(--amber-soft);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.quick-links a:hover {
    background: #fde68a;
}
