:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --cream: #fff7ed;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --shadow: 0 16px 40px rgba(120, 53, 15, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 360px);
    min-height: 100vh;
}

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

img {
    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: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-900), #9a3412, var(--amber-900));
    box-shadow: 0 12px 30px rgba(69, 26, 3, 0.24);
}

.nav-bar {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.05em;
}

.brand-text small {
    margin-top: 4px;
    color: #fde68a;
    font-size: 12px;
    font-weight: 600;
}

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

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

.nav-links a:hover,
.nav-dropdown > button:hover {
    color: #fde68a;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    min-width: 180px;
    padding: 8px;
    border-radius: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    color: #374151;
    border-radius: 10px;
}

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

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 220px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: #fde68a;
}

.header-search input:focus,
.mobile-search input:focus {
    border-color: #fde68a;
    background: rgba(255, 255, 255, 0.2);
}

.header-search button,
.mobile-search button,
.hero-actions a,
.section-more,
.filter-row button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-600), var(--amber-700));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button {
    padding: 9px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-actions a:hover,
.section-more:hover,
.filter-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 5%, rgba(251, 191, 36, 0.32), transparent 32%), linear-gradient(105deg, var(--amber-900), var(--orange-700), var(--amber-800));
    padding: 82px 0 72px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.18));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.hero-eyebrow,
.page-title span,
.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.hero p {
    margin: 0 auto;
    max-width: 690px;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-actions a {
    padding: 12px 22px;
}

.hero-actions a:last-child {
    color: #451a03;
    background: #ffffff;
}

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

.hero-card {
    position: relative;
    display: block;
    min-height: 410px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero-card-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42) 38%, rgba(0, 0, 0, 0.9));
}

.hero-card-content {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 10px;
    padding: 28px;
}

.hero-card-content em {
    width: max-content;
    padding: 5px 11px;
    border-radius: 999px;
    color: #451a03;
    background: #fbbf24;
    font-style: normal;
    font-weight: 800;
}

.hero-card-content strong {
    font-size: 25px;
    line-height: 1.25;
}

.hero-card-content small {
    color: #e5e7eb;
    line-height: 1.6;
}

.content-section {
    padding-top: 56px;
}

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

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 34px);
}

.section-more {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
}

.card-link,
.movie-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-link:hover,
.movie-card > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(120, 53, 15, 0.18);
}

.card-cover,
.poster-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.card-cover {
    aspect-ratio: 16 / 10;
}

.poster-cover {
    aspect-ratio: 3 / 4;
}

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

.card-link:hover img,
.movie-card > a:hover img {
    transform: scale(1.08);
}

.card-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
    transition: opacity 0.24s ease;
}

.card-link:hover .card-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.24s ease;
}

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

.type-badge,
.year-badge {
    position: absolute;
    top: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(69, 26, 3, 0.82);
    backdrop-filter: blur(10px);
}

.type-badge {
    left: 10px;
}

.year-badge {
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-body strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.card-link:hover .card-body strong {
    color: var(--amber-900);
}

.card-body em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta b {
    padding: 5px 8px;
    border-radius: 8px;
    color: #92400e;
    background: #ffedd5;
}

.card-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

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

.compact-poster {
    display: block;
}

.compact-poster span {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #fed7aa;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

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

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

.compact-poster span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78));
}

.compact-poster b,
.compact-poster strong {
    position: absolute;
    z-index: 1;
}

.compact-poster b {
    top: 10px;
    right: 10px;
    padding: 4px 7px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.58);
}

.compact-poster strong {
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    line-height: 1.35;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 70px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(120, 53, 15, 0.14);
}

.rank-row span {
    color: #9a3412;
    font-size: 22px;
    font-weight: 900;
}

.rank-row img {
    width: 70px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
}

.rank-row strong {
    display: block;
    margin-bottom: 5px;
}

.rank-row small {
    color: var(--muted);
}

.page-shell {
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-700);
}

.breadcrumb strong {
    color: var(--ink);
}

.page-title {
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--amber-900), var(--orange-700));
    box-shadow: var(--shadow);
}

.page-title h1 {
    margin: 12px 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
}

.page-title p {
    max-width: 760px;
    margin: 0;
    color: #ffedd5;
    font-size: 17px;
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    gap: 14px;
    min-height: 240px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(120, 53, 15, 0.18);
}

.category-card h2 {
    margin: 0;
    color: var(--amber-900);
}

.category-card h2 a:hover,
.category-sample a:hover,
.category-entry:hover {
    color: var(--orange-700);
}

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

.category-sample {
    display: grid;
    gap: 7px;
    margin-top: auto;
}

.category-sample a {
    color: #374151;
}

.category-entry {
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    gap: 22px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 150px;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

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

.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

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

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-card a {
    display: grid;
    grid-template-columns: 70px 86px 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.ranking-number {
    color: #9a3412;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.ranking-card img {
    width: 86px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.ranking-card em {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.ranking-card small {
    color: #9a3412;
    font-weight: 700;
}

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

.detail-main,
.detail-side,
.player-card,
.detail-copy,
.related-section {
    min-width: 0;
}

.player-card,
.detail-copy,
.detail-side {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-wrap.is-playing .player-overlay {
    display: none;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    color: #451a03;
    background: rgba(255, 255, 255, 0.95);
    font-size: 30px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    max-width: 720px;
    padding: 0 24px;
    font-size: clamp(22px, 4vw, 38px);
    line-height: 1.2;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.detail-copy {
    margin-top: 22px;
    padding: 28px;
}

.detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.lead-text {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}

.meta-pills span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-weight: 800;
}

.detail-copy h2 {
    margin: 26px 0 10px;
    font-size: 24px;
}

.detail-copy p {
    color: #374151;
    line-height: 1.9;
}

.detail-side {
    overflow: hidden;
    position: sticky;
    top: 96px;
}

.detail-side > img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-info {
    padding: 20px;
}

.side-info h2 {
    margin: 0 0 8px;
}

.side-info p {
    margin: 0 0 16px;
    color: var(--muted);
}

.large-tags span {
    font-size: 13px;
}

.related-section {
    margin-top: 10px;
}

.site-footer {
    margin-top: 60px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-900), #7c2d12, var(--amber-900));
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #ffedd5;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fde68a;
    text-align: center;
}

.is-hidden {
    display: none !important;
}

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

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

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

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

    .detail-side {
        position: static;
        display: grid;
        grid-template-columns: 220px 1fr;
    }

    .detail-side > img {
        height: 100%;
    }
}

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

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

    .mobile-search input {
        width: 100%;
    }

    .hero {
        padding: 58px 0 46px;
    }

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

    .hero-card,
    .hero-card img {
        min-height: 330px;
    }

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

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

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

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

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

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

    .brand-text small {
        display: none;
    }

    .page-title {
        padding: 24px;
    }

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

    .ranking-card a {
        grid-template-columns: 48px 68px 1fr;
        gap: 12px;
    }

    .ranking-card img {
        width: 68px;
    }

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