:root {
    --color-primary: #0f766e;
    --color-primary-2: #0891b2;
    --color-accent: #2563eb;
    --color-dark: #0f172a;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.13);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-dark);
    background: var(--color-bg);
    line-height: 1.65;
}

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

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

p,
h1,
h2,
h3,
dl,
dd {
    margin: 0;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-2));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    font-size: 16px;
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-text small {
    color: var(--color-muted);
    font-size: 12px;
}

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

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

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--color-accent);
    background: #eff6ff;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--color-border);
}

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

.mobile-link {
    display: block;
    padding: 11px 14px;
}

.quick-category-bar {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(248, 250, 252, 0.88);
}

.quick-category-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    color: #475569;
    font-size: 14px;
}

.quick-category-inner span {
    color: #0f172a;
    font-weight: 800;
}

.quick-category-inner a:hover {
    color: var(--color-accent);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 52%, #22d3ee 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.36), transparent 28%), radial-gradient(circle at 80% 25%, rgba(34, 211, 238, 0.55), transparent 34%), linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.12) 75%, transparent 75%, transparent);
    background-size: auto, auto, 64px 64px;
}

.hero-shell {
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 88px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    align-items: center;
    gap: 56px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.5s ease both;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0e7490;
    background: #ecfeff;
    border: 1px solid #cffafe;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-section .eyebrow,
.detail-hero .eyebrow,
.page-hero .eyebrow {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.08em;
}

.hero-one-line,
.detail-one-line {
    margin-top: 20px;
    max-width: 740px;
    color: #ecfeff;
    font-size: clamp(18px, 2vw, 23px);
}

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

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-size: 14px;
}

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

.primary-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: var(--color-accent);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.primary-button:hover,
.outline-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.primary-button.full {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-2));
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.78);
}

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

.outline-button {
    color: var(--color-accent);
    background: #ffffff;
    border: 1px solid #bfdbfe;
}

.hero-poster,
.detail-poster,
.movie-poster,
.rank-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.hero-poster {
    min-height: 560px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.65));
    pointer-events: none;
}

.hero-poster img,
.detail-poster img,
.movie-poster img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    color: rgba(15, 23, 42, 0.65);
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    z-index: 0;
}

.hero-poster img,
.detail-poster img,
.movie-poster img,
.rank-thumb img {
    position: relative;
    z-index: 1;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 38px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: #f1f5f9;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading.center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.section-heading h2,
.filter-panel h1,
.search-panel h1 {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.05em;
}

.section-heading p,
.filter-panel p,
.search-panel p {
    margin-top: 8px;
    color: var(--color-muted);
}

.stats-section {
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

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

.stat-card {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-card strong {
    display: block;
    color: var(--color-primary);
    font-size: 36px;
    line-height: 1;
}

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

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

.category-card,
.category-overview-block {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-2));
}

.category-icon.large {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    flex: 0 0 auto;
}

.icon {
    width: 28px;
    height: 28px;
}

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

.category-card small {
    color: var(--color-accent);
    font-weight: 900;
}

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

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

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

.category-movie-grid {
    margin-top: 24px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
    display: block;
    aspect-ratio: 4 / 3;
}

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line span + span::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

.movie-card h3 {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.side-related-item:hover strong {
    color: var(--color-accent);
}

.movie-card p {
    min-height: 54px;
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 800;
}

.tag-row.large span {
    font-size: 14px;
}

.movie-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.text-link {
    color: var(--color-accent);
    font-weight: 900;
}

.text-link.muted {
    color: #64748b;
}

.two-column-layout,
.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.rank-card,
.content-card,
.filter-panel,
.search-panel {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.rank-card {
    position: sticky;
    top: 112px;
    padding: 24px;
}

.mini-rank-list,
.rank-list,
.side-related-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 90px minmax(0, 1fr) 86px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.mini-rank-list .rank-item {
    grid-template-columns: 44px minmax(0, 1fr) 66px;
}

.mini-rank-list .rank-thumb,
.mini-rank-list .rank-content p,
.mini-rank-list .movie-meta-line {
    display: none;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-2));
    font-weight: 900;
}

.rank-thumb {
    width: 90px;
    height: 68px;
    border-radius: 14px;
}

.rank-content h3 {
    font-size: 18px;
    line-height: 1.3;
}

.rank-content p {
    margin: 5px 0;
    color: var(--color-muted);
    font-size: 14px;
}

.rank-score {
    text-align: center;
}

.rank-score strong {
    display: block;
    color: #ef4444;
    font-size: 28px;
    line-height: 1;
}

.rank-score span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2 58%, #22d3ee);
}

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

