:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-600: #2563eb;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50) 0%, #ffffff 46%, var(--sky-50) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img,
video {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35);
    font-size: 0.85rem;
}

.brand-text {
    font-size: 1.35rem;
    color: var(--slate-900);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-600);
    background: var(--sky-50);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--slate-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--slate-700);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--slate-700);
    font-weight: 600;
}

.mobile-nav a:hover {
    color: var(--sky-600);
    background: var(--sky-50);
}

.mobile-category-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 8px;
}

.hero-carousel {
    position: relative;
    height: min(760px, 72vh);
    min-height: 540px;
    overflow: hidden;
    color: #ffffff;
    background: var(--slate-900);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 5s ease;
}

.hero-slide.is-active .hero-image img {
    transform: scale(1.10);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.56) 44%, rgba(15, 23, 42, 0.20) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.84) 0%, rgba(15, 23, 42, 0.00) 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max-width));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 60px;
}

.hero-kicker,
.page-hero > span,
.section-heading > span,
.section-heading div > span,
.category-panel-head span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    max-width: 800px;
    margin: 18px 0 16px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.32);
}

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

.primary-btn.small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(12px);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

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

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

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 70px;
    width: min(620px, calc(100% - 32px));
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--slate-900);
    background: transparent;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    background: var(--sky-600);
    font-weight: 800;
}

.page-section,
.sub-page,
.detail-page {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.page-section {
    padding: 64px 0;
}

.intro-section {
    padding-top: 56px;
    padding-bottom: 32px;
}

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

.section-heading.centered {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading.centered span {
    margin: 0 auto 14px;
}

.section-heading h2 {
    margin: 12px 0 10px;
    color: var(--slate-900);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 0;
    color: var(--slate-500);
    font-size: 1.05rem;
}

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

.section-more,
.text-link {
    color: var(--sky-600);
}

.section-more {
    padding: 10px 16px;
    background: var(--sky-50);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.36);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-100), var(--sky-100));
}

.poster-link img,
.rank-poster img,
.mini-card img,
.category-thumbs img,
.detail-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.rank-card:hover .rank-poster img,
.mini-card:hover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.movie-card h3,
.mini-card h3,
.rank-card h3 {
    margin: 0;
    color: var(--slate-900);
    font-size: 1.05rem;
    line-height: 1.32;
    font-weight: 850;
}

.movie-card h3 a:hover,
.mini-card h3 a:hover,
.rank-card h3 a:hover {
    color: var(--sky-600);
}

.movie-meta,
.movie-desc,
.rank-card p,
.mini-card p {
    color: var(--slate-500);
}

.movie-meta {
    min-height: 22px;
    margin: 8px 0 8px;
    font-size: 0.86rem;
}

.movie-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.92rem;
}

.movie-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-pill {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--sky-600);
    background: var(--sky-50);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card.horizontal {
    width: 250px;
    flex: 0 0 250px;
}

.movie-card.compact-card .movie-desc {
    min-height: 0;
}

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

.category-tile a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
    background: var(--slate-100);
}

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

.category-tile h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: var(--slate-500);
}

.strips-wrap {
    padding-top: 24px;
}

.strip-section {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, var(--sky-50));
    box-shadow: var(--shadow-card);
}

.strip-section + .strip-section {
    margin-top: 30px;
}

.strip-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.strip-heading h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
}

.strip-heading a {
    color: var(--sky-600);
    font-weight: 800;
}

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scrollbar-color: var(--sky-500) var(--sky-100);
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 14px;
}

.rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.28);
}

.rank-poster {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sky-100);
}

.rank-info p {
    margin: 8px 0;
    font-size: 0.92rem;
}

.sub-page {
    padding: 44px 0 72px;
}

.page-hero {
    overflow: hidden;
    margin: 30px auto 28px;
    padding: clamp(36px, 6vw, 72px);
    border-radius: 32px;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 20% 18%, rgba(14, 165, 233, 0.22), transparent 34%),
        linear-gradient(135deg, #ffffff, var(--sky-50));
    box-shadow: var(--shadow-soft);
}

.page-hero > span {
    color: #ffffff;
}

