* {
    box-sizing: border-box;
}

:root {
    --page-bg: #fffaf0;
    --page-bg-soft: #f5fff4;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --brand: #facc15;
    --brand-strong: #eab308;
    --brand-dark: #854d0e;
    --green: #86efac;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(31, 41, 55, 0.12);
    --shadow-card: 0 10px 30px rgba(31, 41, 55, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --header-height: 76px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 48%, #f0fdf4 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.96), rgba(253, 224, 71, 0.94), rgba(134, 239, 172, 0.92));
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(133, 77, 14, 0.16);
}

.site-header-inner {
    max-width: 1280px;
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand,
.footer-brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.site-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    background: #111827;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.site-brand-name {
    font-size: 22px;
    color: #1f2937;
    white-space: nowrap;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ca8a04;
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(280px, 24vw);
}

.header-search input {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.78);
    outline: 0;
    border-radius: 999px;
    padding: 11px 44px 11px 18px;
    background: rgba(255, 255, 255, 0.76);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.28);
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #854d0e;
    background: #facc15;
    font-size: 20px;
    line-height: 1;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #374151;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.92);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    color: #374151;
    background: rgba(250, 204, 21, 0.12);
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.52) 44%, rgba(0, 0, 0, 0.20) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    padding: 60px 28px 86px;
    color: #ffffff;
}

.hero-kicker,
.sub-hero-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 18px;
    color: #1f2937;
    background: #facc15;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(250, 204, 21, 0.32);
}

.hero-content h1 {
    max-width: 900px;
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 820px;
    margin: 0 0 28px;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #1f2937;
    background: #facc15;
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.32);
}

.primary-button:hover {
    background: #fde047;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(250, 204, 21, 0.38);
}

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 42px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.36);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow-prev {
    left: 24px;
}

.hero-arrow-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 36px;
    background: #facc15;
}

.page-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0;
}

.content-section {
    margin-bottom: 72px;
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ca8a04;
    font-weight: 900;
    white-space: nowrap;
}

.section-more:hover {
    color: #854d0e;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
    min-height: 158px;
    padding: 24px;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 52px rgba(31, 41, 55, 0.15);
}

.category-tile:hover::before {
    opacity: 0.12;
}

.category-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 26px;
    background: linear-gradient(135deg, #f59e0b, #16a34a);
}

.category-tile strong,
.category-tile small {
    position: relative;
    display: block;
}

.category-tile strong {
    font-size: 19px;
    margin-bottom: 8px;
}

.category-tile small {
    color: var(--text-muted);
    line-height: 1.6;
}

