* {
    box-sizing: border-box;
}

:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --purple: #7c3aed;
    --blue: #2563eb;
    --green: #16a34a;
    --cyan: #0891b2;
    --slate: #334155;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #fff7ed 100%);
    line-height: 1.6;
}

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: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.06);
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    color: var(--text);
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff7ed;
    border-radius: 14px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--amber);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 12px 16px 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--amber);
    background: #fff7ed;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(146, 64, 14, 0.95), rgba(249, 115, 22, 0.72) 42%, rgba(17, 24, 39, 0.44)), linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent 52%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    color: white;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--amber-dark);
    background: #ffedd5;
}

.hero-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 740px;
    margin: 0 0 26px;
    color: #fff7ed;
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.detail-meta,
.rank-meta,
.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.movie-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.primary-button,
.ghost-button,
.section-more,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 14px 32px rgba(217, 119, 6, 0.24);
}

.primary-button:hover,
.section-more:hover,
.search-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.28);
}

.primary-button.light {
    color: var(--amber-dark);
    background: #ffffff;
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.ghost-button.dark {
    color: var(--amber-dark);
    border-color: rgba(217, 119, 6, 0.24);
    background: rgba(255, 255, 255, 0.85);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: white;
    font-size: 30px;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.stats-section {
    position: relative;
    z-index: 3;
    margin-top: -58px;
}

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

.stat-card {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card span {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 26px;
}

.stat-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.stat-card small {
    color: var(--muted);
    font-weight: 700;
}

.content-section {
    padding: 76px 0;
    background: #ffffff;
}

.alt-bg {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 18px;
    color: var(--amber-dark);
    background: #ffedd5;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(31, 41, 55, 0.16);
}

.movie-cover-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #fed7aa;
}

.movie-card.poster .movie-cover-link,
.catalog-grid .movie-cover-link,
.search-card .movie-cover-link {
    aspect-ratio: 3 / 4;
}

.movie-cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.year-badge,
.play-badge,
.rank-number,
.detail-poster span {
    position: absolute;
    z-index: 2;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.18);
}

.year-badge {
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 13px;
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3,
.rank-info h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.25;
}

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

.movie-card p,
.rank-info p {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.tag-row span,
.movie-meta span,
.rank-meta span,
.detail-meta span {
    color: var(--amber-dark);
    background: #fff7ed;
}

.movie-meta {
    justify-content: space-between;
    margin-top: 14px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px;
    color: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 26px 55px rgba(31, 41, 55, 0.18);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.32), transparent 33%);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 28px;
}

.category-card strong {
    font-size: 22px;
}

.category-card small {
    color: rgba(255, 255, 255, 0.88);
}

.category-card em {
    font-style: normal;
    font-weight: 900;
}

.cat-pink { background: linear-gradient(135deg, #ec4899, #7c3aed); }
.cat-orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.cat-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.cat-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.cat-cyan { background: linear-gradient(135deg, #0891b2, #0ea5e9); }
.cat-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.cat-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.cat-yellow { background: linear-gradient(135deg, #eab308, #f97316); }
.cat-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.cat-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.cat-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.cat-indigo { background: linear-gradient(135deg, #4f46e5, #2563eb); }

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rank-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(31, 41, 55, 0.14);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

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

.rank-number {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.rank-info {
    padding: 18px;
}

.rank-info p {
    min-height: auto;
}

.cta-section {
    position: relative;
    overflow: hidden;
    padding: 84px 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(100deg, var(--amber), var(--orange), var(--red));
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 34%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.18), transparent 30%);
}

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

.cta-inner > span {
    display: inline-grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 24px;
    color: var(--amber);
    background: #ffffff;
    font-size: 30px;
}

.cta-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
}

.cta-inner p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #fff7ed;
    font-size: 18px;
}

.page-main {
    padding-top: 76px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 72px;
    color: #ffffff;
    background: linear-gradient(115deg, var(--amber), var(--orange), var(--red));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.3), transparent 26%), radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.18), transparent 30%);
}

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

.page-hero .section-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
    max-width: 820px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

.category-hero-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 34px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 13px;
    outline: 0;
    color: var(--text);
    background: #ffffff;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.search-panel button {
    height: 46px;
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    cursor: pointer;
}

.search-empty {
    padding: 18px 20px;
    border-radius: 18px;
    color: var(--amber-dark);
    background: #ffedd5;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    padding: 112px 0 80px;
    color: #ffffff;
    background: #111827;
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.45;
}

.detail-mask {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(17, 24, 39, 0.76)), linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 52%);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: #fed7aa;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-poster span {
    top: 16px;
    right: 16px;
    border-radius: 999px;
    padding: 6px 14px;
}

.detail-info h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #fff7ed;
    font-size: 20px;
}

.detail-meta span,
.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.player-card,
.detail-side,
.article-body {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    padding: 24px;
}

.player-card h2,
.detail-side h2,
.article-body h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: var(--amber-dark);
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
    font-size: 18px;
}

.player-overlay.hidden {
    display: none;
}

.detail-side {
    padding: 24px;
}

.detail-side dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-side dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    font-weight: 700;
}

.article-body {
    padding: 34px;
}

.article-body h2 + p {
    margin-top: 0;
}

.article-body p {
    color: #374151;
    font-size: 17px;
}

.site-footer {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 48px 0;
}

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

.site-footer p {
    color: var(--muted);
    margin: 10px 0 0;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-weight: 700;
}

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

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 16px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .header-search {
        display: none;
    }

    .featured-grid,
    .poster-grid,
    .catalog-grid,
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 320px;
    }

    .search-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
    }

    .desktop-nav {
        display: none;
    }

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

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

    .brand-text small {
        display: none;
    }

    .hero-carousel {
        min-height: 640px;
    }

    .hero-content {
        padding-top: 70px;
    }

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

    .stats-section {
        margin-top: 0;
        padding: 20px 0;
        background: #ffffff;
    }

    .stats-grid,
    .featured-grid,
    .poster-grid,
    .catalog-grid,
    .category-grid,
    .ranking-grid,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 118px 1fr;
    }

    .rank-cover {
        min-height: 132px;
    }

    .content-section {
        padding: 52px 0;
    }

    .page-main {
        padding-top: 68px;
    }

    .page-hero {
        padding: 62px 0 52px;
    }

    .detail-hero {
        padding: 92px 0 54px;
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .player-card,
    .detail-side,
    .article-body {
        padding: 18px;
        border-radius: 22px;
    }

    .footer-grid {
        padding: 34px 0;
    }
}