.page-hero h1 {
    max-width: 920px;
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.page-hero p {
    max-width: 850px;
    margin: 0;
    color: var(--slate-500);
    font-size: 1.08rem;
}

.category-hero .inline-actions,
.detail-intro .inline-actions {
    margin-top: 24px;
}

.category-hero .ghost-btn,
.detail-intro .ghost-btn {
    color: var(--sky-600);
    background: #ffffff;
    border-color: var(--sky-100);
}

.category-panels {
    display: grid;
    gap: 26px;
}

.category-panel {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.category-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-panel-head h2 {
    margin: 12px 0 8px;
    font-size: 1.8rem;
    font-weight: 900;
}

.category-panel-head p {
    max-width: 780px;
    margin: 0;
    color: var(--slate-500);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--slate-50);
}

.mini-card a:first-child {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sky-100);
}

.mini-card p {
    margin: 6px 0 0;
    font-size: 0.86rem;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 20;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
}

.filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 12px;
    outline: 0;
    color: var(--slate-900);
    background: #ffffff;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-status {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    color: var(--slate-500);
    font-size: 0.95rem;
}

.filter-status strong {
    color: var(--sky-600);
    font-size: 1.15rem;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    color: var(--slate-500);
    background: #ffffff;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0 16px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
    margin: 18px 0 32px;
    padding: 34px;
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 16%, rgba(14, 165, 233, 0.32), transparent 34%),
        linear-gradient(135deg, var(--slate-900), #172554);
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 26px;
    background: var(--sky-100);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.detail-intro h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-intro p {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta-grid span {
    padding: 10px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.watch-section {
    margin: 0 0 34px;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.36), rgba(15, 23, 42, 0.60) 42%, rgba(0, 0, 0, 0.74) 100%);
}

.play-overlay.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.34);
    font-size: 2rem;
}

.play-text {
    font-size: 1.1rem;
    font-weight: 900;
}

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

.detail-main,
.detail-side .side-box {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.detail-main {
    padding: 30px;
}

.detail-main h2,
.side-box h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 1.45rem;
    font-weight: 900;
}

.detail-main h2:not(:first-child) {
    margin-top: 30px;
}

.detail-main p {
    margin: 0;
    color: var(--slate-700);
    font-size: 1.03rem;
}

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

.detail-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.side-box {
    padding: 22px;
}

.side-box dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.side-box dt {
    color: var(--slate-500);
    font-weight: 800;
}

.side-box dd {
    margin: 0;
    color: var(--slate-900);
}

.side-rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.side-rank-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
}

.side-rank-list span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--sky-500);
    font-weight: 900;
}

.side-rank-list a {
    color: var(--slate-700);
    font-weight: 800;
}

.side-rank-list a:hover {
    color: var(--sky-600);
}

.site-footer {
    margin-top: 30px;
    border-top: 1px solid rgba(226, 232, 240, 0.88);
    background: #ffffff;
}

.footer-inner {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 32px;
}

.footer-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--slate-500);
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 900;
}

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

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

.footer-link-grid a {
    color: var(--slate-500);
    font-weight: 700;
}

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

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

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

    .rank-grid.preview,
    .rank-grid.full {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        position: static;
    }
}

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

    .nav-toggle {
        display: inline-flex;
    }

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

    .hero-carousel {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 150px;
    }

    .hero-control {
        display: none;
    }

    .hero-search {
        bottom: 64px;
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 44px;
    }

    .hero-search button {
        width: 100%;
    }

    .row-heading,
    .category-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .filter-panel {
        position: static;
    }

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

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

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

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

@media (max-width: 560px) {
    .header-inner,
    .page-section,
    .sub-page,
    .detail-page,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 24px, var(--max-width));
    }

    .brand-text {
        font-size: 1.12rem;
    }

    .hero-content h1 {
        font-size: 2.55rem;
    }

    .hero-tags span,
    .tag-cloud span {
        font-size: 0.8rem;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .mini-grid,
    .related-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-hero,
    .detail-main,
    .strip-section,
    .category-panel,
    .page-hero {
        padding: 22px;
        border-radius: 22px;
    }

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

    .side-box dl {
        grid-template-columns: 1fr;
    }
}
