:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #0891b2;
    --cyan-bright: #22d3ee;
    --blue: #2563eb;
    --purple: #9333ea;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.12), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 44%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.nav-wrap {
    width: min(1440px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--dark);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

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

.nav-links a,
.mobile-menu a {
    padding: 10px 14px;
    color: #334155;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
    color: var(--cyan);
    background: #ecfeff;
}

.nav-search {
    width: 290px;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.nav-search input,
.large-search input,
.filter-panel input,
.mobile-menu input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.nav-search input {
    padding: 0 14px;
}

.nav-search button,
.large-search button,
.mobile-menu button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    cursor: pointer;
    font-weight: 800;
}

.nav-search button {
    height: 100%;
    padding: 0 18px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 0;
    border-radius: 14px;
    background: #ecfeff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--cyan);
}

.mobile-menu {
    display: none;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-menu form {
    display: flex;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.mobile-menu input {
    padding: 12px 14px;
}

.mobile-menu button {
    padding: 0 18px;
}

.hero-carousel {
    position: relative;
    width: min(1440px, calc(100% - 32px));
    min-height: 580px;
    margin: 28px auto 0;
    overflow: hidden;
    color: #fff;
    border-radius: 34px;
    background: var(--dark);
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transform: scale(1.04);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 15, 32, 0.94) 0%, rgba(8, 15, 32, 0.72) 45%, rgba(8, 15, 32, 0.28) 100%),
        radial-gradient(circle at 28% 20%, rgba(34, 211, 238, 0.38), transparent 24rem);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 46px;
    width: 100%;
    padding: 74px 82px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.ranking-panel .eyebrow {
    color: #67e8f9;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
    display: -webkit-box;
    max-width: 720px;
    margin: 0 0 24px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.85;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-pills span,
.poster-badges span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.tag-row span {
    padding: 7px 10px;
    color: #0e7490;
    background: #cffafe;
}

.hero-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.ghost-link,
.panel-link,
.hero-small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 30px rgba(8, 145, 178, 0.28);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.ghost-link {
    min-height: 44px;
    color: #a5f3fc;
}

.primary-btn:hover,
.ghost-btn:hover,
.panel-link:hover,
.hero-small-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.86);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 82px;
    bottom: 36px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.section-card,
.section-wrap,
.page-main {
    width: min(1440px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    align-items: center;
    gap: 28px;
    margin-top: 26px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.quick-search h2,
.section-heading h2,
.ranking-panel h2,
.footer-grid h2,
.side-card h2 {
    margin: 0;
    color: var(--dark);
}

.large-search {
    display: flex;
    min-height: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.large-search input {
    padding: 0 22px;
    font-size: 16px;
}

.large-search button {
    padding: 0 28px;
}

.section-wrap {
    margin-top: 54px;
}

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

.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-heading a,
.panel-link,
.hero-small-link {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 900;
}

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

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-glow {
    position: absolute;
    inset: auto -20% -35% 20%;
    height: 120px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 68%);
}

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

.category-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface-soft);
}

.category-copy {
    position: relative;
    z-index: 2;
}

.category-copy span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.category-copy h2 {
    margin: 4px 0 8px;
    color: var(--dark);
    font-size: 21px;
}

.category-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-box {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--surface-soft);
}

.poster-box img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
    transition: opacity 0.25s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    transform: translate(-50%, -50%) scale(0.9);
    backdrop-filter: blur(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-badges {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.poster-badges span {
    padding: 6px 9px;
    color: #fff;
    background: rgba(8, 145, 178, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.rank-badge {
    background: rgba(37, 99, 235, 0.92) !important;
}

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

.movie-card-body h2 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--dark);
    font-size: 17px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-compact .movie-card-body h2 {
    min-height: auto;
    font-size: 16px;
}

.movie-card-compact .movie-card-body p {
    min-height: 42px;
}

.ranking-panel,
.side-card,
.filter-panel {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    padding: 24px;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

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

.rank-item img {
    width: 54px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface-soft);
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: var(--dark);
    font-size: 14px;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.panel-link {
    width: 100%;
    min-height: 44px;
    margin-top: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.page-main {
    padding-top: 28px;
}

.page-hero {
    position: relative;
    min-height: 280px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 48px;
    color: #fff;
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.45), transparent 24rem),
        linear-gradient(135deg, #0f172a 0%, #0e7490 58%, #2563eb 100%);
    box-shadow: var(--shadow);
}

.slim-hero,
.search-hero {
    grid-template-columns: minmax(0, 1fr);
}

.category-hero,
.ranking-hero,
.search-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.hero-small-link {
    min-height: 46px;
    padding: 0 18px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
    padding: 18px;
}

.filter-panel input {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-row button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: var(--cyan);
    background: #ecfeff;
    cursor: pointer;
    font-weight: 800;
}

.pill-row button.is-active,
.pill-row button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--cyan);
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 44%, rgba(34, 211, 238, 0.22), transparent 18rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-pulse {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.16), 0 22px 55px rgba(0, 0, 0, 0.3);
    font-size: 32px;
}

.player-title {
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.detail-content,
.detail-side,
.side-card {
    background: rgba(255, 255, 255, 0.96);
}

.detail-content {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-headline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.detail-content h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-content h2 {
    margin: 28px 0 12px;
    color: var(--dark);
    font-size: 22px;
}

.detail-content p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.detail-pills span {
    padding: 8px 12px;
    color: #0e7490;
    background: #cffafe;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.side-card {
    padding: 22px;
}

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.side-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.side-card dd {
    margin: -8px 0 0;
    color: var(--dark);
    font-weight: 800;
}

.search-page-form {
    width: min(620px, 100%);
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0 26px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.4fr));
    gap: 40px;
}

.footer-logo {
    color: #fff;
}

.footer-grid p {
    max-width: 520px;
    margin: 16px 0 0;
    line-height: 1.8;
}

.footer-grid h2 {
    color: #fff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1440px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

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

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

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

    .layout-with-aside,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

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

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

    .hero-carousel {
        min-height: 660px;
        border-radius: 24px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 28px 80px;
    }

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

    .hero-arrow {
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .hero-dots {
        left: 28px;
        bottom: 32px;
    }

    .quick-search,
    .filter-panel,
    .footer-grid,
    .category-hero,
    .ranking-hero,
    .search-hero {
        grid-template-columns: 1fr;
    }

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

    .detail-headline {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .nav-wrap,
    .section-card,
    .section-wrap,
    .page-main,
    .hero-carousel,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1440px);
    }

    .site-logo {
        font-size: 17px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 40px;
    }

    .hero-copy p {
        font-size: 15px;
        -webkit-line-clamp: 5;
    }

    .large-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .large-search input {
        min-height: 54px;
    }

    .large-search button {
        min-height: 50px;
    }

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

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

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

    .movie-card-body h2 {
        min-height: 44px;
        font-size: 15px;
    }

    .movie-card-body p,
    .tag-row {
        display: none;
    }

    .detail-content {
        padding: 22px;
    }

    .player-title {
        font-size: 18px;
    }
}