.tone-warm::before,
.tone-warm .category-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.tone-yellow::before,
.tone-yellow .category-icon {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.tone-green::before,
.tone-green .category-icon {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.tone-amber::before,
.tone-amber .category-icon {
    background: linear-gradient(135deg, #d97706, #facc15);
}

.tone-rose::before,
.tone-rose .category-icon {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tone-sun::before,
.tone-sun .category-icon {
    background: linear-gradient(135deg, #eab308, #f97316);
}

.tone-orange::before,
.tone-orange .category-icon {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.tone-purple::before,
.tone-purple .category-icon {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
}

.tone-blue::before,
.tone-blue .category-icon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tone-teal::before,
.tone-teal .category-icon {
    background: linear-gradient(135deg, #14b8a6, #22c55e);
}

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

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

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

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 320px);
    gap: 24px;
    overflow-x: auto;
    padding: 6px 4px 24px;
    scroll-snap-type: x mandatory;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    scroll-snap-align: start;
}

.movie-poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #bbf7d0);
}

.movie-card-large .movie-poster-link {
    aspect-ratio: 16 / 9;
}

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

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

.movie-play-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: #facc15;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.movie-year-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

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

.movie-card-title {
    display: block;
    min-height: 1.4em;
    margin-bottom: 9px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card-title:hover {
    color: #ca8a04;
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.movie-card-tags span,
.movie-card-tags a,
.detail-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #6b4f00;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-number {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 18px;
    font-weight: 900;
}

.rank-top .rank-number {
    color: #ffffff;
    background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.rank-link img {
    width: 86px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.cta-panel {
    margin-bottom: 64px;
    padding: 48px 24px;
    border-radius: 32px;
    text-align: center;
    background: linear-gradient(90deg, #facc15, #fde047, #86efac);
    box-shadow: var(--shadow-soft);
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 28px;
    color: #854d0e;
    background: rgba(255, 255, 255, 0.72);
    font-size: 34px;
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: 34px;
}

.cta-panel p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: #4b5563;
    line-height: 1.8;
}

.cta-button {
    background: #ffffff;
    color: #ca8a04;
}

.sub-hero,
.category-hero {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #374151);
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.46;
    background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.55), transparent 26%), radial-gradient(circle at 82% 32%, rgba(134, 239, 172, 0.44), transparent 32%);
}

.sub-hero-inner,
.category-hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0;
}

.sub-hero h1,
.category-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.sub-hero p,
.category-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

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

.category-overview-card {
    min-height: 260px;
    color: #ffffff;
}

.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-overview-card:hover img {
    transform: scale(1.06);
}

.category-overview-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.category-overview-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px;
}

.category-overview-content strong,
.category-overview-content small {
    display: block;
}

.category-overview-content strong {
    margin-bottom: 8px;
    font-size: 22px;
}

.category-overview-content small {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.category-hero {
    min-height: 440px;
}

.category-hero-bg {
    position: absolute;
    inset: 0;
}

.category-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12);
}

.category-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
}

.category-hero-content .category-icon {
    margin-bottom: 18px;
}

.category-hero-content .primary-button {
    margin-top: 26px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 220px;
    gap: 16px;
    margin: 0 0 34px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field label {
    color: #4b5563;
    font-size: 14px;
    font-weight: 900;
}

.filter-field input,
.filter-field select,
.search-page-form input {
    width: 100%;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    padding: 13px 15px;
    outline: 0;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus,
.search-page-form input:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.empty-message {
    padding: 28px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

.ranking-main {
    margin-bottom: 0;
}

.rank-list-large .rank-link img {
    width: 116px;
    height: 76px;
}

.ranking-aside,
.sidebar-panel,
.poster-panel {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.ranking-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 22px;
}

.ranking-aside h2,
.sidebar-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.compact-grid {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.compact-card img {
    width: 76px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.compact-card:hover span {
    color: #ca8a04;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 720px;
    margin-top: 28px;
}

.search-page-form button {
    border: 0;
    border-radius: 16px;
    padding: 0 26px;
    color: #1f2937;
    background: #facc15;
    font-weight: 900;
}

.detail-page {
    padding-top: 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #ca8a04;
    font-weight: 800;
}

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

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

.player-card,
.detail-info-card,
.detail-text-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
}

.main-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    color: #1f2937;
    background: rgba(250, 204, 21, 0.94);
    font-weight: 900;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #facc15;
    background: #111827;
}

.video-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.94);
}

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

.detail-info-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta-grid div {
    padding: 15px;
    border-radius: 16px;
    background: #fffbeb;
}

.detail-meta-grid dt {
    margin-bottom: 5px;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.detail-meta-grid dd {
    margin: 0;
    color: #1f2937;
    font-weight: 800;
}

.detail-text-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

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

.detail-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.poster-panel {
    padding: 18px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 16px;
}

.full-button {
    width: 100%;
}

.sidebar-panel {
    padding: 20px;
}

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

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.site-footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 40px;
}

.footer-brand {
    color: #facc15;
    font-size: 24px;
}

.footer-about p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-content: start;
}

.footer-links h2 {
    width: 100%;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: #facc15;
}

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

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

    .ranking-aside,
    .detail-sidebar {
        position: static;
    }

    .desktop-nav {
        display: none;
    }

    .header-search {
        margin-left: auto;
        width: min(360px, 40vw);
    }

    .mobile-menu-button {
        display: inline-flex;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 68px;
        padding: 0 16px;
        gap: 12px;
    }

    .site-brand-name {
        font-size: 18px;
    }

    .site-brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .header-search {
        display: none;
    }

    .hero-carousel {
        min-height: 520px;
        height: 72vh;
    }

    .hero-content {
        padding: 44px 20px 78px;
    }

    .hero-arrow {
        width: 44px;
        height: 44px;
        font-size: 34px;
    }

    .hero-arrow-prev {
        left: 12px;
    }

    .hero-arrow-next {
        right: 12px;
    }

    .page-container,
    .sub-hero-inner,
    .category-hero-content,
    .site-footer-inner {
        width: min(100% - 28px, 1280px);
    }

    .page-container {
        padding: 38px 0;
    }

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

    .category-grid,
    .category-overview-grid,
    .four-columns,
    .feature-grid,
    .detail-meta-grid,
    .filter-panel,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        grid-auto-columns: minmax(260px, 86vw);
    }

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

    .rank-link img {
        width: 72px;
        height: 52px;
    }

    .rank-list {
        padding: 16px;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .detail-info-card,
    .detail-text-card {
        padding: 20px;
    }

    .player-overlay {
        padding: 13px 18px;
    }
}
