:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --red-600: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --black: #000000;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 18px 40px rgba(120, 53, 15, 0.14);
    --shadow-lg: 0 28px 70px rgba(120, 53, 15, 0.24);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --container: 1180px;
}

* {
    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(--amber-900);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 45%, var(--amber-50));
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

main {
    min-height: 70vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(100% - 32px, var(--container));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.3);
}

.brand:hover .brand-mark {
    transform: scale(1.06);
    transition: transform 0.25s ease;
}

.brand-text,
.footer-logo span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong,
.footer-logo strong {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--amber-800), var(--orange-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small,
.footer-logo small {
    color: var(--amber-600);
    font-size: 12px;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > button {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--amber-900);
    padding: 8px 0;
}

.desktop-nav > a::after,
.nav-dropdown > button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange-600);
    transition: width 0.25s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover {
    color: var(--orange-600);
}

.desktop-nav > a:hover::after,
.nav-dropdown:hover > button::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 210px;
    padding: 10px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--amber-900);
}

.dropdown-panel a:hover {
    color: var(--orange-600);
    background: var(--amber-50);
}

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

.header-search {
    width: 250px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 2px solid rgba(245, 158, 11, 0.24);
    background: var(--white);
    color: var(--amber-900);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

.search-form button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form button,
.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.search-form button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--amber-900);
    font-size: 28px;
}

.mobile-menu {
    display: none;
    padding: 14px 24px 22px;
    background: var(--white);
    border-top: 1px solid var(--amber-200);
    box-shadow: var(--shadow-sm);
}

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

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
}

.mobile-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
    margin: 8px 0 16px;
    color: var(--amber-700);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--amber-900), var(--orange-700));
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    max-width: var(--container);
}

.hero-content h1 {
    max-width: 720px;
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 30px;
    color: #f3f4f6;
    font-size: 19px;
}

.hero-kicker,
.detail-meta,
.hero-actions,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker span {
    color: var(--amber-100);
    background: rgba(217, 119, 6, 0.74);
    border: 1px solid rgba(252, 211, 77, 0.32);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.34);
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.54);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-500);
}

.search-band {
    padding: 22px 0;
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.88), rgba(255, 237, 213, 0.88));
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.search-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.search-band h2 {
    margin: 2px 0 0;
    font-size: clamp(22px, 3vw, 32px);
}

.hero-search {
    width: min(100%, 560px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--orange-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.page-stack {
    padding: 48px 0;
}

.section-block,
.topic-section,
.category-overview-card,
.detail-card,
.review-card,
.related-panel,
.poster-card,
.category-sidebar,
.ranking-panel,
.quality-panel {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.section-block,
.topic-section {
    margin-bottom: 46px;
    padding: 30px;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.section-heading a,
.text-link {
    color: var(--orange-600);
    font-weight: 900;
}

.section-heading a:hover,
.text-link:hover {
    color: var(--orange-700);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-frame img,
.poster-card img,
.horizontal-poster img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.score-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    border-radius: 999px;
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.score-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.type-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(8px);
}

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: var(--orange-600);
}

.card-meta,
.card-desc {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.scroll-row .movie-card {
    flex: 0 0 240px;
}

.topic-section {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.96), rgba(255, 237, 213, 0.96));
}

.topic-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.large-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
    min-height: 380px;
}

.large-card .poster-frame {
    aspect-ratio: auto;
    height: 100%;
}

.large-card .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

.large-card h3 {
    font-size: 30px;
}

.topic-side,
.quality-list,
.related-list {
    display: grid;
    gap: 14px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.horizontal-poster {
    display: block;
    height: 122px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--amber-100);
}

.horizontal-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.horizontal-content strong,
.horizontal-content small,
.rank-main strong,
.rank-main em {
    overflow: hidden;
    text-overflow: ellipsis;
}

.horizontal-content strong {
    color: var(--amber-900);
    font-size: 15px;
    white-space: nowrap;
}

.horizontal-content em,
.horizontal-content small {
    color: var(--gray-600);
    font-size: 12px;
    font-style: normal;
}

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

.category-tile,
.category-overview-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid rgba(245, 158, 11, 0.14);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-tile span,
.category-overview-head span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong,
.category-overview-head strong {
    color: var(--orange-600);
    font-size: 15px;
}

.category-tile em,
.category-overview-card p {
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    margin-bottom: 46px;
}

.compact-heading h2 {
    font-size: 28px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 50px 64px minmax(0, 1fr) auto 58px;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    font-weight: 950;
}

.rank-thumb {
    width: 64px;
    height: 86px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--amber-100);
}

.rank-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-main strong {
    white-space: nowrap;
    font-size: 16px;
}

.rank-main em {
    display: -webkit-box;
    color: var(--gray-600);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    color: var(--gray-600);
    font-size: 13px;
    white-space: nowrap;
}

.rank-score {
    color: var(--orange-600);
    font-size: 20px;
    font-weight: 950;
    text-align: right;
}

