:root {
    color-scheme: dark;
    --bg: #030712;
    --panel: rgba(17, 24, 39, 0.72);
    --panel-solid: #111827;
    --line: rgba(34, 211, 238, 0.24);
    --line-soft: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --purple: #a78bfa;
    --yellow: #facc15;
    --radius: 18px;
    --shadow: 0 22px 60px rgba(8, 47, 73, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 82% 18%, rgba(244, 114, 182, 0.16), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #030712 46%, #020617 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.36);
}

.brand-text,
.footer-brand {
    font-size: 24px;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.desktop-nav a,
.mobile-panel a,
.footer-links a {
    color: #d1d5db;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--cyan);
}

.header-search,
.mobile-search,
.quick-search form,
.page-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.quick-search input,
.page-search input {
    width: 230px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    outline: none;
    color: var(--text);
    background: rgba(17, 24, 39, 0.78);
    padding: 11px 16px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.page-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.quick-search button,
.page-search button,
.primary-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    color: white;
    background: linear-gradient(90deg, #06b6d4, #ec4899);
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.quick-search button:hover,
.page-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.30);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(17, 24, 39, 0.70);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.55);
}

main,
.page-main,
.detail-main {
    width: 100%;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #030712;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.70;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.78) 42%, rgba(3, 7, 18, 0.24) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.90) 0%, rgba(3, 7, 18, 0.06) 42%);
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 92vw);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.92), rgba(236, 72, 153, 0.92));
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.20);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
}

.hero p,
.page-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.detail-meta span {
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    padding: 7px 12px;
    color: #bae6fd;
    background: rgba(8, 47, 73, 0.40);
}

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

.ghost-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 11px 18px;
    color: #e5e7eb;
    background: rgba(17, 24, 39, 0.56);
    transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(6, 182, 212, 0.46);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 36px;
    background: var(--cyan);
}

.quick-search,
.content-section,
.page-hero,
.filter-panel,
.ranking-list,
.breadcrumb,
.detail-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-search {
    margin-top: -46px;
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2,
.quick-search p {
    margin: 0;
}

.quick-search h2 {
    font-size: 28px;
}

.quick-search p {
    margin-top: 8px;
    color: var(--muted);
}

.quick-search input,
.page-search input {
    width: min(420px, 62vw);
}

.content-section {
    padding-top: 54px;
    padding-bottom: 12px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
}

.section-heading p {
    margin: 9px 0 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-tile {
    min-height: 178px;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.11), rgba(236, 72, 153, 0.09)),
        rgba(17, 24, 39, 0.66);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover,
.category-card-large:hover,
.ranking-item:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.48);
    box-shadow: 0 20px 46px rgba(8, 47, 73, 0.30);
}

.category-tile span,
.category-card-large span {
    color: var(--cyan);
    font-weight: 800;
}

.category-tile strong {
    display: block;
    margin-top: 16px;
    font-size: 23px;
}

.category-tile em {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

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

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

.movie-card,
.rank-card,
.ranking-item,
.detail-card,
.side-box,
.filter-panel,
.category-card-large {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card {
    overflow: hidden;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.20), transparent 45%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
}

.poster img,
.rank-poster img,
.ranking-cover img,
.side-cover img,
.category-cover-set img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.86), transparent 56%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 9px;
    color: #e5e7eb;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.78);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3,
.rank-card h3,
.ranking-copy h2,
.detail-card h1,
.side-box h2 {
    margin: 0;
}

.movie-card h3 {
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.ranking-copy h2 a:hover {
    color: var(--cyan);
}

.meta-line {
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: rgba(148, 163, 184, 0.55);
}

.movie-card p,
.rank-card p,
.ranking-copy p,
.detail-card p,
.side-box p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-card p {
    min-height: 72px;
    margin: 0 0 14px;
    font-size: 14px;
}

.card-compact .movie-card-body {
    padding: 14px;
}

.card-compact h3 {
    font-size: 17px;
}

.card-compact p {
    min-height: 64px;
    font-size: 13px;
}

.tag-row {
    gap: 7px;
}

.tag-row span {
    padding: 5px 9px;
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.28);
    background: rgba(88, 28, 135, 0.24);
    font-size: 12px;
}

.rank-section {
    display: block;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 16px;
    overflow: hidden;
}

.rank-poster {
    display: block;
    min-height: 154px;
    background: rgba(15, 23, 42, 0.86);
}

