:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-500: #3b82f6;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 28px 75px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.5), #ffffff 420px);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
    font-size: 18px;
    line-height: 1;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--sky-600), #2563eb);
    -webkit-background-clip: text;
    color: transparent;
}

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

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

.main-nav a,
.mobile-nav a {
    padding: 10px 15px;
    border-radius: 12px;
    color: #4b5563;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover {
    background: var(--sky-100);
    color: #0369a1;
}

.main-nav a:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--sky-50);
    color: var(--sky-600);
    cursor: pointer;
}

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

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

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

.hero-carousel {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    background: var(--slate-900);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(14, 165, 233, 0.28), transparent 38%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 54%, rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 120px));
    padding: 86px 0 86px 64px;
    color: #ffffff;
}

.hero-site-title {
    margin-top: 18px;
    color: #bae6fd;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-kicker span,
.pill-row span {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(12px);
    font-size: 14px;
}

.hero-kicker span:first-child,
.pill-row span:first-child {
    background: var(--sky-500);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content h2 + p,
.hero-content p {
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hero-meta {
    margin-top: 18px;
    color: #cbd5e1;
}

.hero-meta span + span::before,
.movie-meta span + span::before,
.detail-meta span + span::before {
    content: "•";
    margin-right: 8px;
    color: #94a3b8;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-action,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    background: var(--sky-500);
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.36);
    font-weight: 700;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    background: var(--sky-600);
    box-shadow: 0 20px 44px rgba(14, 165, 233, 0.44);
}

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

.ghost-btn.dark {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.66);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

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

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

.search-panel,
.filter-bar,
.content-panel,
.ranking-panel,
.category-detail-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.search-panel {
    margin: 28px 0 58px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 18px 28px;
    align-items: center;
}

.search-panel h2,
.search-panel p,
.section-heading h2,
.section-heading p,
.page-hero h1,
.page-hero p {
    margin: 0;
}

.search-panel h2 {
    font-size: 25px;
    color: var(--slate-900);
}

.search-panel p,
.section-heading p,
.page-hero p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.75;
}

.global-search-form {
    display: flex;
    gap: 10px;
}

.global-search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 15px;
    outline: none;
    background: #ffffff;
    color: var(--slate-900);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.global-search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.global-search-form button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    background: var(--sky-500);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.quick-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--sky-50);
    color: var(--sky-600);
    font-size: 14px;
}

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

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

.section-heading h2 {
    font-size: clamp(25px, 3vw, 36px);
    color: var(--slate-900);
    letter-spacing: -0.03em;
}

.section-action,
.text-link {
    min-height: 38px;
    padding: 0 14px;
    background: var(--sky-50);
    color: var(--sky-600);
    font-weight: 700;
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
    gap: 18px;
    overflow-x: auto;
    padding: 0 2px 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-row > * {
    scroll-snap-align: start;
}

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

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

.poster-grid.all-movies {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poster-card,
.movie-large-card,
.movie-list-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.poster-card {
    border-radius: var(--radius-lg);
}

.poster-card:hover,
.movie-large-card:hover,
.movie-list-card:hover,
.ranking-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.35);
}

.poster-card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-100);
}

.poster-card img,
.movie-large-card img,
.category-card img,
.category-cover img,
.rank-item img,
.ranking-row img,
.movie-list-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.poster-card:hover img,
.movie-large-card:hover img,
.category-card:hover img,
.category-detail-card:hover img,
.rank-item:hover img,
.ranking-row:hover img,
.movie-list-card:hover img {
    transform: scale(1.06);
}

.corner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 10px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.poster-body {
    padding: 14px;
}

.poster-body h3,
.movie-large-overlay h3,
.movie-list-body h3 {
    margin: 0;
    line-height: 1.35;
}

.poster-body h3 {
    font-size: 16px;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    margin-top: 7px;
    color: var(--slate-500);
    font-size: 13px;
}

.movie-meta.light {
    color: #cbd5e1;
}

.tag-row {
    margin-top: 10px;
}

.tag-row span {
    background: var(--sky-50);
    color: var(--sky-600);
}

.tag-row.wide span {
    background: #e0f2fe;
}

.movie-large-card {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-xl);
}

.movie-large-card img {
    position: absolute;
    inset: 0;
}

.movie-large-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.movie-large-overlay {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    color: #ffffff;
}

.movie-large-overlay h3 {
    margin-top: 12px;
    font-size: 25px;
}