.overlay-card .poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.05));
}

.overlay-card .movie-card-body {
    margin-top: -112px;
    min-height: 112px;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.overlay-card h3 a,
.overlay-card .card-meta,
.overlay-card .card-desc {
    color: var(--white);
}

.page-hero,
.detail-hero {
    padding: 56px 0;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(252, 211, 77, 0.42), transparent 34%), linear-gradient(135deg, var(--amber-900), var(--orange-700));
}

.page-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--amber-100);
    font-size: 18px;
}

.category-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    padding: 44px 0;
}

.category-sidebar {
    align-self: start;
    position: sticky;
    top: 104px;
    padding: 22px;
}

.category-sidebar h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.category-sidebar nav {
    display: grid;
    gap: 8px;
}

.category-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--amber-900);
    font-weight: 800;
}

.category-sidebar a:hover,
.category-sidebar a.is-active {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.category-sidebar span {
    opacity: 0.76;
    font-size: 12px;
}

.category-main {
    min-width: 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.2fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.filter-panel select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--orange-600) 50%), linear-gradient(135deg, var(--orange-600) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.empty-state {
    margin-top: 22px;
    padding: 28px;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-overview-card ul {
    min-height: 150px;
    margin: 8px 0;
    padding-left: 18px;
    color: var(--gray-700);
}

.category-overview-card li {
    margin: 6px 0;
}

.category-overview-card li a:hover {
    color: var(--orange-600);
}

.full-rank-list {
    gap: 8px;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--amber-100);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 30px;
    padding: 38px 0;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #120a04;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.14));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 20px 38px rgba(234, 88, 12, 0.35);
    font-size: 30px;
    text-indent: 4px;
}

.play-title {
    font-size: 18px;
    font-weight: 900;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    color: var(--amber-100);
    font-size: 13px;
    pointer-events: none;
}

.detail-card,
.review-card,
.related-panel,
.poster-card {
    padding: 24px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.detail-title-row h1 {
    margin: 4px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-score {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    font-size: 26px;
    font-weight: 950;
    box-shadow: var(--shadow-sm);
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--amber-100);
    color: var(--amber-800);
    font-weight: 800;
    font-size: 13px;
}

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

.tag-pill {
    background: var(--orange-100);
    color: var(--orange-700);
}

.text-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.text-section h2,
.review-card h2,
.related-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.text-section p,
.review-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
}

.review-card {
    border-left: 6px solid var(--amber-600);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
}

.detail-sidebar {
    display: grid;
    align-self: start;
    gap: 22px;
    position: sticky;
    top: 104px;
}

.poster-card img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: var(--amber-100);
}

.block-button {
    display: block;
    margin-top: 16px;
    text-align: center;
}

.detail-related-grid {
    margin-bottom: 48px;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 18px;
}

.search-page-form input {
    min-height: 56px;
    font-size: 18px;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--gray-600);
    font-weight: 700;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(180deg, var(--amber-900), #451a03);
}

.footer-grid {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 0.7fr) minmax(180px, 0.9fr);
    gap: 36px;
    padding: 44px 0;
}

.footer-logo strong {
    color: var(--amber-100);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 560px;
    color: var(--amber-200);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-100);
    font-size: 18px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: var(--amber-200);
}

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

.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(252, 211, 77, 0.18);
    color: var(--amber-300);
    text-align: center;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

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

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

    .desktop-nav {
        gap: 16px;
    }

    .header-search {
        width: 210px;
    }

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

    .detail-sidebar {
        position: static;
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

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

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

    .header-inner {
        height: 72px;
    }

    .hero {
        height: 560px;
    }

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

    .hero-arrow {
        display: none;
    }

    .search-band-inner,
    .section-heading,
    .split-section,
    .topic-grid,
    .category-layout,
    .footer-grid,
    .large-card,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .search-band-inner,
    .section-heading {
        display: grid;
        align-items: start;
    }

    .category-sidebar {
        position: static;
    }

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

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

    .rank-row {
        grid-template-columns: 42px 56px minmax(0, 1fr) 52px;
    }

    .rank-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner,
    .footer-grid,
    .footer-bottom,
    .hero-content {
        width: min(100% - 24px, var(--container));
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

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

    .brand-text small {
        font-size: 11px;
    }

    .hero {
        height: 520px;
    }

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

    .section-block,
    .topic-section,
    .detail-card,
    .review-card,
    .related-panel,
    .poster-card {
        padding: 20px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid {
        gap: 14px;
    }

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

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

    .card-desc {
        display: none;
    }

    .filter-panel,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 36px 48px minmax(0, 1fr) 46px;
        gap: 9px;
    }

    .rank-thumb {
        width: 48px;
        height: 66px;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .rank-score {
        font-size: 16px;
    }

    .horizontal-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .horizontal-poster {
        height: 98px;
    }

    .detail-title-row {
        display: grid;
    }

    .detail-score {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
}
