:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-strong: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --accent-soft: #cffafe;
    --danger: #ef4444;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    --radius-small: 14px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

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

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.30);
}

.brand-text,
.footer-brand {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a,
.mobile-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-links a:hover,
.mobile-links a.is-active {
    color: var(--primary);
    background: #eff6ff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-search input,
.wide-search input,
.filter-toolbar input,
.mobile-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    padding: 7px 8px 7px 14px;
}

.header-search button,
.wide-search button,
.mobile-panel button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 7px 15px;
}

.header-search button:hover,
.wide-search button:hover,
.mobile-panel button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.mobile-panel input {
    padding: 10px 12px;
}

.mobile-panel button {
    padding: 9px 18px;
}

.mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #08111f;
}

.hero-track {
    position: relative;
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 17, 31, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.35) 100%), linear-gradient(0deg, rgba(8, 17, 31, 0.90) 0%, rgba(8, 17, 31, 0.08) 56%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 60px;
    padding: 72px 0 94px;
    color: #ffffff;
}

.hero-text h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text .eyebrow,
.detail-copy .eyebrow,
.page-hero .eyebrow,
.highlight-band .eyebrow {
    color: #a5f3fc;
}

.hero-tags,
.detail-tags,
.movie-tags,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags,
.detail-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags a,
.movie-tags span,
.filter-pills button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.secondary-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.secondary-button {
    min-height: 48px;
    padding: 0 24px;
}

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

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.40);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 32px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 30px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 28px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 52px;
    background: #ffffff;
}

.quick-search-section {
    margin-top: -54px;
    position: relative;
    z-index: 10;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.quick-search-card h2,
.section-heading h2,
.content-panel h2,
.player-meta h2,
.ranking-panel h2,
.category-overview-card h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.wide-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.wide-search input {
    padding: 14px 16px;
    font-size: 16px;
}

.wide-search button {
    padding: 13px 24px;
}

.section-block {
    padding: 70px 0 0;
}

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

.section-heading a,
.text-link {
    color: var(--primary);
    font-weight: 900;
}

.section-heading p {
    margin: 0 0 6px;
}

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

.category-card,
.category-overview-card,
.content-panel,
.player-card,
.ranking-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.80);
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card:hover img {
    transform: scale(1.08);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--panel-strong);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 3;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: auto;
    right: 10px;
    background: rgba(239, 68, 68, 0.94);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--text);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--primary);
}

.movie-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags span {
    min-height: 26px;
    padding: 3px 8px;
    color: var(--primary);
    background: #eff6ff;
}

.highlight-band {
    margin-top: 80px;
    padding: 72px 0;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.50), transparent 35%), linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0e7490);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.highlight-band h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.highlight-band p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 44px 82px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-panel .ranking-item {
    border-color: var(--line);
    background: #ffffff;
}

.ranking-item:hover {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.16);
}

.ranking-panel .ranking-item:hover {
    background: #f8fafc;
}

.ranking-number {
    color: #a5f3fc;
    font-weight: 900;
    font-size: 20px;
}

.ranking-panel .ranking-number {
    color: var(--primary);
}

.ranking-item img {
    width: 82px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.ranking-copy strong,
.ranking-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-copy strong {
    color: inherit;
    font-size: 16px;
}

.ranking-copy em {
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
    font-size: 13px;
}

.ranking-panel .ranking-copy em {
    color: var(--muted);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #0e7490);
}

.page-hero .container {
    padding: 86px 0;
}

.category-page-hero .container,
.search-hero .container,
.ranking-hero .container {
    padding-bottom: 74px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card p {
    color: var(--muted);
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.filter-toolbar h2 {
    margin: 0;
}

.filter-toolbar input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.filter-pills {
    grid-column: 1 / -1;
}

.filter-pills button {
    border: 0;
    cursor: pointer;
}

.filter-pills button.is-active,
.filter-pills button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.detail-hero {
    min-height: 560px;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 40px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-cover {
    width: 280px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.player-section {
    margin-top: -54px;
    position: relative;
    z-index: 5;
}

.player-card {
    overflow: hidden;
}

.video-player {
    position: relative;
    width: 100%;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.26), rgba(2, 6, 23, 0.38));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.42);
    font-size: 32px;
    text-indent: 5px;
}

.video-player.is-playing .player-start,
.video-player.is-loaded .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-meta {
    padding: 22px 26px;
}

.player-meta p {
    margin: 8px 0 0;
    color: var(--muted);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    padding-top: 70px;
}

.content-panel {
    padding: 26px;
}

.content-panel p:not(.eyebrow) {
    color: #334155;
    font-size: 16px;
}

.detail-info-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.detail-info-list li {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-info-list span {
    color: var(--muted);
}

.detail-info-list strong {
    font-weight: 800;
}

.ranking-grid .movie-card:nth-child(-n + 3) {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.13);
}

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

.ranking-panel {
    padding: 20px;
}

.mini-heading {
    margin-bottom: 16px;
}

.search-hero .wide-search {
    max-width: 760px;
    margin-top: 26px;
}

.site-footer {
    margin-top: 80px;
    padding: 46px 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.footer-inner p {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
    justify-content: end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
    font-weight: 700;
}

.footer-links a:hover {
    color: #ffffff;
    background: var(--primary);
}

[data-filter-hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        width: min(280px, 72vw);
    }

    .quick-search-card,
    .two-column,
    .detail-layout,
    .detail-content-grid,
    .footer-inner,
    .filter-toolbar,
    .category-overview-card,
    .ranking-columns {
        grid-template-columns: 1fr;
    }

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

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

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 640px) {
    .container,
    .header-inner,
    .mobile-panel,
    .hero-content,
    .hero-controls,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-slider,
    .hero-track,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 48px;
    }

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

    .hero-controls {
        bottom: 20px;
    }

    .quick-search-card {
        padding: 20px;
    }

    .wide-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 22px;
    }

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

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

    .category-card {
        min-height: 180px;
    }

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

    .movie-title {
        font-size: 15px;
        min-height: 43px;
    }

    .movie-desc {
        display: none;
    }

    .detail-cover {
        width: min(260px, 78vw);
    }

    .detail-hero-inner {
        padding-bottom: 86px;
    }

    .player-section {
        margin-top: -66px;
    }

    .content-panel {
        padding: 20px;
    }

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

    .ranking-item img {
        width: 72px;
    }
}
