:root {
    --bg: #f6fbfb;
    --panel: #ffffff;
    --text: #132022;
    --muted: #657477;
    --line: #e3eef0;
    --teal: #0f9f8f;
    --cyan: #0ea5c6;
    --dark: #0b1720;
    --shadow: 0 18px 45px rgba(15, 31, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 198, 0.12), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 40%, #ffffff 100%);
}

body.menu-open {
    overflow: hidden;
}

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;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
    border-bottom: 1px solid rgba(227, 238, 240, 0.8);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 12px 34px rgba(12, 32, 40, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 12px 24px rgba(15, 159, 143, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-weight: 700;
    color: #2d3d40;
}

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    padding: 10px 2px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
    color: var(--teal);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: 42px;
    width: 220px;
    padding: 12px;
    display: grid;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
}

.dropdown-panel a:hover {
    background: #ecfbf8;
}

.top-search {
    width: 300px;
    display: flex;
    align-items: center;
    padding: 4px;
    background: #edf8f7;
    border: 1px solid #d5eeec;
    border-radius: 999px;
}

.top-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 14px;
    color: var(--text);
}

.top-search button,
.mobile-search button,
.filter-controls button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15, 159, 143, 0.22);
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--teal);
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 24px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f4fbfb;
    font-weight: 700;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    background: #edf8f7;
    border-radius: 18px;
    padding: 6px;
}

.hero {
    padding: 32px 24px 28px;
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(45, 212, 191, 0.35), transparent 22rem),
        linear-gradient(135deg, #06141d 0%, #102b34 45%, #0f766e 100%);
    box-shadow: 0 35px 90px rgba(10, 37, 48, 0.32);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background: linear-gradient(135deg, rgba(15, 159, 143, 0.7), rgba(14, 165, 198, 0.45));
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 20, 29, 0.95) 0%, rgba(6, 20, 29, 0.78) 48%, rgba(6, 20, 29, 0.35) 100%),
        radial-gradient(circle at 80% 15%, rgba(14, 165, 198, 0.35), transparent 24rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    align-items: center;
    gap: 64px;
    padding: 68px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #a7f3d0;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-text h1 {
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-text p {
    max-width: 760px;
    color: #d7eff2;
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #e7fbf7;
    font-size: 12px;
    font-weight: 800;
}

.hero-text .hero-tags span {
    color: #dffcf6;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.btn:hover,
.section-more:hover,
.movie-card:hover,
.category-card:hover,
.rank-item:hover {
    transform: translateY(-3px);
}

.btn.primary,
.section-more {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 38px rgba(15, 159, 143, 0.28);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hot-link {
    color: #a7f3d0;
    font-weight: 900;
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: 360px;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 159, 143, 0.8), rgba(14, 165, 198, 0.55));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster img,
.poster-wrap img,
.rank-cover img,
.overview-cover img,
.detail-poster img,
.detail-backdrop img,
.category-card img,
.category-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.44);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-nav.prev {
    left: 22px;
}

.hero-nav.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 68px;
    bottom: 38px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

.hero-dots button.active {
    background: #ffffff;
}

.stats-strip {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-strip a {
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(12, 32, 40, 0.08);
}

.stats-strip strong {
    display: block;
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 20px;
}

.stats-strip span {
    color: var(--muted);
}

.content-section,
.filter-panel,
.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
}

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

.section-title span,
.filter-heading span,
.page-hero span {
    color: var(--teal);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title h2,
.filter-heading h2,
.page-hero h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-title p,
.filter-heading p,
.page-hero p {
    color: var(--muted);
}

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

.movie-card {
    min-width: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(11, 23, 32, 0.08);
    border: 1px solid rgba(227, 238, 240, 0.85);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 50px rgba(11, 23, 32, 0.15);
}

.movie-card-link {
    display: grid;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    background:
        radial-gradient(circle at top, rgba(14, 165, 198, 0.55), transparent 70%),
        linear-gradient(135deg, #0f766e, #0b1720);
    overflow: hidden;
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-info {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
}

.movie-info h3 {
    margin: 0;
    min-height: 2.6em;
    font-size: 18px;
    line-height: 1.28;
}

.movie-info p {
    margin: 0;
    min-height: 3.9em;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-card.compact .movie-info p {
    display: none;
}

.movie-card.hidden,
.rank-item.hidden {
    display: none;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 24px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0f172a);
    box-shadow: 0 20px 50px rgba(11, 23, 32, 0.16);
    transition: transform 0.22s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    z-index: 0;
}

.category-card span,
.category-card strong,
.category-glow {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    max-width: 240px;
    color: #d7f7f2;
    line-height: 1.7;
}

.category-glow {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 50px rgba(45, 212, 191, 0.5);
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #f4fbfb);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.compact-title h2 {
    font-size: 32px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(227, 238, 240, 0.9);
    box-shadow: 0 10px 24px rgba(11, 23, 32, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    font-size: 22px;
    font-weight: 950;
    color: var(--teal);
}

.rank-cover {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal), var(--dark));
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

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

.rank-copy em {
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--teal);
    font-weight: 900;
    white-space: nowrap;
}

.large-rank-list .rank-item {
    grid-template-columns: 60px 74px minmax(0, 1fr) auto;
}

.page-hero {
    position: relative;
    max-width: 1280px;
    min-height: 310px;
    margin: 32px auto 0;
    padding: 56px;
    border-radius: 34px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 10%, rgba(45, 212, 191, 0.36), transparent 24rem),
        linear-gradient(135deg, #06141d, #0f766e);
    box-shadow: var(--shadow);
}

.page-hero div {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 7vw, 76px);
}

.page-hero p {
    max-width: 720px;
    color: #d7eff2;
    font-size: 18px;
    line-height: 1.8;
}

.category-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.18;
    filter: blur(4px) saturate(1.2);
    transform: scale(1.05);
}

.filter-panel {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: end;
}

.filter-heading {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(11, 23, 32, 0.06);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 180px)) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(11, 23, 32, 0.06);
}

