*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --purple-600: #7c3aed;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --white: #ffffff;
    --frost-border: rgba(219, 234, 254, 0.78);
    --frost-bg: rgba(255, 255, 255, 0.84);
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(37, 99, 235, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #172033;
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 48%, #e0f2fe 100%);
    min-height: 100vh;
}

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

img,
video {
    max-width: 100%;
    display: block;
    user-select: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 234, 254, 0.78);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.logo-text,
.footer-logo {
    font-size: 1.32rem;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    color: #3f4c64;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue-600);
    background: rgba(219, 234, 254, 0.75);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search-box input,
.local-filter input,
.global-search-box input {
    border: 1px solid rgba(191, 219, 254, 0.92);
    background: rgba(255, 255, 255, 0.84);
    color: #172033;
    border-radius: 999px;
    outline: none;
    transition: 0.2s ease;
}

.header-search input,
.mobile-search input {
    width: 200px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search-box input:focus,
.local-filter input:focus,
.global-search-box input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.header-search button,
.mobile-search button,
.hero-search-box button {
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--blue-100);
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--blue-600);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(219, 234, 254, 0.78);
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
}

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

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-cats a {
    padding: 8px 12px;
    background: var(--blue-50);
    border-radius: 999px;
    color: var(--blue-600);
    font-weight: 700;
}

.frost-card {
    border: 1px solid var(--frost-border);
    background: var(--frost-bg);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.frost-button,
.ghost-button,
.section-action,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

.frost-button {
    color: #fff;
    padding: 13px 24px;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.26);
}

.frost-button:hover,
.section-action:hover,
.text-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 35px rgba(37, 99, 235, 0.24);
}

.ghost-button {
    padding: 12px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.section-action,
.text-link {
    padding: 10px 16px;
    color: var(--blue-600);
    background: #fff;
    border: 1px solid rgba(191, 219, 254, 0.9);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    padding: 48px 0 72px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.24), transparent 30%),
        radial-gradient(circle at 85% 14%, rgba(124, 58, 237, 0.18), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #e6f6ff 100%);
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
}

.hero-slider {
    min-height: 610px;
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.22);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.58fr);
    align-items: end;
    gap: 20px;
    padding: 44px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(100deg, rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.52), rgba(6, 182, 212, 0.25)), var(--hero-cover);
    background-size: cover;
    background-position: center;
    filter: saturate(1.2);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.06) 44%, rgba(15, 23, 42, 0.38));
}

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

.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: #fff;
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--blue-600);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
    color: #bfdbfe;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 660px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-visual {
    align-self: center;
    justify-self: end;
    width: min(320px, 100%);
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.18));
}

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

.hero-side {
    padding: 28px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-side h2,
.ranking-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.hero-side h2 {
    font-size: 2rem;
}

.hero-side p {
    color: var(--slate-500);
    line-height: 1.75;
}

.hero-search-box form {
    display: flex;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--blue-100);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.hero-search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 12px 16px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}

.hero-dot {
    width: 38px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #bfdbfe;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 62px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
}

.hero-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.hero-thumb {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--blue-100);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.08);
}

.hero-thumb img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.hero-thumb span {
    display: block;
    padding: 9px 10px 11px;
    color: #172033;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-heading p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--slate-500);
    line-height: 1.75;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(219, 234, 254, 0.88);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(96, 165, 250, 0.78);
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe 55%, #ede9fe);
}

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

.poster-wrap img.is-missing,
.hero-visual img.is-missing,
.hero-thumb img.is-missing,
.category-card img.is-missing,
.category-cover img.is-missing,
.detail-info img.is-missing,
video.is-missing {
    opacity: 0;
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    min-width: 38px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

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

.movie-meta-line span {
    color: var(--blue-600);
    background: var(--blue-50);
}

.movie-card h2 {
    margin: 11px 0 8px;
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
    color: var(--blue-600);
}

.movie-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.65;
    min-height: 46px;
}

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

