:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.64);
    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(34, 211, 238, 0.38);
    --text: #ffffff;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    --radius: 1.25rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.15), transparent 26rem),
        radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.22), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.container {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-mark.small {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
}

.brand-mark span {
    width: 0;
    height: 0;
    margin-left: 0.15rem;
    border-top: 0.42rem solid transparent;
    border-bottom: 0.42rem solid transparent;
    border-left: 0.68rem solid white;
}

.brand-text,
.footer-logo strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #67e8f9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    color: var(--muted);
    background: transparent;
    border: 0;
}

.menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav {
    display: grid;
    gap: 0.25rem;
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
    padding: 0.8rem 0 1rem;
}

.mobile-link {
    padding: 0.75rem 0;
    color: var(--muted);
}

.hero-section {
    padding: 2rem 0 4rem;
}

.hero-title-row {
    margin-bottom: 1.25rem;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-title h2,
.page-hero h1,
.detail-main h1 {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title h2 {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.section-eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 0.6rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.65);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.section-more:hover {
    color: var(--cyan);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.hero-frame {
    position: relative;
    min-height: 31rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.7));
    box-shadow: var(--shadow);
}

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

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

.hero-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 31rem;
    overflow: hidden;
}

.hero-link img {
    width: 100%;
    height: 100%;
    min-height: 31rem;
    object-fit: cover;
    opacity: 0.86;
    transition: transform 0.8s ease;
}

.hero-link:hover img {
    transform: scale(1.06);
}

.hero-shade,
.detail-bg::after,
.poster-gradient,
.category-card-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent 58%);
}

.hero-content {
    position: absolute;
    left: clamp(1.25rem, 5vw, 4.5rem);
    bottom: clamp(1.5rem, 6vw, 4.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 42rem;
    gap: 0.85rem;
}

.hero-kicker {
    display: inline-flex;
    padding: 0.4rem 0.78rem;
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(8, 145, 178, 0.42);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    max-width: 16em;
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc {
    display: -webkit-box;
    max-width: 44rem;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-tags,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags span,
.detail-meta span,
.tag-list span,
.region-pill,
.score-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
    padding: 0.48rem 0.7rem;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    font-weight: 800;
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(8, 145, 178, 0.88);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
    left: 1rem;
}

.hero-arrow.next {
    right: 1rem;
}

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

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

.hero-dot.is-active {
    width: 2rem;
    background: var(--cyan);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin: 1rem auto 0;
    max-width: 46rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 2.65rem;
    color: white;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    outline: none;
}

.hero-search input {
    border: 0;
    padding: 0 1rem;
    background: transparent;
}

.hero-search button {
    min-height: 2.65rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 800;
}

.hero-category-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-category-links a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid var(--border);
}

.content-section {
    padding: 2.5rem 0;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.2rem;
}

.catalog-grid {
    margin-top: 1.25rem;
}

.movie-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
}

.movie-card {
    min-width: 0;
    color: inherit;
}

.movie-row .movie-card {
    flex: 0 0 12rem;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 30% 10%, rgba(34, 211, 238, 0.22), transparent 38%),
        linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-gradient {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.region-pill,
.score-pill {
    position: absolute;
    top: 0.55rem;
    z-index: 2;
    padding: 0.38rem 0.52rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.region-pill {
    left: 0.55rem;
    max-width: calc(100% - 4rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-pill {
    right: 0.55rem;
    color: #67e8f9;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    padding-left: 0.15rem;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-info {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.72rem;
}

.card-info strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.75rem;
    color: white;
    font-weight: 700;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-info strong {
    color: var(--cyan);
}

.card-meta,
.card-line {
    color: var(--subtle);
    font-size: 0.86rem;
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact .card-line {
    display: none;
}

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

.category-card,
.overview-card,
.detail-side,
.detail-article,
.ranking-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.category-card {
    position: relative;
    min-height: 12rem;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.5s ease;
}

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

.category-card-shade {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.26));
}

.category-card-body {
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    display: grid;
    gap: 0.35rem;
}

.category-card-body strong,
.overview-card h2,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    color: white;
    font-size: 1.15rem;
}

.category-card-body span,
.overview-card p,
.footer-brand p {
    color: var(--muted);
    font-size: 0.92rem;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-list li a:hover,
.ranking-link:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.rank-num {
    color: var(--cyan);
    font-weight: 900;
    font-size: 1.05rem;
}

.rank-title {
    overflow: hidden;
    color: white;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--subtle);
    font-size: 0.86rem;
}

.rank-score {
    color: #67e8f9;
    font-weight: 800;
}

.page-hero {
    position: relative;
    padding: 4rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0)),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 22rem);
}

