:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 28px 65px rgba(15, 23, 42, 0.18);
    --radius-xl: 20px;
    --radius-2xl: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, #eff6ff 0%, #ecfeff 38%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
    position: relative;
    z-index: 2;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-copy strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-copy small,
.footer-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: width 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: #ffffff;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    width: 100%;
}

.header-search,
.mobile-search,
.big-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search input {
    width: 250px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    outline: none;
    padding: 0 46px 0 16px;
    backdrop-filter: blur(10px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    padding: 10px 12px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 22px;
    position: relative;
    z-index: 2;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel nav a {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px 0 0 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 0 14px;
    outline: none;
}

.mobile-search button {
    height: 42px;
    border: 0;
    border-radius: 0 14px 14px 0;
    color: var(--blue);
    background: #ffffff;
    padding: 0 16px;
    font-weight: 700;
}

.header-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 22px;
    fill: #eff6ff;
    pointer-events: none;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 35%, rgba(6, 182, 212, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 740px;
    color: #ffffff;
}

.hero-badge,
.movie-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.7;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.36);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
}

.ghost-button.light {
    color: var(--blue);
    border-color: rgba(37, 99, 235, 0.24);
    background: #ffffff;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

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

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

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

.section {
    position: relative;
    padding: 72px 0;
}

.soft-section {
    background: rgba(255, 255, 255, 0.56);
}

.wave-section::before,
.page-hero .wave-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12), transparent 26%),
        radial-gradient(circle at 90% 40%, rgba(6, 182, 212, 0.12), transparent 28%);
    pointer-events: none;
}

.gradient-section {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.gradient-section .section-title h2 {
    color: #ffffff;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px;
}

.section-title h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-icon,
.page-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

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

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

.all-grid {
    align-items: stretch;
}

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

.movie-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover,
.rank-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0ea5e9, #2563eb 48%, #14b8a6);
}

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

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

.movie-card a:hover .movie-cover img,
.rank-row a:hover .rank-thumb img {
    transform: scale(1.08);
}

.movie-cover::after,
.rank-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
    transition: opacity 0.2s ease;
}

.movie-card a:hover .movie-cover::after,
.rank-row a:hover .rank-thumb::after {
    opacity: 1;
}

.cover-fallback::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    line-height: 1.35;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #06b6d4, #2563eb 52%, #14b8a6);
}

.movie-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.movie-card-body h3 {
    min-height: 48px;
    margin: 12px 0 8px;
    color: var(--gray-800);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: auto;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta-line span:not(:last-child)::after {
    content: "";
}

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

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

.rank-row a {
    display: grid;
    grid-template-columns: 70px 1fr 150px;
    gap: 18px;
    align-items: center;
    min-height: 116px;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-row a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.rank-copy h3 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-copy p {
    margin: 0 0 8px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-thumb {
    width: 150px;
    height: 86px;
    border-radius: 16px;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-snap-type: x proximity;
}

.rail-item {
    scroll-snap-align: start;
}

.editor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.movie-card-large a {
    border-radius: var(--radius-2xl);
}

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

.movie-card-large .movie-card-body h3 {
    min-height: auto;
    font-size: 24px;
}

.movie-card-wide a {
    flex-direction: row;
    min-height: 154px;
}

.movie-card-wide .movie-cover {
    width: 42%;
    min-width: 160px;
    aspect-ratio: auto;
}

.movie-card-wide .movie-card-body h3 {
    min-height: auto;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card span {
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
}

.category-card strong {
    color: var(--gray-900);
    font-size: 28px;
}

.category-card p,
.category-card small {
    color: var(--gray-600);
    line-height: 1.6;
}

.center-actions {
    justify-content: center;
    margin-top: 36px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 0 56px;
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.7;
}

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

.category-overview-block {
    padding: 28px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
}

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

.category-overview-head h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.small-link {
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
    color: var(--gray-800);
    background: #f8fafc;
    padding: 0 12px;
}

.filter-bar button,
.big-search-form button {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    padding: 0 18px;
    font-weight: 800;
}

.filter-count {
    min-height: 24px;
    margin: 0 0 22px;
    color: var(--gray-600);
}

.js-filter-item.is-hidden {
    display: none;
}

.detail-wrap {
    padding: 36px 0 0;
}

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

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

.breadcrumb a {
    color: var(--blue);
    font-weight: 700;
}

.player-card,
.detail-card,
.sidebar-card,
.search-panel {
    border-radius: var(--radius-2xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.player-card {
    padding: 12px;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.4), transparent 36%),
        #000000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.45);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.player-state {
    position: absolute;
    left: 18px;
    bottom: 16px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
}

.video-player.is-started .player-start,
.video-player.is-started .player-state {
    opacity: 0;
    pointer-events: none;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

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

.detail-card h1 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
}

.detail-meta {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gray-200);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.info-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.info-grid strong {
    color: var(--gray-500);
    font-size: 13px;
}

.info-grid span {
    color: var(--gray-800);
    font-weight: 800;
}

.detail-section h2,
.review-box h2,
.sidebar-head h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 900;
}

.detail-section p,
.review-box p {
    margin: 0 0 14px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag-list span {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

.review-box {
    margin-top: 22px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.detail-sidebar {
    position: sticky;
    top: 104px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sidebar-head a {
    color: var(--blue);
    font-weight: 800;
}

.sidebar-list {
    display: grid;
    gap: 16px;
}

.search-panel {
    padding: 24px;
    margin-bottom: 26px;
}

.big-search-form {
    gap: 12px;
}

.big-search-form input {
    flex: 1;
    min-height: 52px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    background: #f8fafc;
}

.search-panel p {
    margin: 12px 0 0;
    color: var(--gray-600);
}

.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 80px 0 28px;
    color: #ffffff;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-wave {
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 58px;
    fill: #ffffff;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 36px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #22d3ee;
    font-size: 18px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid a:hover {
    color: #22d3ee;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.26);
    font-size: 14px;
}

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

    .header-search input {
        width: 210px;
    }

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

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

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

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

    .detail-sidebar {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero {
        height: 540px;
    }

    .hero-content {
        max-width: calc(100% - 32px);
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .rank-grid,
    .editor-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .category-overview-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .container,
    .header-inner,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .hero {
        height: 510px;
    }

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

    .hero-actions,
    .center-actions,
    .big-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .section {
        padding: 52px 0;
    }

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

    .rank-row a {
        grid-template-columns: 54px 1fr;
    }

    .rank-thumb {
        display: none;
    }

    .rank-number {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 20px;
    }

    .movie-card-wide a {
        flex-direction: column;
    }

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .detail-card,
    .sidebar-card,
    .category-overview-block {
        padding: 20px;
    }
}