.tag-row span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(219, 234, 254, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-content .tag-row span,
.detail-info .tag-row span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

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

.category-card {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    border-radius: 26px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
    box-shadow: var(--shadow-card);
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.12));
    z-index: -1;
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    filter: saturate(1.08);
}

.category-card span {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.ranking-panel {
    padding: 24px;
}

.ranking-panel h2 {
    font-size: 1.65rem;
    margin-bottom: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.85);
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(96, 165, 250, 0.6);
    background: #fff;
}

.rank-row span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    font-weight: 900;
}

.rank-row strong {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.rank-row em {
    grid-column: 2;
    margin-top: -6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 24%),
        radial-gradient(circle at 82% 32%, rgba(34, 211, 238, 0.22), transparent 26%);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    padding: 82px 0;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 800;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    align-items: stretch;
}

.category-cover {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.category-overview-card h2 {
    margin: 0;
    font-size: 1.55rem;
}

.category-overview-card p {
    color: var(--slate-500);
    line-height: 1.75;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sample-links span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--blue-600);
    background: var(--blue-50);
    font-weight: 800;
    font-size: 0.82rem;
}

.local-filter,
.global-search-box {
    margin-top: 24px;
}

.local-filter input,
.global-search-box input {
    width: min(720px, 100%);
    padding: 15px 18px;
}

.category-movie-grid,
.ranking-grid,
.related-grid,
.search-results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.empty-state,
.search-status {
    padding: 22px;
    border-radius: 24px;
    color: var(--slate-500);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--blue-100);
    text-align: center;
}

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

.sticky-rank {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.detail-hero {
    min-height: 720px;
    background: #0f172a;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.2));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 70px;
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.72fr);
    gap: 26px;
    align-items: stretch;
}

.player-card {
    padding: 14px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.24), rgba(15, 23, 42, 1) 66%);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.28));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.44);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid #fff;
}

.play-overlay strong {
    font-size: clamp(1.3rem, 3vw, 2.3rem);
    letter-spacing: -0.04em;
}

.play-overlay em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.detail-info {
    padding: 22px;
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    color: #fff;
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(255, 255, 255, 0.22);
}

.detail-info img {
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.detail-info h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3.25rem);
}

.detail-info p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.content-card {
    padding: 30px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 1.65rem;
}

.content-card p {
    margin: 0 0 26px;
    color: var(--slate-700);
    line-height: 1.95;
    font-size: 1.02rem;
}

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

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.search-chips button {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    padding: 9px 14px;
    font-weight: 800;
}

.search-chips button:hover {
    background: rgba(255, 255, 255, 0.26);
}

.site-footer {
    margin-top: 40px;
    padding-top: 54px;
    color: #e6f1ff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 60%, #155e75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
    gap: 34px;
    padding-bottom: 42px;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.site-footer h2 {
    font-size: 1rem;
    margin: 0 0 14px;
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1180px) {
    .home-grid,
    .category-movie-grid,
    .ranking-grid,
    .related-grid,
    .search-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-side,
    .sticky-rank {
        position: static;
        max-height: none;
    }
}

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

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

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

    .hero-slide,
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-self: start;
        width: min(220px, 58vw);
    }

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

    .movie-grid,
    .home-grid,
    .category-movie-grid,
    .ranking-grid,
    .related-grid,
    .search-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-shell {
        padding: 24px 0 48px;
    }

    .hero-slider {
        min-height: 740px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 26px;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.65rem;
    }

    .hero-side,
    .ranking-panel,
    .content-card {
        padding: 20px;
        border-radius: 22px;
    }

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

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

    .movie-grid,
    .home-grid,
    .category-movie-grid,
    .ranking-grid,
    .related-grid,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card p {
        display: none;
    }

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

    .category-cover,
    .detail-info img {
        max-height: 280px;
    }

    .page-hero-inner {
        padding: 58px 0;
    }

    .detail-hero-inner {
        padding-top: 26px;
    }

    .video-shell {
        border-radius: 18px;
    }
}
