:root {
    --sky: #0ea5e9;
    --blue: #2563eb;
    --deep: #0f172a;
    --ink: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(100deg, var(--sky), var(--blue));
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

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

.brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.28);
}

.brand-text {
    font-size: 22px;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, 0.16);
}

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

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(310px, 30vw);
    border-radius: 999px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
}

.top-search input,
.mobile-search input,
.search-row input,
.filter-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    border-radius: 999px;
    background: #ffffff;
}

.top-search input,
.mobile-search input {
    padding: 10px 14px;
}

.top-search button,
.mobile-search button,
.search-row button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.9);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(37, 99, 235, 0.96);
}

.mobile-menu-inner {
    display: grid;
    gap: 8px;
    padding: 16px 0 20px;
}

.mobile-search {
    width: 100%;
}

.category-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.08);
}

.category-strip-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px 0;
    scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
    display: none;
}

.category-strip a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.hero {
    position: relative;
    height: 610px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 45%, rgba(2, 6, 23, 0.2)), linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.05) 48%, rgba(2, 6, 23, 0.35));
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 48px;
    align-items: center;
    height: 100%;
    padding: 44px 0 78px;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 14px;
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
    border-radius: 999px;
    padding: 6px 11px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.32);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(100deg, var(--sky), var(--blue));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.btn.ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 13px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.88);
    font-weight: 800;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(10px);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(2, 6, 23, 0.72);
}

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

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

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

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

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

.hero-quick {
    position: absolute;
    right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
    bottom: 28px;
    z-index: 4;
    display: grid;
    gap: 8px;
    width: 260px;
    border-radius: 22px;
    padding: 16px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(15px);
}

.hero-quick strong {
    color: #7dd3fc;
    font-size: 14px;
}

.hero-quick a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.hero-quick span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(14, 165, 233, 0.8);
    font-size: 12px;
    font-weight: 800;
}

.section-block,
.home-search,
.category-overview,
.filters,
.rank-page-list,
.player-section,
.detail-content-grid {
    padding: 58px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 28px;
    align-items: center;
    margin-top: -48px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.search-panel h2,
.section-heading h2,
.category-overview-block h2,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    color: var(--deep);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.search-panel p,
.section-heading p,
.category-overview-block p,
.page-hero p,
.detail-article p,
.rank-card p {
    color: var(--muted);
    line-height: 1.8;
}

.search-row {
    display: flex;
    gap: 10px;
    border-radius: 999px;
    padding: 7px;
    background: #eef2ff;
}

.search-row input {
    padding: 13px 16px;
}

.search-row button {
    padding: 13px 22px;
    background: linear-gradient(100deg, var(--sky), var(--blue));
}

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

.section-heading span {
    width: 84px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--sky), var(--blue));
}

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

.listing-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 28px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #0f172a, #1e40af);
}

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

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

.card-badge,
.card-play {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
}

.card-badge {
    left: 10px;
    top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(2, 6, 23, 0.62);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.card-play {
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(100deg, var(--sky), var(--blue));
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.35);
}

.card-body {
    padding: 14px;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.card-meta a,
.card-meta span {
    color: #0284c7;
    font-weight: 700;
}

.movie-card h3 {
    margin: 8px 0 7px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card p {
    display: -webkit-box;
    margin: 0 0 10px;
    min-height: 42px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 4px 7px;
    font-size: 12px;
}

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

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

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

.category-card {
    position: relative;
    display: grid;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px;
    color: #ffffff;
    isolation: isolate;
    box-shadow: var(--shadow);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
}

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

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

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
}

.ranking-band {
    margin: 34px 0;
    padding: 58px 0;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.55), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a 54%, #075985);
}

.ranking-band .section-heading h2,
.ranking-band .section-heading p {
    color: #ffffff;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: auto 78px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.ranking-band .rank-card {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--sky), var(--blue));
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    border-radius: 13px;
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

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

.rank-card h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 850;
}

.rank-card p {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-band .rank-card p,
.ranking-band .rank-meta {
    color: rgba(255, 255, 255, 0.78);
}

.ranking-band .rank-card h3 {
    color: #ffffff;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(125, 211, 252, 0.5), transparent 35%), linear-gradient(135deg, #0f172a, #1d4ed8);
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.category-overview {
    display: grid;
    gap: 34px;
}

.category-overview-block {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    height: 42px;
    border-radius: 999px;
    padding: 0 16px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 800;
    white-space: nowrap;
}

.filters {
    display: grid;
    gap: 16px;
}

.filter-search input {
    border: 1px solid var(--line);
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.large-search input {
    min-height: 58px;
    font-size: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row span {
    color: var(--deep);
    font-weight: 900;
}

.filter-row button {
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 8px 13px;
    color: #0369a1;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-row button:hover,
.filter-row button.is-active {
    color: #ffffff;
    background: linear-gradient(100deg, var(--sky), var(--blue));
}

.ranking-hero-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 36px;
    align-items: center;
}

.ranking-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ranking-feature {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.22);
}

.ranking-feature img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.ranking-feature strong,
.ranking-feature span {
    display: block;
    padding: 10px 12px 0;
}

.ranking-feature span {
    padding-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--poster);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.55;
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.72)), linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 70%);
}

.detail-hero-inner {
    position: relative;
    padding: 36px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

.detail-head-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.42);
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.72);
}

.detail-meta span {
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-play-link {
    margin-top: 26px;
}

.player-section {
    padding-top: 42px;
    padding-bottom: 20px;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.18));
    text-align: center;
}

.player-overlay[hidden] {
    display: none;
}

.play-disc {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(100deg, var(--sky), var(--blue));
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.38);
    font-size: 34px;
}

.player-overlay strong {
    max-width: min(600px, 80%);
    font-size: clamp(20px, 3vw, 36px);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
}

.detail-article,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.detail-article h2 + p,
.detail-article p + h2 {
    margin-top: 18px;
}

.detail-article p {
    margin: 12px 0 0;
    color: #334155;
    font-size: 16px;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 122px;
}

.detail-side dl {
    display: grid;
    gap: 13px;
    margin: 18px 0 0;
}

.detail-side dl div {
    display: grid;
    gap: 5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
}

.detail-side dd {
    margin: 0;
    color: var(--deep);
    font-weight: 800;
}

.related-section {
    padding-top: 20px;
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 16px;
}

.site-footer p {
    max-width: 430px;
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 18px 16px;
    color: #94a3b8;
    text-align: center;
}

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

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

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

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

    .hero-quick {
        display: none;
    }

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

@media (max-width: 860px) {
    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        display: none;
    }

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

    .hero {
        height: auto;
        min-height: 680px;
    }

    .hero-slide {
        position: absolute;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 54px 0 92px;
    }

    .hero-card {
        width: min(210px, 48vw);
        transform: none;
    }

    .search-panel,
    .ranking-layout,
    .ranking-hero-inner,
    .detail-head-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-rank-list,
    .rank-page-list {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(240px, 72vw);
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        min-height: 620px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

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

    .hero-control {
        display: none;
    }

    .section-block,
    .home-search,
    .category-overview,
    .filters,
    .rank-page-list,
    .player-section,
    .detail-content-grid {
        padding: 36px 0;
    }

    .search-panel {
        margin-top: -30px;
        padding: 20px;
    }

    .search-row {
        display: grid;
        border-radius: 20px;
    }

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

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

    .ranking-features {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
        overflow-x: auto;
    }

    .rank-card {
        grid-template-columns: auto 64px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

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

    .detail-article,
    .detail-side,
    .category-overview-block {
        padding: 20px;
    }

    .play-disc {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
