:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #06b6d4;
    --blue: #3b82f6;
    --yellow: #facc15;
    --pink: #f9a8d4;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --border: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #f3f4f6;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.28);
}

.brand-text {
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #374151;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 15px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.header-search button,
.mobile-search button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 11px 17px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 750;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.22);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    color: #111827;
    background: #f3f4f6;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-nav nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-nav .nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #06b6d4, #3b82f6);
}

.hero-slides {
    position: relative;
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 52px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
    position: fixed;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(26px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.24;
}

.hero-shade {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.28), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(6, 182, 212, 0.82), rgba(37, 99, 235, 0.82));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 750;
}

.hero-content h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.pill-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.pill-row span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 750;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

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

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

.primary-button {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-dark-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

.ghost-dark-button {
    color: var(--primary-dark);
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
}

.hero-poster {
    overflow: hidden;
    justify-self: end;
    width: min(390px, 100%);
    border: 10px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
    transform: rotate(2deg);
}

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

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.stats-strip,
.soft-section {
    background: #ffffff;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 42px 0;
}

.stat-card,
.movie-card,
.horizontal-card,
.category-tile,
.detail-card,
.side-card,
.text-block,
.filter-panel,
.ranking-row {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    padding: 26px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-value {
    margin-bottom: 6px;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.stat-card p,
.section-heading p,
.category-tile p,
.movie-card-desc,
.horizontal-body p,
.text-block p,
.detail-info .lead,
.page-hero p {
    color: var(--muted);
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

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

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

.section-heading p {
    margin: 0;
    max-width: 760px;
    font-size: 17px;
}

.section-link,
.text-link {
    color: var(--primary-dark);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

.movie-card:hover .movie-cover {
    transform: scale(1.08);
}

.cover-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .cover-gradient {
    opacity: 1;
}

.cover-meta,
.rank-badge,
.play-chip {
    position: absolute;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 850;
}

.cover-meta {
    top: 10px;
    right: 10px;
    color: #ffffff;
    background: var(--primary);
}

.rank-badge {
    top: 10px;
    left: 10px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.95);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card-title {
    min-height: 44px;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
}

.movie-card-title a:hover,
.horizontal-body h3 a:hover,
.ranking-row h3 a:hover,
.sitemap-group a:hover {
    color: var(--primary-dark);
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.movie-card-meta span {
    color: #047857;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 750;
}

.movie-card-desc {
    margin: 0;
    font-size: 13px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.horizontal-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e5e7eb;
}

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

.horizontal-body {
    padding: 16px;
}

.horizontal-body h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.35;
}

.horizontal-body p {
    margin: 0 0 10px;
    font-size: 14px;
}

.pill-row span {
    color: #047857;
    background: #ecfdf5;
}

.mini-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    border-radius: 50%;
    background: var(--primary);
    font-weight: 900;
}

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

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

.category-tile {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 132px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

.category-tile-body {
    padding: 18px;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-tile p {
    min-height: 68px;
    margin: 0 0 12px;
    font-size: 14px;
}

.category-tile span {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 850;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, var(--primary), var(--secondary), var(--blue));
}

.page-hero .container {
    padding: 72px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 0.8fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: var(--radius);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 750;
}

.result-count {
    margin: 8px 0 22px;
    color: var(--muted);
    font-weight: 750;
}

.movie-card.hidden-by-filter {
    display: none;
}

.player-shell {
    padding: 26px 0 42px;
    color: #ffffff;
    background: linear-gradient(180deg, #020617, #111827);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #6ee7b7;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.34), rgba(0, 0, 0, 0.68));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.25);
    font-size: 34px;
}

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

.player-overlay small {
    color: rgba(255, 255, 255, 0.78);
}

.player-status {
    position: absolute;
    right: 16px;
    bottom: 16px;
    max-width: min(520px, calc(100% - 32px));
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-status.show {
    opacity: 1;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    padding: 42px 0 10px;
}

.detail-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 22px;
    border-radius: var(--radius);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

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

.detail-info .lead {
    margin: 0;
    font-size: 18px;
}

.text-block,
.side-card {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: var(--radius);
}

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

.text-block p {
    margin: 0;
    white-space: pre-line;
}

.tag-cloud a {
    color: #374151;
    background: #f3f4f6;
    transition: background 0.2s ease, color 0.2s ease;
}

.tag-cloud a:hover {
    color: #ffffff;
    background: var(--primary);
}

.side-card {
    position: sticky;
    top: 94px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 750;
    word-break: break-word;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
}

.ranking-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
}

.ranking-row-cover img {
    width: 76px;
    height: 106px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-row h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-row p {
    margin: 0 0 8px;
    color: var(--muted);
}

.search-app .poster-grid:empty::before {
    content: "请输入关键词或选择筛选条件。";
    display: block;
    grid-column: 1 / -1;
    padding: 30px;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.noscript-list {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
}

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

.sitemap-group {
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.sitemap-group h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 22px;
}

.sitemap-group h2 span {
    color: var(--primary-dark);
    font-size: 14px;
}

.sitemap-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    max-height: 560px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.sitemap-group li a {
    display: grid;
    gap: 2px;
    color: #111827;
    font-size: 14px;
}

.sitemap-group li span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 0.7fr;
    gap: 38px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
}

.footer-brand p {
    max-width: 390px;
    color: var(--muted);
}

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

.footer-column a,
.footer-link-grid a {
    color: #4b5563;
    transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-link-grid a:hover {
    color: var(--primary-dark);
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 8px;
}

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

.footer-link-grid a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.footer-link-grid span {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 850;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 14px;
}

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

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

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

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

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

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

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

    .hero-carousel,
    .hero-slides {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
        padding: 48px 0 84px;
    }

    .hero-poster {
        justify-self: start;
        width: 210px;
        border-width: 6px;
        border-radius: 24px;
    }

    .stat-grid,
    .detail-layout,
    .footer-inner,
    .sitemap-section {
        grid-template-columns: 1fr;
    }

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

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

    .side-card {
        position: static;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .brand-text {
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

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

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

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

    .poster-grid,
    .featured-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .horizontal-grid,
    .category-card-grid,
    .category-card-grid.wide {
        grid-template-columns: 1fr;
    }

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

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

    .player-card {
        border-radius: 16px;
    }

    .player-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .detail-card,
    .text-block,
    .side-card {
        padding: 18px;
    }

    .ranking-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-index {
        width: 36px;
        height: 36px;
    }

    .ranking-row-cover img {
        width: 58px;
        height: 82px;
    }

    .sitemap-group ul {
        grid-template-columns: 1fr;
    }
}