.rank-info {
    padding: 16px 16px 16px 0;
}

.rank-meta {
    color: #67e8f9 !important;
    margin: 8px 0;
    font-size: 13px;
}

.page-main,
.detail-main {
    padding-top: 92px;
}

.page-hero {
    padding-top: 58px;
    padding-bottom: 46px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.slim-hero,
.category-hero,
.search-hero {
    position: relative;
}

.slim-hero::before,
.category-hero::before,
.search-hero::before {
    content: "";
    position: absolute;
    inset: 18px 24px auto;
    height: 180px;
    z-index: -1;
    border-radius: 32px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(236, 72, 153, 0.10));
    filter: blur(2px);
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    padding: 16px;
    overflow: hidden;
}

.category-cover-set {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 105px);
    gap: 6px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.78);
}

.category-card-large h2 {
    margin: 12px 0 8px;
    font-size: 28px;
}

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

.filter-panel {
    margin-top: 12px;
    margin-bottom: 6px;
    padding-top: 22px;
    padding-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.filter-panel strong {
    display: block;
    margin-bottom: 12px;
}

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

.filter-buttons button {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    padding: 9px 14px;
    color: #d1d5db;
    background: rgba(30, 41, 59, 0.74);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: white;
    border-color: rgba(34, 211, 238, 0.56);
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.86), rgba(236, 72, 153, 0.76));
}

.ranking-list {
    display: grid;
    gap: 18px;
    padding-top: 42px;
    padding-bottom: 30px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 76px 150px 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px;
}

.ranking-num {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    font-weight: 900;
    font-size: 22px;
}

.ranking-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
}

.ranking-copy h2 {
    font-size: 25px;
}

.breadcrumb {
    padding-top: 22px;
    padding-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.detail-primary {
    display: grid;
    gap: 20px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 22px;
    background: #020617;
    box-shadow: 0 28px 72px rgba(8, 47, 73, 0.36);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    color: white;
    background:
        radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.76));
    cursor: pointer;
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.34);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 20px;
}

.player-shell.has-played .player-overlay {
    display: none;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.detail-meta {
    margin: 18px 0;
}

.detail-tags {
    margin: 0 0 22px;
}

.detail-tags a:hover {
    color: white;
    border-color: var(--pink);
}

.lead-text {
    color: #e0f2fe !important;
    font-size: 18px;
}

.detail-card h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 24px;
}

.detail-card p {
    font-size: 16px;
    text-align: justify;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 92px;
}

.side-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(34, 211, 238, 0.20);
}

.side-box {
    padding: 18px;
}

.slim-list {
    grid-template-columns: 1fr;
}

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

.slim-list .rank-poster {
    min-height: 118px;
}

.slim-list .rank-info {
    padding: 12px 12px 12px 0;
}

.slim-list .rank-info h3 {
    font-size: 16px;
}

.slim-list .rank-info p {
    font-size: 13px;
    margin: 7px 0 0;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(3, 7, 18, 0.74);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 24px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 34px;
}

.footer-inner p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 10px;
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }
}

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

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

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

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search {
        grid-template-columns: 1fr;
    }

    .quick-search form,
    .page-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .quick-search input,
    .page-search input,
    .quick-search button,
    .page-search button {
        width: 100%;
    }

    .category-list-large,
    .rank-list,
    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .ranking-item {
        grid-template-columns: 54px 118px 1fr;
        gap: 14px;
    }

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

@media (max-width: 680px) {
    .header-inner {
        padding: 0 16px;
    }

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

    .hero h1,
    .page-hero h1 {
        font-size: 38px;
    }

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

    .content-section,
    .quick-search,
    .page-hero,
    .filter-panel,
    .ranking-list,
    .breadcrumb,
    .detail-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: auto;
        font-size: 12px;
    }

    .ranking-item {
        grid-template-columns: 44px 92px 1fr;
        padding: 12px;
    }

    .ranking-num {
        width: 42px;
        height: 42px;
        font-size: 16px;
        border-radius: 12px;
    }

    .ranking-copy h2 {
        font-size: 18px;
    }

    .ranking-copy p {
        display: none;
    }

    .detail-card {
        padding: 20px;
    }

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

    .side-cover {
        max-width: 260px;
    }

    .footer-inner {
        padding: 30px 16px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-tags span,
    .detail-tags a,
    .detail-meta span {
        font-size: 12px;
    }
}
