:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #14b8a6;
    --teal: #0d9488;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #fde047;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.2);
    --radius: 18px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(var(--container), calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text {
    font-size: 22px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
}

.brand-mark.small {
    width: 32px;
    height: 32px;
}

.brand-mark svg,
.eyebrow svg,
.primary-btn svg,
.hover-play svg,
.play-button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
}

.site-search {
    display: flex;
    align-items: center;
    width: min(320px, 26vw);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-search input {
    min-width: 0;
    width: 100%;
    color: var(--gray-900);
    background: transparent;
    border: 0;
    outline: 0;
    padding: 10px 12px;
}

.site-search button,
.search-page-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: 0;
    padding: 10px 16px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 0;
    border-radius: 12px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 999px;
}

.mobile-panel {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-search {
    width: 100%;
    margin-bottom: 14px;
}

.mobile-links,
.mobile-chips,
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-chip,
.search-chips a {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue), #0ea5e9 48%, var(--teal));
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    transform: scale(1.04);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(37, 99, 235, 0.44), rgba(20, 184, 166, 0.38));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 56px;
    width: min(var(--container), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 800;
}

.hero-kicker {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 18px;
}

.eyebrow.center {
    justify-content: center;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.hero h2 {
    color: rgba(255, 255, 255, 0.94);
    margin: 12px 0 10px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.18;
}

.hero p {
    max-width: 620px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: var(--blue);
    background: var(--white);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-3px);
}

.primary-btn.light {
    color: var(--blue);
    background: var(--white);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    display: block;
    justify-self: end;
    width: min(420px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.section-block {
    padding: 72px 0;
}

.section-block.compact {
    padding: 56px 0;
}

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

.section-heading h2,
.center-heading h2,
.page-hero h1 {
    margin: 12px 0 0;
    color: var(--gray-900);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.center-heading p,
.page-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--gray-500);
    font-size: 17px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow-md);
}

.poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.poster.wide {
    width: 210px;
    flex: 0 0 210px;
    aspect-ratio: 16 / 10;
}

.poster img,
.category-cover,
.rank-hero-card::before,
.detail-hero::before,
.page-hero.category-hero::before,
.player-cover::before {
    background-size: cover;
    background-position: center;
}

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

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

