:root {
    --bg: #fffbeb;
    --paper: #ffffff;
    --paper-soft: #fff7ed;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fde68a;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --blue: #2563eb;
    --cyan: #0891b2;
    --red: #ef4444;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.14);
    --shadow-soft: 0 10px 28px rgba(146, 64, 14, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 52%, #fef3c7 100%);
    min-height: 100vh;
}

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

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

img.image-empty {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(253, 230, 138, 0.8);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand {
    font-size: 28px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
    font-size: 15px;
}

.brand-mark.large {
    width: 72px;
    height: 72px;
    font-size: 26px;
    border-radius: 24px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.desktop-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 24px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #fffbeb;
    color: var(--amber);
}

.mobile-nav.open {
    display: block;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 52px 24px 40px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.26), transparent 34%), linear-gradient(135deg, #fef3c7, #ffedd5 48%, #fef9c3);
}

.hero-stage {
    position: relative;
    max-width: 1280px;
    min-height: 560px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-media {
    position: relative;
    min-height: 560px;
    background: linear-gradient(135deg, #78350f, #111827);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 76px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.92));
    color: #fff;
}

.eyebrow,
.page-hero span,
.section-title > span,
.detail-heading span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.hero-content .eyebrow {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-content p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.movie-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.25);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn,
.filter-bar button,
.section-link {
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.filter-bar button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.btn.primary,
.filter-bar button {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.btn.ghost {
    color: var(--amber-dark);
    background: #fff;
    border: 2px solid rgba(245, 158, 11, 0.45);
}

.btn.subtle {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.light {
    color: var(--amber);
    background: #fff;
}

.btn.full {
    width: 100%;
    margin-top: 14px;
}

.btn.small {
    min-height: 38px;
    padding: 0 18px;
}

.hero-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.22);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 68px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.hero-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.42;
}

.hero-glow.one {
    left: 3%;
    top: 80px;
    background: #f59e0b;
}

.hero-glow.two {
    right: 2%;
    bottom: 90px;
    background: #fb923c;
}

.hero-search {
    max-width: 920px;
    margin: 24px auto 0;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(253, 230, 138, 0.95);
    border-radius: 24px;
    padding: 16px;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.hero-search label {
    color: var(--amber-dark);
    font-weight: 900;
    text-align: center;
}

.hero-search div {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: #fff;
    color: #374151;
    font-size: 15px;
}

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

.hero-search button {
    min-width: 112px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.quick-cats {
    padding: 24px;
}

.quick-cats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(253, 230, 138, 0.78);
    box-shadow: var(--shadow-soft);
}

.quick-cats-inner > span {
    color: var(--amber-dark);
    font-weight: 900;
    white-space: nowrap;
}

.quick-cats-inner div {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.quick-cats-inner a {
    flex: 0 0 auto;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-size: 14px;
    font-weight: 800;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
}

.content-section.soft-panel,
.region-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.content-section.soft-panel > *,
.region-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.soft-panel {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.7), rgba(236, 254, 255, 0.7));
}

.section-title {
    position: relative;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 12px 0 8px;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-title p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    position: absolute;
    right: 0;
    top: 12px;
    min-height: 40px;
    padding: 0 18px;
    color: var(--amber);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.section-link.inline {
    position: static;
    margin-top: 12px;
    box-shadow: none;
    background: #fffbeb;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid rgba(253, 230, 138, 0.72);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(17, 24, 39, 0.76);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.movie-info {
    padding: 16px;
}

.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.movie-badges span:first-child {
    color: var(--amber-dark);
    background: #fef3c7;
}

.movie-badges span:last-child {
    color: #1d4ed8;
    background: #dbeafe;
}

.movie-info h3,
.rank-main h2 {
    margin: 0 0 8px;
    color: var(--ink);
    line-height: 1.35;
    font-size: 17px;
}

.movie-info h3 a,
.rank-main h2 a {
    transition: color 0.2s ease;
}

.movie-info h3 a:hover,
.rank-main h2 a:hover {
    color: var(--amber);
}

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

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

.movie-card-horizontal {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-height: 132px;
}

.movie-card-horizontal .movie-thumb {
    width: 108px;
    flex: 0 0 108px;
    aspect-ratio: auto;
    min-height: 132px;
}

.movie-card-horizontal .movie-info {
    flex: 1;
    min-width: 0;
}

.ranking-grid,
.compact-list {
    display: grid;
    gap: 16px;
}

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

.category-grid,
.region-grid,
.category-overview-grid {
    display: grid;
    gap: 24px;
}

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

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

.category-card,
.category-overview-card,
.region-panel {
    display: block;
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(253, 230, 138, 0.76);
    box-shadow: var(--shadow-soft);
}

.category-card {
    min-height: 174px;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 42%), #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span,
.category-title-link span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fef3c7;
    font-weight: 900;
    font-size: 13px;
}

.category-card strong,
.category-title-link strong {
    display: block;
    margin-top: 14px;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -0.03em;
}

.category-card p,
.category-overview-card p,
.region-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.region-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.region-head h3 {
    margin: 0;
    font-size: 24px;
}

.region-head a {
    color: var(--amber);
    font-weight: 900;
}

.cta-panel {
    max-width: 1280px;
    margin: 34px auto 74px;
    padding: 0 24px;
}

.cta-panel > div {
    border-radius: 34px;
    padding: 54px 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 22px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
}

.cta-panel p {
    margin: 0 auto 26px;
    max-width: 680px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero {
    position: relative;
    min-height: 280px;
    padding: 72px 24px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 28%), linear-gradient(135deg, #fef3c7, #ffedd5);
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 900px;
    margin: 16px 0 14px;
    color: var(--amber-dark);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #78350f;
    line-height: 1.85;
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 0.72fr)) auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(253, 230, 138, 0.76);
    box-shadow: var(--shadow-soft);
}

.filter-bar button {
    min-width: 92px;
}

.empty-state {
    display: none;
    margin-top: 26px;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(253, 230, 138, 0.76);
}

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

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

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

.category-overview-card li {
    border-top: 1px solid rgba(253, 230, 138, 0.7);
}

.category-overview-card li a {
    display: block;
    padding: 10px 0;
    color: #374151;
    font-weight: 700;
}

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

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

.rank-row {
    align-items: center;
    border-radius: 22px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(253, 230, 138, 0.76);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.rank-cover {
    width: 76px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
    flex: 0 0 76px;
}

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

.rank-main {
    flex: 1;
    min-width: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 42px 24px 70px;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(20px);
    transform: scale(1.08);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.96));
}

.detail-layout {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.52));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 34px;
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.38);
}