.movie-large-overlay p,
.movie-list-body p,
.rank-item p,
.ranking-row p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-large-overlay p {
    -webkit-line-clamp: 2;
    color: #e5e7eb;
    line-height: 1.65;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.ranking-panel {
    padding: 22px;
    position: sticky;
    top: 100px;
}

.compact-heading h2 {
    font-size: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: var(--sky-50);
    transform: translateX(3px);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.22);
}

.rank-item img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.rank-item strong {
    display: block;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
}

.rank-item small {
    color: var(--sky-600);
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    background: var(--slate-900);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card div {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #ffffff;
}

.category-card span,
.page-hero span {
    color: #bae6fd;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.category-card h3 {
    margin: 8px 0;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.55;
    font-size: 14px;
}

.page-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 46px;
    margin-bottom: 30px;
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.3), transparent 34%),
        linear-gradient(135deg, #0f172a, #164e63 55%, #0284c7);
    color: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 720px;
    color: #e0f2fe;
    font-size: 17px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 12px;
    padding: 18px;
    margin-bottom: 30px;
}

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

.category-detail-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px;
    align-items: center;
}

.category-cover {
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--slate-100);
}

.category-detail-card h2 {
    margin: 0;
    font-size: 26px;
}

.category-detail-card p {
    color: var(--muted);
    line-height: 1.8;
}

.category-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-inline-links a {
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--sky-50);
    color: var(--sky-600);
    font-size: 13px;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
    margin-bottom: 62px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 72px 110px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.rank-num.big {
    width: 50px;
    height: 50px;
}

.ranking-row img {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
}

.ranking-row h2 {
    margin: 0;
    font-size: 24px;
}

.ranking-row p {
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.65;
    -webkit-line-clamp: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sky-600);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 30px;
}

.player-wrap {
    position: relative;
    min-height: 520px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-xl);
}

.player-wrap video {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.56));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
    color: #ffffff;
    font-size: 36px;
    box-shadow: 0 24px 54px rgba(14, 165, 233, 0.42);
    padding-left: 5px;
}

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

.watch-info {
    padding: 28px;
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.18), transparent 38%),
        #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: var(--shadow-sm);
}

.watch-info .pill-row span {
    color: #ffffff;
}

.watch-info h1 {
    margin: 20px 0 14px;
    color: var(--slate-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.watch-info p {
    color: var(--muted);
    line-height: 1.9;
}

.detail-meta {
    margin: 18px 0 10px;
    color: var(--slate-700);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    margin-bottom: 36px;
}

.content-panel {
    padding: 26px;
}

.content-panel h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
}

.content-panel p {
    margin: 0;
    color: var(--slate-700);
    line-height: 2;
}

.next-prev {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.next-prev a {
    color: var(--sky-600);
    font-weight: 700;
}

.movie-list-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    border-radius: var(--radius-xl);
}

.movie-list-card figure {
    margin: 0;
    min-height: 240px;
    overflow: hidden;
}

.movie-list-body {
    padding: 18px 18px 18px 0;
}

.movie-list-body p {
    color: var(--muted);
    line-height: 1.75;
    -webkit-line-clamp: 3;
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0 28px;
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    border-top: 1px solid var(--slate-200);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

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

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--slate-600, #475569);
}

.footer-links a:hover {
    color: var(--sky-600);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    text-align: center;
    font-size: 14px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .poster-grid,
    .poster-grid.all-movies {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .split-section,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-carousel {
        min-height: 540px;
        border-radius: 24px;
    }

    .hero-content {
        width: calc(100% - 54px);
        padding: 70px 27px;
    }

    .hero-control {
        display: none;
    }

    .search-panel,
    .filter-bar,
    .detail-content-grid,
    .footer-grid,
    .category-detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .site-header-inner,
    .page-shell,
    .mobile-nav,
    .footer-grid,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

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

    .brand-copy small {
        display: none;
    }

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

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }

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

    .hero-actions,
    .global-search-form,
    .section-heading,
    .next-prev {
        flex-direction: column;
        align-items: stretch;
    }

    .global-search-form {
        display: grid;
    }

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

    .poster-body {
        padding: 12px;
    }

    .movie-large-card {
        min-height: 360px;
    }

    .page-hero {
        min-height: 260px;
        padding: 28px;
    }

    .category-detail-card,
    .ranking-row,
    .movie-list-card {
        grid-template-columns: 1fr;
    }

    .category-cover,
    .ranking-row img,
    .movie-list-card figure {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .rank-num.big {
        width: 44px;
        height: 44px;
    }

    .player-wrap,
    .player-wrap video {
        min-height: 300px;
    }

    .watch-info,
    .content-panel {
        padding: 20px;
    }
}
