* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #e5e7eb;
    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;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    box-shadow: 0 18px 60px rgba(6, 182, 212, 0.12);
    backdrop-filter: blur(18px);
}

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

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

.brand.compact {
    min-width: 0;
}

.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(14, 165, 233, 0.75));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.42);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(7deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: #ffffff;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-text em {
    color: rgba(34, 211, 238, 0.82);
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-weight: 600;
    white-space: nowrap;
}

.desktop-nav a,
.footer-links a,
.mobile-menu a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-menu a:hover {
    color: #22d3ee;
}

.nav-search {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}

.nav-search input,
.mobile-menu input,
.filter-bar input,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    height: 40px;
    padding: 0 44px 0 18px;
}

.nav-search input:focus,
.mobile-menu input:focus,
.filter-bar input:focus,
.search-panel input:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 42, 0.92);
}

.nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
}

.nav-search button:hover {
    color: #22d3ee;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 22px;
    border-top: 1px solid rgba(51, 65, 85, 0.72);
}

.mobile-menu.is-open {
    display: grid;
    gap: 14px;
}

.mobile-menu form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.mobile-menu input {
    height: 42px;
    padding: 0 16px;
}

.mobile-menu button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    background: #06b6d4;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu a {
    color: #cbd5e1;
    font-weight: 650;
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade,
.hero-side-shade,
.detail-backdrop-shade {
    position: absolute;
    inset: 0;
}

.hero-shade {
    background: linear-gradient(to top, #020617 0%, rgba(15, 23, 42, 0.74) 42%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-side-shade {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.52) 46%, rgba(2, 6, 23, 0.64) 100%);
}

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

.hero-labels,
.hero-meta,
.detail-tags,
.breadcrumb,
.movie-card-badges,
.movie-card-meta,
.movie-card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: #06b6d4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.hero-labels strong,
.hero-labels em,
.hero-meta span,
.detail-tags span {
    color: #cbd5e1;
    font-size: 14px;
    font-style: normal;
    font-weight: 650;
}

.hero-content h1,
.hero-content h2 {
    width: min(720px, 100%);
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(44px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero-content p {
    width: min(720px, 100%);
    margin: 18px 0 0;
    color: #d1d5db;
    font-size: clamp(18px, 2vw, 22px);
}

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-tags span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-link,
.filter-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    background: #06b6d4;
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(6, 182, 212, 0.24);
}

.primary-button:hover,
.search-panel button:hover,
.mobile-menu button:hover {
    background: #22d3ee;
    transform: translateY(-1px);
}

.primary-button.full {
    width: 100%;
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
}

.ghost-button:hover,
.filter-bar a:hover {
    border-color: rgba(34, 211, 238, 0.72);
    color: #22d3ee;
}

.hero-dots {
    position: absolute;
    right: max(26px, calc((100% - 1180px) / 2));
    bottom: 38px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #06b6d4;
}

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

.first-section {
    padding-top: 28px;
}

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

.section-kicker,
.page-hero > span,
.category-overview-body span,
.ranking-head span {
    color: #22d3ee;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.section-head h2,
.ranking-head h2,
.category-strip-head h3,
.page-hero h1,
.detail-hero h1,
.detail-article h2,
.detail-side-card h2,
.footer-links h2 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.section-head h2 {
    margin-top: 8px;
    font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.page-hero p,
.category-strip-head p,
.category-overview-body p,
.footer-brand p,
.detail-article p,
.detail-side-card p {
    color: #94a3b8;
}

.section-head p {
    margin: 7px 0 0;
    max-width: 680px;
}

.section-link,
.filter-bar a {
    min-height: 42px;
    padding: 0 16px;
    color: #cbd5e1;
    border: 1px solid rgba(51, 65, 85, 0.92);
    background: rgba(15, 23, 42, 0.58);
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.68);
    box-shadow: 0 26px 70px rgba(6, 182, 212, 0.13);
}

.movie-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card-gradient {
    opacity: 0.48;
}

.movie-card-badges,
.movie-card-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    justify-content: space-between;
    z-index: 2;
}

.movie-card-badges {
    top: 12px;
}

.movie-card-meta {
    bottom: 12px;
}

.movie-card-badges span,
.movie-card-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.movie-card-badges span:first-child {
    background: rgba(6, 182, 212, 0.88);
}

.movie-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-card-play {
    opacity: 1;
    transform: scale(1);
}

.movie-card-play span {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.92);
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.3);
}

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

.movie-card-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body h3 {
    color: #22d3ee;
}

