:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
    --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", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #fff7ed 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 251, 235, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

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

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

.brand {
    font-size: 26px;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: #4b5563;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--amber);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.header-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.header-search input {
    flex: 1;
    padding: 8px 8px 8px 14px;
}

.header-search button,
.large-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 16px;
}

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

.primary-button:hover,
.header-search button:hover,
.large-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(217, 119, 6, 0.32);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    font-weight: 800;
}

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

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.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-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 36%, rgba(251, 191, 36, 0.2), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-top: 24px;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-label {
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--amber);
    text-transform: uppercase;
}

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

.hero p {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.hero-actions,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-tags {
    margin-bottom: 28px;
}

.hero-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

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

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

.hero-dot.is-active {
    background: #f59e0b;
}

.search-band,
.content-section {
    padding: 68px 0;
}

.search-band-inner,
.section-heading,
.split-layout,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.search-band h2,
.section-heading h2,
.category-cloud h2,
.detail-heading h1,
.page-hero h1 {
    margin: 6px 0 0;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.search-band h2,
.section-heading h2,
.category-cloud h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.large-search {
    display: flex;
    width: min(520px, 100%);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.large-search input {
    flex: 1;
    padding: 14px 18px;
}

.large-search button {
    padding: 0 26px;
}

.white-section {
    background: rgba(255, 255, 255, 0.74);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading p,
.category-cloud p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-heading.compact {
    display: block;
    margin-bottom: 18px;
}

.section-link {
    color: var(--amber-dark);
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(253, 230, 138, 0.9);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(146, 64, 14, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.88);
    transform: translate(-50%, -40%) scale(0.9);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

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

.movie-info {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3em;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-meta span,
.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 128px 1fr;
}

.movie-card-horizontal .poster-wrap {
    aspect-ratio: auto;
    min-height: 180px;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(253, 230, 138, 0.9);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.ranking-list a:hover {
    color: var(--amber);
}

.rank-index {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.ranking-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    white-space: nowrap;
}

.category-cloud {
    padding: 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #78350f, #ea580c);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-cloud h2,
.category-cloud .eyebrow {
    color: #ffffff;
}

.category-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.category-cloud a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.32), transparent 26%),
        linear-gradient(135deg, #fff7ed, #ffedd5);
    border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
    max-width: 780px;
    font-size: clamp(36px, 5vw, 58px);
}

.compact-hero p {
    max-width: 760px;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    width: min(820px, 100%);
    margin-top: 28px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    background: #ffffff;
}

.category-page-list {
    display: grid;
    gap: 56px;
}

.category-preview {
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

.category-preview:last-child {
    border-bottom: 0;
}

.ranking-layout {
    align-items: flex-start;
    grid-template-columns: 380px 1fr;
}

.watch-section {
    padding: 42px 0 72px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: flex-start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #111827;
    cursor: pointer;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

.big-play {
    position: relative;
    z-index: 3;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 30px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
    padding-left: 4px;
}

.detail-panel,
.side-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid rgba(253, 230, 138, 0.92);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-heading h1 {
    font-size: clamp(32px, 5vw, 50px);
}

.detail-heading p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

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

.detail-meta-grid span {
    padding: 14px;
    border-radius: 16px;
    background: #fffbeb;
    color: var(--muted);
}

.detail-meta-grid strong {
    display: block;
    color: #111827;
    font-size: 13px;
}

.tag-row {
    margin-bottom: 28px;
}

.article-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-block h2,
.side-card h2 {
    margin: 0 0 12px;
    color: #111827;
}

.article-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.85;
}

.related-section {
    padding: 34px 0 0;
}

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

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fffbeb;
    transition: transform 0.2s ease;
}

.mini-card:hover {
    transform: translateX(3px);
}

.mini-card img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: #fde68a;
}

.mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-card em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.accent-card {
    display: grid;
    gap: 10px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.accent-card a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--amber-dark);
    font-weight: 900;
}

.site-footer {
    padding-top: 44px;
    border-top: 1px solid var(--line);
    background: #fffbeb;
}

.footer-inner {
    align-items: flex-start;
}

.footer-brand {
    font-size: 22px;
}

.footer-inner p {
    max-width: 520px;
    margin: 10px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #4b5563;
    font-weight: 800;
}

.footer-copy {
    margin-top: 32px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

    .split-layout,
    .watch-layout,
    .ranking-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .watch-side {
        position: static;
    }
}

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

    .brand {
        font-size: 21px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 86px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.88));
    }

    .hero-actions,
    .search-band-inner,
    .section-heading,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .large-search,
    .filter-panel {
        border-radius: 18px;
    }

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

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

    .movie-card-horizontal {
        display: block;
    }

    .movie-card-horizontal .poster-wrap {
        aspect-ratio: 3 / 4;
        min-height: 0;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-meta span:nth-child(3) {
        display: none;
    }

    .ranking-list a {
        grid-template-columns: 42px 1fr;
    }

    .ranking-list em {
        grid-column: 2;
    }

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

    .detail-panel,
    .side-card {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .horizontal-grid {
        grid-template-columns: 1fr;
    }

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