:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --cyan: #0891b2;
    --blue: #2563eb;
    --teal: #0d9488;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #0891b2, #2563eb 54%, #0d9488);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.22);
}

.topbar {
    max-width: 1220px;
    height: 78px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-weight: 900;
    font-size: 20px;
}

.brand-text strong,
.brand-text em {
    display: block;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 2px;
    color: #cffafe;
    font-style: normal;
    font-size: 12px;
}

.nav-search {
    flex: 1;
    max-width: 460px;
    display: flex;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.nav-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    color: #0f172a;
}

.nav-search button {
    border: 0;
    color: #fff;
    background: #0f766e;
    padding: 0 18px;
    cursor: pointer;
}

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

.main-nav a {
    padding: 9px 14px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.category-strip {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.strip-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.strip-inner::-webkit-scrollbar {
    display: none;
}

.strip-inner a {
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    transition: background 0.2s ease;
}

.strip-inner a:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding: 42px max(22px, calc((100vw - 1220px) / 2)) 38px;
    color: #fff;
    background: radial-gradient(circle at 20% 10%, rgba(8, 145, 178, 0.34), transparent 36%), linear-gradient(135deg, #0f172a, #1e3a8a 52%, #134e4a);
    overflow: hidden;
}

.hero-stage {
    position: relative;
    min-height: 580px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: center;
    padding: clamp(28px, 5vw, 70px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.54) 52%, rgba(15, 23, 42, 0.78)), radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.26), transparent 34%);
}

.hero-bg img {
    filter: blur(7px) saturate(1.16);
    transform: scale(1.08);
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #cffafe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--cyan);
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 650px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 28px 0;
}

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

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    backdrop-filter: blur(10px);
}

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

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