.movie-card-body p {
    min-height: 45px;
    margin: 8px 0 12px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-foot {
    justify-content: space-between;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

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

.movie-card.wide .movie-card-cover {
    aspect-ratio: 21 / 9;
}

.two-column-section,
.ranking-layout,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 104px;
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92));
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ranking-head h2 {
    font-size: 26px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 64px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(51, 65, 85, 0.52);
    background: rgba(15, 23, 42, 0.62);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(15, 23, 42, 0.92);
}

.compact-card img {
    width: 64px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
}

.compact-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-number {
    color: #22d3ee;
    font-weight: 900;
    font-size: 18px;
}

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

.category-card,
.category-overview-card,
.category-strip {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(51, 65, 85, 0.75);
    background: rgba(15, 23, 42, 0.72);
}

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

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

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.24));
}

.category-card div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.category-card span,
.category-overview-body span {
    display: inline-flex;
    margin-bottom: 8px;
}

.category-card h3,
.category-overview-body h2 {
    margin: 0 0 8px;
    color: #ffffff;
}

.category-card p,
.category-overview-body p {
    margin: 0;
    font-size: 14px;
}

.stacked-section {
    display: grid;
    gap: 30px;
}

.category-strip {
    padding: 24px;
}

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

.category-strip-head a {
    color: #22d3ee;
    font-weight: 800;
}

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

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 42px;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    width: 320px;
    height: 220px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.13);
    filter: blur(48px);
    pointer-events: none;
}

.page-hero h1 {
    position: relative;
    max-width: 820px;
    margin-top: 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    position: relative;
    max-width: 720px;
    margin: 16px 0 0;
    font-size: 18px;
}

.breadcrumb {
    position: relative;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #cbd5e1;
}

.breadcrumb a:hover {
    color: #22d3ee;
}

.filter-bar,
.search-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
}

.filter-bar input,
.search-panel input {
    height: 48px;
    padding: 0 18px;
}

.filter-bar a {
    flex-shrink: 0;
    height: 48px;
}

.search-panel button {
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px;
}

.category-overview-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.58);
}

.category-overview-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px;
}

.category-overview-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.category-overview-body {
    padding: 16px 18px 20px;
}

.ranking-layout {
    grid-template-columns: 360px minmax(0, 1fr);
}

.ranking-page-panel {
    position: sticky;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: end;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.03);
}

.detail-backdrop-shade {
    background: linear-gradient(to top, #020617, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.36));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.detail-hero h1 {
    max-width: 880px;
    margin-top: 18px;
    font-size: clamp(34px, 5.5vw, 62px);
    line-height: 1.08;
}

.detail-hero p {
    max-width: 760px;
    color: #d1d5db;
    font-size: 19px;
}

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

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
}

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

.player-card,
.detail-article,
.detail-side-card {
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: #000000;
    cursor: pointer;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(0, 0, 0, 0.62));
}

.player-button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.92);
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    padding-left: 6px;
    box-shadow: 0 20px 70px rgba(6, 182, 212, 0.42);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-button {
    transform: scale(1.08);
    background: #22d3ee;
}

.detail-article {
    padding: 28px;
}

.detail-article h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
}

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

.detail-article p {
    margin: 0;
    font-size: 17px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #a5f3fc;
    font-weight: 700;
    font-size: 13px;
}

.detail-side {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 16px;
}

.detail-side > img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.detail-side-card {
    padding: 18px;
}

.detail-side-card h2 {
    font-size: 22px;
}

.detail-side-card p {
    margin: 8px 0;
    font-size: 14px;
}

.detail-side-card .primary-button {
    margin-top: 12px;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
    background: #020617;
}

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

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    font-size: 14px;
}

.footer-links h2 {
    font-size: 17px;
    margin-bottom: 14px;
}

.footer-links div {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

[hidden],
.is-filtered-out {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
        font-size: 14px;
    }

    .nav-search {
        width: 220px;
    }

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

    .two-column-section,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }

    .detail-side {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

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

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

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

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(36px, 12vw, 56px);
    }

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

    .section-head,
    .category-strip-head,
    .filter-bar,
    .search-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .detail-side > img {
        max-width: 260px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        height: 72px;
    }

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

    .brand-text em {
        font-size: 11px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        flex: 1 1 160px;
    }

    .content-section,
    .page-hero,
    .detail-hero-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .movie-grid,
    .movie-grid.small-grid,
    .movie-grid.compact-grid,
    .category-card-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.wide .movie-card-cover {
        aspect-ratio: 16 / 9;
    }

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

    .page-hero {
        padding-top: 52px;
    }

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

    .detail-article {
        padding: 22px;
    }

    .player-button {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