.category-pill,
.quality-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: var(--white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.category-pill {
    left: 12px;
    top: 12px;
    background: var(--blue);
}

.quality-pill {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.hover-play {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 34px;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .hover-play {
    opacity: 1;
}

.hover-play svg {
    width: 62px;
    height: 62px;
    padding: 17px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.card-info {
    padding: 16px;
}

.card-info h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: var(--gray-500);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
}

.card-category {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.movie-card.horizontal {
    display: flex;
    gap: 0;
}

.movie-card.horizontal .card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.movie-card.horizontal .card-info h3 {
    min-height: auto;
}

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

.soft-panel {
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.category-strip:nth-of-type(odd) {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.category-strip:nth-of-type(even) {
    background: linear-gradient(90deg, #fdf2f8, #eef2ff);
}

.center-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.cta-panel {
    padding: 82px 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.cta-inner {
    width: min(860px, 100%);
    margin: 0 auto;
    color: var(--white);
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.cta-inner p {
    margin: 0 auto 28px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: linear-gradient(135deg, #eff6ff, #ecfeff 52%, #f8fafc);
    text-align: center;
}

.page-hero.category-hero,
.detail-hero {
    isolation: isolate;
    color: var(--white);
    text-align: left;
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.page-hero.category-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--page-image, var(--detail-image));
    opacity: 0.24;
    filter: saturate(1.08);
}

.page-hero.category-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.75), rgba(37, 99, 235, 0.5), rgba(20, 184, 166, 0.38));
}

.page-hero.category-hero h1,
.page-hero.category-hero p,
.detail-copy h1,
.detail-copy p {
    color: var(--white);
}

.hero-narrow {
    max-width: 900px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.local-filter,
.search-page-form input {
    width: min(480px, 100%);
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    outline: 0;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}

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

.category-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
}

.category-cover {
    min-height: 230px;
    background-image: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.18)), var(--category-image);
}

.category-card-body {
    padding: 24px;
}

.category-card h2 {
    margin: 12px 0 8px;
    font-size: 26px;
    line-height: 1.15;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--gray-500);
}

.sample-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-titles span {
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.rankings-hero {
    background: radial-gradient(circle at 25% 15%, rgba(253, 224, 71, 0.28), transparent 28%), linear-gradient(135deg, #111827, #1d4ed8 54%, #0d9488);
}

.rankings-hero h1,
.rankings-hero p {
    color: var(--white);
}

.rank-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 22px;
}

.rank-hero-card {
    position: relative;
    isolation: isolate;
    min-height: 300px;
    overflow: hidden;
    color: var(--white);
    border-radius: 26px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.rank-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--rank-image);
    transition: transform 0.45s ease;
}

.rank-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.rank-hero-card:hover::before {
    transform: scale(1.08);
}

.rank-hero-card h2 {
    margin: 120px 0 10px;
    font-size: 28px;
    line-height: 1.18;
}

.rank-hero-card p {
    color: rgba(255, 255, 255, 0.88);
}

.rank-number {
    color: var(--gray-900);
    background: var(--yellow);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.search-page-form {
    display: flex;
    justify-content: center;
    width: min(720px, 100%);
    margin: 28px auto 18px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

.search-page-form input {
    flex: 1;
    width: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.search-page-form button {
    min-width: 110px;
}

.search-chips {
    justify-content: center;
}

.empty-state {
    margin: 40px 0 0;
    color: var(--gray-500);
    text-align: center;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0;
}

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

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

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

.detail-copy h1 {
    margin-top: 14px;
    font-size: clamp(38px, 5vw, 64px);
}

.detail-copy p {
    max-width: 840px;
    margin: 18px 0 22px;
    font-size: 19px;
}

.detail-copy .primary-btn {
    margin-top: 26px;
}

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

.watch-panel,
.detail-section,
.side-card {
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.watch-panel {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: var(--gray-900);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62)), var(--player-image);
    filter: saturate(1.08);
}

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

.play-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    font-size: 42px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.28);
}

.detail-section {
    padding: 26px;
    margin-bottom: 24px;
}

.detail-section h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.detail-section p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 24px;
}

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

.side-card div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.side-card dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 700;
}

.detail-copy .tag-row a {
    color: var(--white);
}

.site-footer {
    color: rgba(255, 255, 255, 0.74);
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 0;
}

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

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.back-top {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
}

.is-hidden-card {
    display: none !important;
}

@media (max-width: 1100px) {
    .nav-links,
    .site-search {
        display: none;
    }

    .mobile-panel .site-search {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content,
    .detail-hero-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        padding: 70px 0 88px;
    }

    .hero-poster {
        justify-self: start;
        width: min(360px, 100%);
    }

    .movie-grid.three,
    .movie-grid.four,
    .horizontal-list,
    .category-grid,
    .rank-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .container,
    .nav-wrap,
    .mobile-panel,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, var(--container));
    }

    .brand-text {
        font-size: 19px;
    }

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

    .hero h2 {
        font-size: 28px;
    }

    .hero p,
    .detail-copy p {
        font-size: 17px;
    }

    .hero-content {
        gap: 28px;
        padding-top: 52px;
    }

    .hero-actions,
    .filter-bar,
    .section-heading,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .movie-grid.three,
    .movie-grid.four,
    .horizontal-list,
    .category-grid,
    .rank-hero-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal,
    .category-card {
        display: block;
    }

    .poster.wide {
        width: 100%;
    }

    .section-block {
        padding: 48px 0;
    }

    .page-hero,
    .detail-hero {
        padding: 54px 0;
    }

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

    .search-page-form input,
    .search-page-form button {
        width: 100%;
    }

    .detail-cover {
        max-width: 320px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}