.play-overlay strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

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

.detail-card {
    border-radius: 26px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.detail-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.detail-content {
    display: block;
}

.detail-main {
    max-width: 960px;
}

.detail-heading h1 {
    margin: 16px 0 12px;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-heading p {
    margin: 0;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags span {
    color: var(--amber-dark);
    background: #fef3c7;
}

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

.detail-meta-grid div {
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(253, 230, 138, 0.76);
    box-shadow: var(--shadow-soft);
}

.detail-meta-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-meta-grid strong {
    color: var(--ink);
    line-height: 1.45;
}

.text-block {
    margin-top: 26px;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(253, 230, 138, 0.76);
    box-shadow: var(--shadow-soft);
}

.text-block h2 {
    margin: 0 0 14px;
    color: var(--amber-dark);
    font-size: 26px;
}

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

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.prev-next a {
    display: block;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(253, 230, 138, 0.76);
    color: var(--amber-dark);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.site-footer {
    color: #fef3c7;
    background: linear-gradient(135deg, #78350f, #9a3412);
    margin-top: 32px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff7ed;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #fde68a;
    line-height: 1.8;
}

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

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a {
    color: #fde68a;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 30px;
    border-top: 1px solid rgba(253, 230, 138, 0.25);
    color: #fcd34d;
    text-align: center;
    font-size: 14px;
}

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

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .brand {
        font-size: 23px;
    }

    .hero-carousel {
        min-height: auto;
        padding: 24px 16px 30px;
    }

    .hero-stage {
        min-height: 720px;
        border-radius: 26px;
    }

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

    .hero-media {
        min-height: 340px;
    }

    .hero-media::after {
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.86));
    }

    .hero-content {
        padding: 34px 26px 42px;
    }

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

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

    .hero-search label {
        text-align: left;
        padding-left: 4px;
    }

    .quick-cats-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .section-link {
        position: static;
        margin-top: 16px;
    }
}

@media (max-width: 620px) {
    .nav-wrap {
        height: 62px;
        padding: 0 16px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .hero-search div,
    .prev-next {
        grid-template-columns: 1fr;
        display: grid;
    }

    .movie-grid.six,
    .movie-grid.four,
    .category-grid,
    .category-overview-grid,
    .detail-meta-grid,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-card-horizontal,
    .rank-row {
        align-items: stretch;
    }

    .movie-card-horizontal .movie-thumb {
        width: 92px;
        flex-basis: 92px;
    }

    .rank-cover {
        display: none;
    }

    .rank-number {
        width: 42px;
        height: 42px;
    }

    .detail-card {
        max-width: none;
    }

    .text-block {
        padding: 22px;
    }
}