.page-hero.small h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.page-hero p {
    max-width: 52rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.overview-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.overview-links a {
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(30, 41, 59, 0.72);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(14rem, 2fr) repeat(4, minmax(8rem, 1fr));
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
    display: grid;
    gap: 0.35rem;
    color: var(--subtle);
    font-size: 0.8rem;
}

.filter-panel input,
.filter-panel select {
    padding: 0 0.8rem;
    color: white;
}

.filter-panel option {
    color: #0f172a;
    background: white;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(6px);
    transform: scale(1.04);
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-bg::after {
    content: "";
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.75), var(--bg));
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 2rem;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 25% 10%, rgba(34, 211, 238, 0.25), transparent 38%),
        linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--subtle);
    font-size: 0.9rem;
}

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

.detail-main h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.detail-one-line {
    max-width: 54rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.watch-section {
    padding: 1rem 0 2.5rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-strong);
    border-radius: 1.4rem;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 0.55rem;
    padding: 1rem;
    color: white;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.25), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
    text-align: center;
}

.player-mask.is-hidden {
    display: none;
}

.play-large {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    padding-left: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.36);
    font-size: 1.8rem;
}

.player-mask strong {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.player-mask em {
    color: var(--muted);
    font-style: normal;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.25rem;
    align-items: start;
}

.detail-article,
.detail-side {
    padding: 1.35rem;
}

.detail-article p {
    margin: 0.85rem 0 1.25rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.8rem 1rem;
    margin: 1rem 0 0;
}

.detail-side dt {
    color: var(--subtle);
}

.detail-side dd {
    margin: 0;
    color: var(--text);
}

.ranking-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.ranking-card {
    overflow: hidden;
}

.ranking-link {
    display: grid;
    grid-template-columns: 4.5rem 4.5rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-num.big {
    font-size: 1.4rem;
    text-align: center;
}

.ranking-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.ranking-info strong {
    overflow: hidden;
    color: white;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info span,
.ranking-info em {
    overflow: hidden;
    color: var(--subtle);
    font-size: 0.9rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-score {
    color: #67e8f9;
    font-size: 1.2rem;
    font-weight: 900;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.site-footer h2 {
    margin: 0 0 0.9rem;
    color: white;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--subtle);
}

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

.footer-bottom {
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--subtle);
    text-align: center;
    font-size: 0.85rem;
}

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

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

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

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

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

    .menu-toggle {
        display: flex;
    }

    .hero-frame,
    .hero-link,
    .hero-link img {
        min-height: 26rem;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.28));
    }

    .hero-content {
        right: 1.25rem;
        left: 1.25rem;
        bottom: 2.8rem;
    }

    .hero-arrow {
        display: none;
    }

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

    .rank-list,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        align-items: start;
    }

    .detail-poster {
        width: min(15rem, 70vw);
    }

    .ranking-link {
        grid-template-columns: 3rem 3.8rem 1fr;
    }

    .ranking-score {
        display: none;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 1rem, 80rem);
    }

    .section-title {
        align-items: start;
        flex-direction: column;
    }

    .hero-section {
        padding-top: 1rem;
    }

    .hero-frame,
    .hero-link,
    .hero-link img {
        min-height: 24rem;
        border-radius: 1rem;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.3rem;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 1rem;
    }

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

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

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

    .rank-list li a {
        grid-template-columns: auto 1fr;
    }

    .rank-score {
        display: none;
    }

    .filter-search {
        grid-column: auto;
    }

    .detail-main h1 {
        font-size: 2rem;
    }

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