.primary-btn {
    color: var(--cyan);
    background: #fff;
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

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

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

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

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

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

.hero-dots {
    position: absolute;
    left: 70px;
    bottom: 40px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: #67e8f9;
}

.hero-side {
    border-radius: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    align-self: stretch;
}

.hero-side-title {
    margin-bottom: 18px;
    font-weight: 900;
    font-size: 18px;
}

.hero-thumbs {
    display: grid;
    gap: 14px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px;
    color: #fff;
    text-align: left;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-thumb img {
    height: 88px;
    border-radius: 14px;
}

.hero-thumb span {
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

main,
.section-block,
.stat-row {
    max-width: 1220px;
    margin-inline: auto;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
    padding: 0 22px;
}

.stat-card {
    min-height: 130px;
    padding: 24px;
    color: #fff;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

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

.stat-card span {
    color: rgba(255, 255, 255, 0.88);
}

.section-block {
    padding: 46px 22px;
}

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

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.section-head a {
    color: var(--cyan);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.movie-card:not(.compact-card) .poster-link {
    aspect-ratio: 16 / 10;
}

.poster-link img {
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.ranking-item:hover img,
.category-card:hover img {
    transform: scale(1.06);
}

.type-badge,
.score-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(8, 145, 178, 0.92);
}

.score-badge {
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    color: #78350f;
    background: #fbbf24;
}

.rank-mark {
    left: 12px;
    bottom: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 52px;
    color: #0f172a;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title:hover,
.ranking-title:hover,
.mini-links a:hover {
    color: var(--cyan);
}

.movie-desc {
    display: -webkit-box;
    min-height: 50px;
    margin: 10px 0 12px;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.tag-list {
    margin-top: 12px;
}

.tag-list span {
    color: #0e7490;
    background: #ecfeff;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    box-shadow: var(--soft-shadow);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.82));
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.35s ease;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: block;
    margin-top: 72px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: #e0f2fe;
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
}

.ranking-panel,
.fresh-panel,
.text-card,
.filter-panel,
.category-overview-card {
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.ranking-panel,
.fresh-panel {
    padding: 24px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 86px 44px minmax(0, 1fr) 80px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.ranking-cover {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
}

.ranking-no {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-weight: 900;
}

.ranking-title {
    display: block;
    font-weight: 900;
    font-size: 17px;
}

.ranking-content p {
    display: -webkit-box;
    margin: 5px 0 8px;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.ranking-score {
    text-align: right;
}

.ranking-score strong {
    display: block;
    color: #d97706;
    font-size: 26px;
    line-height: 1;
}

.ranking-score span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.small-rank .ranking-item {
    grid-template-columns: 74px 36px minmax(0, 1fr) 62px;
}

.small-rank .ranking-content p,
.small-rank .ranking-meta {
    display: none;
}

.page-hero {
    max-width: 1220px;
    margin: 34px auto 0;
    padding: 58px 42px;
    color: #fff;
    border-radius: 32px;
    background: linear-gradient(135deg, #0891b2, #2563eb 56%, #0d9488);
    box-shadow: var(--shadow);
}

.compact-hero {
    background: radial-gradient(circle at 85% 15%, rgba(103, 232, 249, 0.28), transparent 36%), linear-gradient(135deg, #0f172a, #1e40af, #0f766e);
}

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

.page-hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px;
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 13px 15px;
    background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(8, 145, 178, 0.5);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 8px 15px;
    color: #0f172a;
    background: #e2e8f0;
    font-weight: 800;
    cursor: pointer;
}

.filter-buttons button.is-active {
    color: #fff;
    background: linear-gradient(90deg, #0891b2, #2563eb);
}

.ranking-tools {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.empty-message {
    display: none;
    padding: 28px;
    text-align: center;
    color: #64748b;
    border-radius: 20px;
    background: #fff;
}

.empty-message.is-visible {
    display: block;
}

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.category-overview-cover {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 260px;
    background: #e2e8f0;
}

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

.category-overview-body h2 {
    margin: 0 0 9px;
    font-size: 28px;
    line-height: 1.1;
}

.category-overview-body p {
    margin: 0 0 18px;
    color: #64748b;
}

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

.mini-links a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.42;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f172a 10%, rgba(15, 23, 42, 0.78) 52%, rgba(15, 23, 42, 0.92));
}

.detail-backdrop img {
    filter: blur(8px) saturate(1.15);
    transform: scale(1.08);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    margin: 0 auto;
    padding: 36px 22px 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

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

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: 20px;
}

.detail-meta {
    margin-bottom: 14px;
}

.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags span {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.22);
}

.detail-info .primary-btn {
    margin-top: 22px;
}

.player-section {
    padding-top: 54px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.7));
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0e7490;
    background: #fff;
    font-size: 36px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.player-start strong {
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.player-start.is-hidden {
    display: none;
}

.detail-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 24px;
}

.text-card {
    padding: 28px;
}

.text-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.text-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.review-card {
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.prev-next a {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    color: #0e7490;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: 48px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

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

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

.site-footer a {
    display: block;
    margin-bottom: 8px;
}

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

.copyright {
    padding: 18px 22px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tone-cyan-blue {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.tone-emerald-teal {
    background: linear-gradient(135deg, #059669, #0d9488);
}

.tone-amber-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tone-violet-fuchsia {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.tone-rose-red {
    background: linear-gradient(135deg, #e11d48, #dc2626);
}

.tone-blue-indigo {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.tone-lime-green {
    background: linear-gradient(135deg, #65a30d, #16a34a);
}

.tone-slate-cyan {
    background: linear-gradient(135deg, #334155, #0891b2);
}

.searchable-card.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .hero-carousel {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

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

    .category-overview-grid,
    .split-section,
    .detail-text {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .topbar {
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-search {
        order: 3;
        max-width: none;
        width: 100%;
        flex-basis: 100%;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-basis: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-left: 0;
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        text-align: center;
        background: rgba(255, 255, 255, 0.12);
    }

    .hero-carousel {
        min-height: auto;
        padding: 22px;
    }

    .hero-stage {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 28px;
    }

    .hero-poster {
        max-width: 240px;
        margin: 0 auto;
    }

    .hero-dots {
        left: 28px;
        bottom: 24px;
    }

    .stat-row,
    .movie-grid.three-col,
    .movie-grid.four-col,
    .movie-grid.two-col,
    .category-grid,
    .footer-grid,
    .prev-next,
    .ranking-tools {
        grid-template-columns: 1fr;
    }

    .stat-row {
        margin-top: 22px;
    }

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

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

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

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

    .ranking-item {
        grid-template-columns: 78px 36px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 2 / -1;
        display: flex;
        gap: 10px;
        align-items: center;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .hero-content h1,
    .detail-info h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-stage {
        min-height: 690px;
        border-radius: 24px;
    }

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

    .page-hero {
        margin: 22px 22px 0;
        padding: 36px 24px;
        border-radius: 24px;
    }

    .section-block {
        padding: 34px 18px;
    }

    .ranking-item {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .ranking-no {
        position: absolute;
        margin: 8px;
    }

    .ranking-content,
    .ranking-score {
        grid-column: 2;
    }
}
