:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--gray-900);
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.32);
}

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

.nav-link,
.mobile-link {
    padding: 10px 12px;
    color: var(--gray-600);
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--teal-dark);
    background: rgba(20, 184, 166, 0.1);
}

.header-search {
    position: relative;
    margin-left: auto;
    min-width: 280px;
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    overflow: visible;
}

.header-search input,
.mobile-search input,
.quick-search-form input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-800);
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.quick-search-form button {
    border: 0;
    color: var(--white);
    background: var(--teal);
    border-radius: 999px;
    padding: 9px 16px;
    margin-right: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.quick-search-form button:hover {
    background: var(--teal-dark);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(440px, 86vw);
    max-height: 420px;
    overflow: auto;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 10px;
    display: none;
}

.search-panel.open {
    display: block;
}

.search-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.search-panel a:hover {
    background: var(--gray-100);
}

.search-panel strong {
    display: block;
    color: var(--gray-900);
}

.search-panel span {
    color: var(--gray-500);
    font-size: 13px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--gray-900);
    background: var(--gray-100);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 12px 24px 18px;
    background: var(--white);
}

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

.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--gray-50);
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
}

main {
    min-height: 60vh;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(20, 184, 166, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.76) 46%, rgba(15, 23, 42, 0.36) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, transparent 48%);
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1240px;
    margin: 0 auto;
    padding: 88px 24px 110px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--teal);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 14px 0 6px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    max-width: 860px;
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 40px);
    color: #ccfbf1;
}

.hero-copy p {
    max-width: 740px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(16px, 1.4vw, 21px);
}

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

.hero-tags span,
.detail-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: var(--white);
    background: rgba(13, 148, 136, 0.86);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.secondary-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    padding: 13px 24px;
    color: var(--white);
    background: var(--teal);
    box-shadow: 0 18px 36px rgba(13, 148, 136, 0.28);
}

.primary-button:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
}

.secondary-button {
    padding: 12px 22px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.secondary-button.light {
    color: var(--gray-900);
    border-color: var(--gray-200);
    background: var(--white);
}

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

.hero-poster {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 38px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--gray-800);
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(13, 148, 136, 0.88);
    font-size: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--white);
    font-size: 26px;
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
    width: 32px;
    background: var(--teal);
}

.quick-search,
.content-section,
.category-section,
.ranking-section,
.page-main,
.spotlight-row {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-search {
    padding-top: 46px;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 26px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--gray-200);
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-article h1,
.detail-article h2,
.side-card h2,
.footer-links h2 {
    margin: 0;
    line-height: 1.2;
}

.quick-search-card p {
    margin: 8px 0 0;
    color: var(--gray-600);
}

.quick-search-form {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.quick-search-form input {
    flex: 1;
    padding: 15px 18px;
}

.content-section,
.category-section {
    padding-top: 62px;
}

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

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

.section-more,
.text-link {
    color: var(--teal-dark);
    font-weight: 800;
}

.section-more:hover,
.text-link:hover {
    color: var(--cyan);
}

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

.movie-card {
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-600));
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
    filter: brightness(0.78);
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(13, 148, 136, 0.92);
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    color: var(--white);
    font-size: 12px;
    line-height: 1;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.78);
}

.badge-left {
    left: 10px;
}

.badge-right {
    right: 10px;
    background: rgba(13, 148, 136, 0.9);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--teal-dark);
}

.movie-info p {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--gray-500);
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    border-radius: 20px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    background: var(--gray-900);
    box-shadow: var(--soft-shadow);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.1));
}

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

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-weight: 900;
    font-size: 22px;
}

.category-tile p {
    margin: 8px 0 0;
    color: #e2e8f0;
    font-size: 14px;
}

.ranking-section {
    padding-top: 74px;
    padding-bottom: 78px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.ranking-copy {
    position: sticky;
    top: 110px;
    padding: 28px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), #134e4a);
    box-shadow: var(--shadow);
}

.ranking-copy h2 {
    font-size: 38px;
    line-height: 1.1;
    margin: 10px 0 12px;
}

.ranking-copy p {
    color: #dbeafe;
}

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

.ranking-item a {
    display: grid;
    grid-template-columns: 46px 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-number {
    color: var(--teal-dark);
    font-weight: 900;
    font-size: 20px;
}

.ranking-item img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--gray-200);
}

