:root {
    --bg: #fffaf3;
    --panel: #ffffff;
    --soft: #fff4df;
    --line: #f2d5ad;
    --text: #25211d;
    --muted: #6f655a;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --gold: #f59e0b;
    --red: #ef4444;
    --shadow: 0 20px 50px rgba(154, 94, 18, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff8ec 0%, #ffffff 34%, #fff7ec 100%);
}

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

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

.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.88);
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-weight: 700;
    color: #51473d;
}

.main-nav a {
    padding: 10px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--brand);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.hero-search input,
.search-page-form input,
.mobile-panel input {
    width: 230px;
    border: 2px solid #fed7aa;
    background: #ffffff;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.mobile-panel input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.top-search button,
.hero-search button,
.search-page-form button,
.mobile-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff3df;
    color: #9a3412;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid #fed7aa;
    background: #ffffff;
}

.mobile-panel a {
    display: block;
    padding: 12px 6px;
    font-weight: 800;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    padding: 64px 0 76px;
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.28;
}

.hero-glow-left {
    left: -120px;
    top: 10px;
    background: #fb923c;
}

.hero-glow-right {
    right: -120px;
    bottom: -80px;
    background: #f59e0b;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 36px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.sub-hero h1,
.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #ea580c, #d97706, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.sub-hero p,
.detail-info p {
    color: #5d5147;
    font-size: 18px;
    line-height: 1.8;
}

.hero-search {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.hero-search input {
    width: min(100%, 360px);
    padding: 14px 18px;
}

.hero-search button {
    padding: 14px 24px;
}

.hero-carousel {
    position: relative;
    min-height: 430px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #26150c;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-slide.is-active img {
    transform: scale(1.06);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.68));
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 38px;
    color: #ffffff;
}

.hero-kicker,
.poster-badge {
    display: inline-flex;
    padding: 7px 13px;
    color: #ffffff;
    background: #f97316;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.hero-content h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.hero-content p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

.hero-dots {
    position: absolute;
    right: 26px;
    bottom: 26px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.page-section {
    padding: 54px 0;
}

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

.section-head > div {
    min-width: 0;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    border-radius: 16px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.22);
}

.section-head h2 {
    display: inline-block;
    margin: 0 0 0 12px;
    font-size: clamp(25px, 3vw, 34px);
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.category-tile,
.category-panel {
    min-height: 154px;
    padding: 22px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 12px 30px rgba(154, 94, 18, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-panel-title {
    display: block;
    color: #9a3412;
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong,
.category-panel strong {
    display: block;
    margin-top: 10px;
    color: var(--brand);
}

.category-tile em,
.category-panel p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.category-panel ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.category-panel li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px dashed #f6d6b2;
    color: #4a4037;
}

.category-panel li span {
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(154, 94, 18, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card-list {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #3b2416, #9a3412 52%, #f59e0b);
}

.movie-card-list .poster-frame {
    aspect-ratio: 4 / 3;
    height: 100%;
}

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

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

img.is-missing {
    opacity: 0;
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    font-size: 12px;
}

.poster-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #f97316;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.card-body p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.tag-row.large span {
    font-size: 13px;
    padding: 6px 11px;
}

.hot-band {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.58));
}

.sub-hero,
.detail-hero {
    padding: 54px 0;
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 55%, #fef3c7 100%);
    border-bottom: 1px solid #fed7aa;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #7c2d12;
    font-size: 14px;
    font-weight: 800;
}

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

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.stat-row span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffffff;
    border: 1px solid #fed7aa;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(154, 94, 18, 0.08);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group strong {
    color: #7c2d12;
}

.filter-group button {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.filter-group button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-color: transparent;
}

.rank-card {
    overflow: auto;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.rank-table th,
.rank-table td {
    padding: 16px;
    border-bottom: 1px solid #ffedd5;
    text-align: left;
}

.rank-table th {
    color: #7c2d12;
    background: #fff7ed;
    font-size: 14px;
}

.rank-table td small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.rank-table a {
    font-weight: 900;
}

.rank-table a:hover {
    color: var(--brand);
}

.rank-num {
    color: #ef4444;
    font-size: 20px;
    font-weight: 950;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #ffffff;
}

.archive-list a {
    font-weight: 900;
}

.archive-list a:hover {
    color: var(--brand);
}

.archive-list span,
.archive-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.search-page-form {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.search-page-form input {
    width: min(100%, 520px);
    padding: 14px 18px;
}

.search-status {
    margin-bottom: 22px;
    color: #7c2d12;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #3b2416, #f59e0b);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

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

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

.info-grid span {
    padding: 13px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.info-grid b {
    display: block;
    color: #9a3412;
    margin-bottom: 5px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 26px;
    align-items: start;
}

.player-card,
.text-card,
.side-card {
    margin-bottom: 24px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(154, 94, 18, 0.09);
}

.player-card {
    overflow: hidden;
}

.video-box {
    position: relative;
    background: #100a06;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.1), rgba(0, 0, 0, 0.64));
    cursor: pointer;
}

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

.play-button {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #f97316;
    background: #ffffff;
    border-radius: 999px;
    font-size: 30px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(20px, 3vw, 34px);
    text-align: center;
}

.text-card,
.side-card {
    padding: 26px;
}

.text-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #7c2d12;
}

.text-card p {
    margin: 0;
    color: #4b4036;
    line-height: 1.9;
    font-size: 17px;
}

.side-card dl {
    margin: 0;
}

.side-card dt {
    margin-top: 14px;
    color: #9a3412;
    font-weight: 900;
}

.side-card dd {
    margin: 5px 0 0;
    color: #4b4036;
    line-height: 1.6;
}

.site-footer {
    position: relative;
    margin-top: 28px;
    padding: 48px 0;
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    border-top: 1px solid #fed7aa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 10px;
    color: #9a3412;
    font-size: 24px;
    font-weight: 950;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #7c2d12;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: #5d5147;
    font-weight: 700;
}

.site-footer a:hover {
    color: var(--brand);
}

.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 14px;
    font-size: 20px;
    font-weight: 950;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .top-search {
        display: none;
    }

    .hero-container,
    .detail-layout,
    .detail-main {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

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

    .brand-text small {
        display: none;
    }

    .hero-shell {
        padding: 36px 0 46px;
    }

    .hero-carousel {
        min-height: 390px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-search,
    .search-page-form,
    .mobile-panel form {
        flex-direction: column;
    }

    .hero-search input,
    .search-page-form input,
    .mobile-panel input {
        width: 100%;
    }

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

    .category-grid,
    .category-panels,
    .movie-grid,
    .movie-grid.compact,
    .list-grid,
    .archive-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-list {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 340px;
    }

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

    .archive-list li {
        grid-template-columns: 1fr;
    }
}