.page-hero h1,
.detail-copy h1 {
    margin-top: 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 780px;
    margin-top: 14px;
    color: #ecfeff;
    font-size: 18px;
}

.category-hero {
    padding: 62px 0;
}

.category-hero-inner {
    display: flex;
    align-items: center;
    gap: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

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

.filter-panel,
.search-panel {
    padding: 24px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    margin-top: 18px;
}

.filter-controls.extended {
    grid-template-columns: minmax(260px, 1fr) 180px 160px 160px;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #ffffff;
    padding: 10px 14px;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.result-count {
    margin-top: 14px;
    color: var(--color-muted);
    font-weight: 800;
}

.empty-state {
    margin-top: 24px;
    padding: 30px;
    border-radius: 18px;
    color: var(--color-muted);
    background: #ffffff;
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.overview-stack {
    display: grid;
    gap: 24px;
}

.category-overview-block {
    padding: 24px;
}

.category-overview-header {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.category-overview-header h2 {
    font-size: 30px;
    line-height: 1.1;
}

.category-overview-header p {
    margin-top: 8px;
    color: var(--color-muted);
}

.category-overview-header > strong {
    color: var(--color-accent);
    font-size: 24px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 74px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    filter: blur(18px);
    transform: scale(1.08);
}

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

.detail-hero-inner {
    position: relative;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.detail-poster {
    aspect-ratio: 4 / 5.5;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
    max-width: 860px;
}

.content-card {
    padding: 26px;
}

.content-card h2 {
    margin-bottom: 18px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.main-detail-card {
    overflow: hidden;
}

.video-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.55));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
    font-size: 34px;
    box-shadow: var(--shadow-md);
}

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

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    padding: 7px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.video-player.is-ready .player-status {
    display: none;
}

.detail-section {
    margin-top: 28px;
}

.detail-section p {
    color: #334155;
    font-size: 17px;
}

.detail-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 20px;
}

.info-card dl {
    display: grid;
    gap: 14px;
}

.info-card dl div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.info-card dt {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.info-card dd {
    color: #0f172a;
    font-weight: 800;
}

.info-card a {
    color: var(--color-accent);
}

.side-related-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-related-item img {
    width: 88px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
    background: #e0f2fe;
}

.side-related-item strong {
    display: block;
    line-height: 1.3;
}

.side-related-item small {
    color: var(--color-muted);
    font-weight: 700;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.pagination button {
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-weight: 800;
}

.pagination button.is-active,
.pagination button:hover {
    color: #ffffff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 28px;
    padding: 54px 0;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
    color: #94a3b8;
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-note {
    margin-top: 12px;
}

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

.color-red .category-icon,
.color-red.category-card .category-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.color-blue .category-icon,
.color-blue.category-card .category-icon {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.color-cyan .category-icon,
.color-cyan.category-card .category-icon {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.color-amber .category-icon,
.color-amber.category-card .category-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.color-pink .category-icon,
.color-pink.category-card .category-icon {
    background: linear-gradient(135deg, #ec4899, #fb7185);
}

.color-slate .category-icon,
.color-slate.category-card .category-icon {
    background: linear-gradient(135deg, #334155, #0f172a);
}

.color-purple .category-icon,
.color-purple.category-card .category-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.color-orange .category-icon,
.color-orange.category-card .category-icon {
    background: linear-gradient(135deg, #ea580c, #ef4444);
}

.color-green .category-icon,
.color-green.category-card .category-icon {
    background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.color-teal .category-icon,
.color-teal.category-card .category-icon {
    background: linear-gradient(135deg, #0f766e, #22d3ee);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .two-column-layout,
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .rank-card,
    .detail-sidebar {
        position: static;
    }

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

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

    .menu-button {
        display: block;
    }

    .hero-shell {
        min-height: auto;
        padding: 56px 0 76px;
    }

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

    .hero-poster {
        min-height: 360px;
        transform: none;
    }

    .hero-dots {
        bottom: 26px;
    }

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

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

    .filter-controls,
    .filter-controls.extended {
        grid-template-columns: 1fr;
    }

    .category-overview-header {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .category-overview-header > strong {
        grid-column: 1 / -1;
    }

    .rank-item {
        grid-template-columns: 44px minmax(0, 1fr) 66px;
    }

    .rank-thumb,
    .rank-content p {
        display: none;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

    .quick-category-inner {
        gap: 14px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.05em;
    }

    .stats-grid,
    .category-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .category-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