.rank-content strong,
.rank-content em {
    display: block;
}

.rank-content strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    padding-top: 32px;
    padding-bottom: 74px;
}

.page-hero {
    border-radius: 28px;
    padding: 54px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.34), transparent 30%),
        linear-gradient(135deg, var(--gray-900), #155e75 55%, #134e4a);
    box-shadow: var(--shadow);
}

.compact-hero {
    margin-bottom: 30px;
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(32px, 4vw, 54px);
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

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

.catalog-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--soft-shadow);
}

.catalog-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 160px;
    overflow: hidden;
    background: var(--gray-800);
}

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

.catalog-body {
    padding: 20px;
}

.catalog-body h2 {
    margin: 0 0 8px;
}

.catalog-body p {
    margin: 0 0 14px;
    color: var(--gray-600);
}

.spotlight-row {
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.spotlight-card {
    position: relative;
    min-height: 210px;
    padding: 22px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    background: var(--gray-900);
}

.spotlight-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), transparent);
}

.spotlight-card span,
.spotlight-card p {
    position: relative;
    z-index: 1;
}

.spotlight-card span {
    font-size: 22px;
    font-weight: 900;
}

.spotlight-card p {
    margin: 8px 0 0;
    color: #e2e8f0;
}

.filter-section {
    padding-top: 34px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    padding: 0 14px;
}

.filter-bar input {
    flex: 1 1 260px;
}

.empty-state {
    padding: 24px;
    border-radius: 16px;
    background: var(--white);
    color: var(--gray-600);
    text-align: center;
}

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

.rank-card-link {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-card img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--gray-200);
}

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-weight: 900;
}

.rank-card-body strong,
.rank-card-body em,
.rank-card-body small {
    display: block;
}

.rank-card-body strong {
    font-size: 18px;
}

.rank-card-body em {
    color: var(--gray-500);
    font-style: normal;
    margin: 4px 0;
}

.rank-card-body small {
    color: var(--gray-600);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--gray-500);
    margin-bottom: 20px;
}

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

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

.media-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(13, 148, 136, 0.92);
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-shell.playing .video-play-button {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.82);
}

.video-toolbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-shell:hover .video-toolbar,
.video-shell:focus-within .video-toolbar {
    opacity: 1;
}

.video-toolbar button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    padding: 8px 13px;
    cursor: pointer;
}

.video-toolbar button:hover {
    background: rgba(20, 184, 166, 0.86);
}

.detail-article {
    margin-top: 26px;
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--soft-shadow);
}

.detail-article h1 {
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.lead-text {
    margin: 14px 0 18px;
    color: var(--gray-700);
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 16px;
}

.detail-article h2 {
    margin-top: 28px;
    font-size: 24px;
}

.detail-article p {
    color: var(--gray-700);
}

.detail-side {
    position: sticky;
    top: 96px;
}

.detail-poster,
.side-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--soft-shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--gray-200);
}

.side-card {
    padding: 20px;
    margin-top: 18px;
}

.side-card h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.side-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 12px;
}

.side-card dt {
    color: var(--gray-500);
}

.side-card dd {
    margin: 0;
    color: var(--gray-800);
}

.side-card .text-link {
    display: flex;
    justify-content: flex-start;
    padding: 6px 0;
}

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

.site-footer {
    margin-top: 54px;
    color: #cbd5e1;
    background: var(--gray-900);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: var(--white);
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
}

.footer-links h2 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 24px;
    text-align: center;
    color: #64748b;
}

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

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

    .mobile-panel .mobile-link {
        display: inline-flex;
        margin: 4px 4px 4px 0;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

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

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

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

@media (max-width: 780px) {
    .header-inner,
    .quick-search,
    .content-section,
    .category-section,
    .ranking-section,
    .page-main,
    .spotlight-row {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 74px 16px 104px;
    }

    .hero-poster {
        max-width: 210px;
        transform: none;
    }

    .quick-search-card,
    .footer-inner,
    .spotlight-row,
    .rank-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 34px 24px;
    }

    .detail-article {
        padding: 22px;
    }

    .rank-card-link {
        grid-template-columns: 44px 76px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-card img {
        width: 76px;
        height: 104px;
    }
}

@media (max-width: 520px) {
    .site-logo {
        font-size: 18px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .movie-grid,
    .category-grid,
    .catalog-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .movie-card {
        max-width: 360px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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