.filter-controls label {
    display: grid;
    gap: 6px;
}

.filter-controls span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 14px;
    background: #f8fcfc;
    padding: 12px 14px;
    color: var(--text);
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    height: 100%;
    padding: 20px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(11, 23, 32, 0.08);
}

.overview-cover {
    min-height: 240px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal), var(--dark));
}

.category-overview-card h2 {
    margin: 8px 0 12px;
    font-size: 30px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.category-overview-card strong {
    display: inline-flex;
    margin-top: 18px;
    color: var(--teal);
}

.mini-title-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-title-list span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #e7fbf7;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 24px 56px;
    color: #ffffff;
    background: #07141d;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background: linear-gradient(135deg, var(--teal), var(--dark));
}

.detail-backdrop img {
    filter: blur(8px) saturate(1.2);
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(45, 212, 191, 0.22), transparent 24rem),
        linear-gradient(180deg, rgba(7, 20, 29, 0.62), #07141d 96%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 30px;
    color: #c9eef0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #a7f3d0;
    font-weight: 800;
}

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

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal), var(--dark));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    margin: 24px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.one-line {
    max-width: 850px;
    color: #ddf7f9;
    font-size: 19px;
    line-height: 1.9;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-meta span {
    display: block;
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 900;
}

.detail-meta strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #02080c;
    box-shadow: 0 30px 90px rgba(8, 23, 32, 0.25);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #02080c;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 8, 12, 0.28), rgba(2, 8, 12, 0.66));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-box.playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 92px;
    height: 92px;
    display: inline-grid;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 40px rgba(15, 159, 143, 0.35);
    font-size: 36px;
    padding-left: 5px;
}

.player-overlay strong {
    font-size: 20px;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 12px;
    padding: 8px 12px;
    display: none;
}

.player-message.show {
    display: block;
}

.detail-article article {
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(11, 23, 32, 0.08);
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-article p {
    margin: 0 0 28px;
    color: #405154;
    line-height: 2;
    font-size: 17px;
}

.site-footer {
    margin-top: 50px;
    color: #d3e5e8;
    background: linear-gradient(135deg, #07141d, #10242d 55%, #07141d);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 42px;
}

.footer-logo {
    width: fit-content;
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 520px;
    color: #aebfc2;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links a {
    color: #aebfc2;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 30px;
    color: #91a3a7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 30px rgba(15, 159, 143, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

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

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

    .split-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

    .filter-panel,
    .filter-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        padding: 18px 14px;
    }

    .hero-shell,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px 24px 80px;
    }

    .hero-poster {
        justify-self: start;
        width: min(280px, 75vw);
    }

    .hero-dots {
        left: 24px;
        bottom: 26px;
    }

    .hero-nav {
        display: none;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        padding: 0 14px 12px;
    }

    .content-section,
    .filter-panel,
    .player-section {
        padding: 32px 14px;
    }

    .section-title {
        display: grid;
        align-items: start;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .movie-info p {
        font-size: 13px;
    }

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

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

    .page-hero {
        margin: 18px 14px 0;
        padding: 34px 24px;
        border-radius: 26px;
    }

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

    .detail-poster {
        width: min(300px, 82vw);
    }

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

    .rank-item,
    .large-rank-list .rank-item {
        grid-template-columns: 34px 54px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 42px 18px 28px;
    }
}

@media (max-width: 520px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .section-more {
        width: 100%;
    }
}
