:root {
    --primary: #0284c7;
    --primary-strong: #0369a1;
    --primary-soft: #e0f2fe;
    --secondary: #0f172a;
    --secondary-soft: #334155;
    --surface: #ffffff;
    --page: #f8fafc;
    --line: #e2e8f0;
    --muted: #64748b;
    --text: #0f172a;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-strong), #38bdf8);
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong,
.footer-brand strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-text small,
.footer-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    border: 0;
    color: #334155;
    background: transparent;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    width: 220px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-panel a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
}

.nav-drop-panel a:hover {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.header-search {
    width: min(280px, 28vw);
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.quick-search input,
.filter-search input,
.search-page-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

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

.header-search button {
    width: 44px;
    height: 42px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary-strong);
    border-radius: 99px;
    transition: all 0.2s ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

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

.mobile-panel nav,
.mobile-search {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
}

.mobile-panel nav {
    display: grid;
    gap: 6px;
}

.mobile-title {
    padding: 12px 10px 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.mobile-sub-link {
    padding: 9px 20px;
    color: #475569;
    border-radius: 10px;
}

.mobile-sub-link:hover {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding-top: 0;
}

.mobile-search input {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.mobile-search button,
.quick-search button,
.filter-search button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-search button:hover,
.quick-search button:hover,
.filter-search button:hover,
.search-page-form button:hover,
.primary-button:hover {
    background: var(--primary-strong);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5.5s ease;
}

.hero-slide.is-active > img {
    transform: scale(1);
}

.hero-shade,
.detail-bg-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(14, 165, 233, 0.28), transparent 36%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    width: min(680px, calc(100vw - 48px));
    transform: translateY(-50%);
    color: #ffffff;
    animation: fadeInUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.9);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
}

.hero-content h1,
.page-hero h1,
.detail-main h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
}

.hero-tags span,
.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-button {
    padding: 14px 24px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
}

.primary-button.small {
    padding: 10px 16px;
    border-radius: 12px;
}

.ghost-button {
    padding: 14px 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.quick-search-block,
.content-section,
.overview-stack,
.detail-content,
.player-section,
.filter-panel {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.quick-search-block {
    position: relative;
    z-index: 5;
    margin-top: -44px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.quick-search {
    display: flex;
    gap: 12px;
}

.quick-search input {
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.quick-search button {
    padding: 0 24px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a,
.filter-chips button,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 700;
}

.quick-links a {
    padding: 8px 12px;
}

.content-section {
    padding: 56px 0 0;
}

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

.section-head h2 {
    margin: 0;
    color: var(--secondary);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    color: var(--primary-strong);
    white-space: nowrap;
}

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

.category-tile {
    min-height: 190px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 15%, rgba(56, 189, 248, 0.52), transparent 32%),
        linear-gradient(135deg, #0f172a, #0369a1);
    box-shadow: var(--shadow);
    transition: all 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.category-tile span {
    font-size: 14px;
    font-weight: 800;
    opacity: 0.82;
}

.category-tile strong {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.35;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

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

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: all 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

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

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

.cover-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.94);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.38);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
}

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

.movie-meta-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--primary-strong);
}

.movie-card p {
    min-height: 50px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 6px 10px;
}

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

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 30px;
}

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.small-head {
    display: block;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.rank-row:hover {
    background: var(--primary-soft);
}

.rank-row strong {
    color: var(--primary-strong);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 64px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--secondary);
}

.rank-row span {
    min-width: 0;
}

.rank-row b,
.rank-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row b {
    font-size: 14px;
}

.rank-row small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.page-hero {
    padding: 64px 0;
}

.gradient-hero,
.category-hero,
.search-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(56, 189, 248, 0.35), transparent 30%),
        linear-gradient(135deg, #0f172a, #0369a1);
}

.page-hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb strong {
    color: #ffffff;
}

.overview-stack {
    padding: 48px 0 0;
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

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

.category-overview-head h2 {
    margin: 14px 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.filter-panel {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.filter-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-search input {
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.filter-search button {
    padding: 0 18px;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.filter-chips > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.filter-chips button {
    padding: 7px 11px;
    border: 0;
    cursor: pointer;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: var(--primary);
}

.detail-hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 64px 0;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(0.85);
    transform: scale(1.05);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 28px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
}

.detail-main h1 {
    max-width: 860px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62));
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    font-size: 34px;
    box-shadow: 0 20px 44px rgba(2, 132, 199, 0.42);
    transition: all 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.06);
    background: var(--primary-strong);
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.detail-content {
    padding-top: 38px;
    display: grid;
    gap: 24px;
}

.detail-text-block {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-text-block h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
}

.detail-text-block p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.95;
}

.search-page-form {
    width: min(760px, 100%);
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.search-page-form input {
    padding: 14px 16px;
    color: #ffffff;
}

.search-page-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.search-page-form button {
    padding: 0 24px;
}

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

.wide-rank-list .rank-row {
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand strong,
.site-footer h2 {
    color: #ffffff;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
}

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

.site-footer a:hover {
    color: #38bdf8;
}

.footer-bottom {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 16px));
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

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

    .menu-button {
        display: flex;
    }

    .header-search {
        width: min(320px, 36vw);
    }

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

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

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .header-search {
        display: none;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 580px;
        height: 76vh;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        left: 20px;
        width: calc(100vw - 40px);
    }

    .quick-search-block,
    .content-section,
    .overview-stack,
    .detail-content,
    .player-section,
    .filter-panel,
    .page-hero-inner,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 32px, 1280px);
    }

    .quick-search,
    .filter-search,
    .search-page-form,
    .category-overview-head,
    .footer-bottom {
        flex-direction: column;
    }

    .quick-search button,
    .filter-search button,
    .search-page-form button {
        padding: 12px 16px;
    }

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

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

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .detail-poster {
        width: min(260px, 80vw);
    }

    .detail-hero {
        padding: 42px 0;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-tags,
    .detail-meta {
        margin: 18px 0 22px;
    }

    .hero-tags span,
    .detail-meta span {
        font-size: 13px;
    }

    .hero-actions {
        display: grid;
    }

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

    .movie-card p {
        min-height: auto;
    }

    .page-hero {
        padding: 46px 0;
    }

    .player-overlay span {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }

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