:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-100: #ccfbf1;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --rose-500: #f43f5e;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(2, 6, 23, 0.32);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --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, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 100;
    color: var(--white);
    background: linear-gradient(90deg, #134e4a 0%, #0f172a 100%);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.22);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: var(--max-width);
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-300), var(--teal-500));
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.3);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.08em;
}

.brand-text small {
    margin-top: 3px;
    color: #99f6e4;
    font-size: 12px;
}

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

.nav-links a,
.mobile-links a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-links a:hover,
.mobile-links a.is-active {
    color: var(--amber-300);
}

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

.nav-search,
.mobile-search,
.home-search-band form,
.search-page-box form {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.nav-search input,
.mobile-search input,
.home-search-band input,
.search-page-box input {
    width: 220px;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    padding: 11px 14px 11px 18px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.home-search-band input::placeholder,
.search-page-box input::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.nav-search button,
.mobile-search button,
.home-search-band button,
.search-page-box button {
    border: 0;
    color: var(--white);
    background: var(--teal-600);
    padding: 11px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.home-search-band button:hover,
.search-page-box button:hover {
    background: var(--teal-700);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 20px;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-links a {
    padding: 10px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.hero-carousel {
    position: relative;
    height: 640px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 1.2s ease;
}

.hero-slide::before {
    position: absolute;
    inset: -28px;
    content: "";
    background: inherit;
    filter: blur(10px);
    transform: scale(1.08);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(660px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

.hero-label,
.profile-kicker,
.page-title-block span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #082f2e;
    background: linear-gradient(135deg, var(--amber-300), #2dd4bf);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-meta,
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 30px;
}

.hero-meta span,
.profile-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: var(--teal-600);
    box-shadow: 0 18px 42px rgba(13, 148, 136, 0.36);
}

.primary-btn:hover,
.ranking-action:hover {
    transform: translateY(-2px);
    background: var(--teal-700);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

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

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

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dots button.is-active {
    width: 40px;
    background: var(--white);
}

.home-search-band {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-width);
    margin: -44px auto 28px;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(19, 78, 74, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.home-search-band strong {
    display: block;
    font-size: 22px;
}

.home-search-band span {
    color: #cbd5e1;
}

.home-search-band form {
    min-width: min(470px, 100%);
}

.home-search-band input {
    width: 100%;
}

.category-chips,
.page-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.category-chips a {
    color: var(--teal-700);
    background: var(--teal-100);
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-chips a:hover {
    transform: translateY(-2px);
    background: #99f6e4;
}

.page-shell {
    padding-bottom: 68px;
}

.page-top {
    padding-top: 42px;
}

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

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin: 0 0 26px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--slate-600);
}

.section-more {
    min-height: 42px;
    color: var(--teal-700);
    background: #ecfeff;
    border: 1px solid #99f6e4;
}

.section-more span {
    font-size: 24px;
    line-height: 1;
}

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

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

.category-grid {
    align-items: stretch;
}

.movie-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    color: var(--slate-900);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card.standard {
    flex-direction: column;
}

.movie-card:hover {
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

.poster-wrap img,
.compact-poster img,
.ranking-thumb img {
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.compact-card:hover .compact-poster img,
.ranking-row:hover .ranking-thumb img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #082f2e;
    background: var(--amber-300);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
}

.card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta,
.compact-info em,
.ranking-body span {
    color: var(--teal-700);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: var(--slate-700);
    background: var(--slate-100);
    border-radius: 999px;
    font-size: 12px;
}

.tag-row.large span {
    min-height: 32px;
    padding: 6px 11px;
    color: var(--teal-800, #115e59);
    background: var(--teal-100);
    font-size: 13px;
    font-weight: 750;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: var(--slate-500);
    font-size: 13px;
}

.card-foot b {
    color: var(--teal-700);
}

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

.compact-card {
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
}

.compact-poster {
    position: relative;
    flex: 0 0 78px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--slate-900);
    border-radius: 14px;
}

.compact-info {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
}

.compact-info strong {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-info small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-number {
    position: absolute;
    top: 7px;
    left: 7px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--slate-950);
    background: var(--amber-300);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
}

.ranking-panel {
    padding: 32px;
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.ranking-panel .section-head h2,
.ranking-panel .section-head p {
    color: var(--white);
}

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

.ranking-list .compact-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--white);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.ranking-list .compact-info small,
.ranking-list .compact-info em {
    color: #cbd5e1;
}

.page-title-block {
    margin: 0 0 32px;
    padding: 38px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(19, 78, 74, 0.94));
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-strong);
}

.page-title-block h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-title-block p {
    max-width: 820px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

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

.category-card-large {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.category-main-link {
    display: grid;
    gap: 8px;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--slate-900));
    border-radius: 20px;
}

.category-main-link span {
    color: var(--amber-300);
    font-size: 14px;
    font-weight: 850;
}

.category-main-link strong {
    font-size: 24px;
    line-height: 1.25;
}

.category-main-link em {
    color: #ccfbf1;
    font-style: normal;
    font-weight: 750;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 26px;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
    display: grid;
    flex: 1 1 260px;
    gap: 8px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 750;
}

.filter-bar input,
.filter-bar select,
.search-page-box input {
    width: 100%;
    border: 1px solid rgba(100, 116, 139, 0.22);
    outline: 0;
    color: var(--slate-900);
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-page-box input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

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

.breadcrumb a {
    color: var(--teal-700);
    font-weight: 750;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: var(--slate-950);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.player-frame video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: var(--slate-950);
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.22), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 7px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-300), var(--teal-500));
    border-radius: 50%;
    font-size: 38px;
    box-shadow: 0 18px 42px rgba(20, 184, 166, 0.32);
    transform: scale(1);
    transition: transform 0.2s ease;
}

.player-cover:hover span {
    transform: scale(1.08);
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.movie-profile {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    color: var(--white);
    background: linear-gradient(135deg, #0f172a, #134e4a);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.movie-profile h1 {
    margin: 0;
    font-size: clamp(32px, 4.8vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.profile-line {
    margin: 0;
    color: #e2e8f0;
    font-size: 17px;
}

.profile-meta {
    margin-bottom: 0;
}

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

.detail-content article {
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-content h2 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.25;
}

.detail-content p {
    margin: 0 0 13px;
    color: var(--slate-700);
    text-align: justify;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 56px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.ranking-index {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--slate-950);
    background: var(--amber-300);
    border-radius: 16px;
    font-weight: 900;
}

.ranking-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--slate-900);
    border-radius: 16px;
}

.ranking-body a {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 19px;
    font-weight: 850;
}

.ranking-body p {
    margin: 0 0 7px;
    color: var(--slate-600);
}

.ranking-action {
    min-height: 42px;
    color: var(--white);
    background: var(--teal-600);
}

.search-page-box {
    margin-bottom: 34px;
    padding: 22px;
    color: var(--white);
    background: linear-gradient(135deg, #0f172a, #134e4a);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.search-page-box form {
    width: min(760px, 100%);
    margin: 0 auto;
}

.search-page-box input {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.empty-state {
    padding: 42px;
    text-align: center;
    color: var(--slate-600);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-xl);
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-950);
}

.footer-inner {
    display: grid;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 34px 24px;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.footer-inner p {
    max-width: 720px;
    margin: 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner nav a {
    color: #99f6e4;
}

[data-movie-card].is-hidden {
    display: none;
}

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

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

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

@media (max-width: 920px) {
    .nav-links,
    .nav-search {
        display: none;
    }

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

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

    .hero-carousel {
        height: 560px;
    }

    .hero-control {
        display: none;
    }

    .home-search-band,
    .section-head,
    .watch-layout,
    .detail-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .home-search-band {
        margin: -26px 24px 24px;
    }

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

    .watch-layout,
    .detail-content {
        display: grid;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 68px;
        padding: 0 16px;
    }

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

    .brand-text small {
        display: none;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
    }

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

    .hero-meta span {
        font-size: 12px;
    }

    .hero-dots {
        right: 16px;
        bottom: 18px;
    }

    .home-search-band,
    .page-title-block,
    .ranking-panel,
    .movie-profile,
    .detail-content article {
        padding: 22px;
        border-radius: 22px;
    }

    .category-chips,
    .page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid,
    .preview-grid,
    .compact-grid,
    .ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .compact-card {
        flex-direction: column;
    }

    .compact-poster {
        flex-basis: auto;
        width: 100%;
    }

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

    .ranking-action {
        grid-column: 3;
        width: fit-content;
    }

    .player-frame,
    .player-frame video {
        min-height: 260px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .preview-grid,
    .compact-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        display: grid;
    }

    .home-search-band form,
    .search-page-box form,
    .mobile-search {
        display: grid;
        border-radius: 18px;
    }

    .home-search-band button,
    .search-page-box button,
    .mobile-search button {
        border-radius: 0;
    }
}
