:root {
    --bg: #f8fafc;
    --bg-soft: #eff6ff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --card: #ffffff;
    --line: rgba(148, 163, 184, 0.24);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.74);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    max-width: 1240px;
    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: 10px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    padding: 10px 15px;
    color: #334155;
    border-radius: 12px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary);
    background: #eff6ff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
}

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

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

.hero-carousel {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.36) 2px, transparent 0);
    background-size: 56px 56px;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
    gap: 44px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 54px 24px 70px;
    color: #ffffff;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.hero-slide::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.52)), var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.24;
    filter: blur(2px) saturate(1.08);
    pointer-events: none;
}

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

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
    text-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.panel-link,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

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

.ghost-btn {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.74);
    background: rgba(37, 99, 235, 0.26);
    backdrop-filter: blur(10px);
}

.hero-poster {
    min-height: 380px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
    transform: rotate(2deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.56), rgba(6, 182, 212, 0.42));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

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

.hero-dots button {
    width: 28px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
    width: 46px;
    background: #ffffff;
}

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 54px 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 22px;
}

.section-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    font-size: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.highlight-panel p,
.category-tile p,
.category-overview-head p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-poster,
.mini-cover,
.rank-thumb,
.poster-card {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4 58%, #14b8a6);
}

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.movie-poster img,
.mini-cover img,
.rank-thumb img,
.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .movie-poster img,
.mini-card:hover .mini-cover img,
.rank-item:hover .rank-thumb img {
    transform: scale(1.08);
}

.image-failed {
    opacity: 0;
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.82);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
}

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

.movie-card h3,
.rank-info h3,
.mini-card strong {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    font-size: 17px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta,
.rank-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.rank-tags span,
.detail-tags span,
.detail-tags a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span:last-child,
.rank-tags span:nth-child(2n),
.tag-row span {
    color: #475569;
    background: #f1f5f9;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
    gap: 28px;
    align-items: start;
}

.highlight-panel,
.category-band,
.page-hero,
.detail-card,
.side-card,
.player-card,
.category-overview-card {
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.highlight-panel {
    position: sticky;
    top: 92px;
    padding: 28px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
}

.highlight-panel h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 900;
}

.highlight-panel p {
    color: #dbeafe;
}

.panel-link {
    width: 100%;
    margin-top: 20px;
    color: var(--primary);
    background: #ffffff;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.mini-rank .rank-item {
    grid-template-columns: auto 64px minmax(0, 1fr);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.mini-rank .rank-info h3,
.mini-rank .rank-info p,
.mini-rank .rank-tags span {
    color: #ffffff;
}

.rank-num {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.rank-thumb {
    width: 104px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
}

.mini-rank .rank-thumb {
    width: 64px;
}

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

.rank-info h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.rank-info p {
    display: -webkit-box;
    margin: 6px 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-band {
    max-width: none;
    margin-top: 20px;
    padding: 64px 24px;
    border-radius: 0;
    background: linear-gradient(135deg, #f1f5f9, #dbeafe 70%, #cffafe);
    box-shadow: none;
}

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

.category-tile {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    font-size: 30px;
}

.category-tile h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.page-hero {
    max-width: 1240px;
    margin: 96px auto 0;
    padding: 58px 34px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4 62%, #14b8a6);
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.page-hero h1 {
    position: relative;
    margin: 20px 0 14px;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.page-hero p {
    position: relative;
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
}

.small-actions {
    position: relative;
    margin-top: 24px;
}

.overview-list {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 24px 68px;
    display: grid;
    gap: 24px;
}

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

.category-overview-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.category-overview-head > span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    font-size: 28px;
}

.category-overview-head h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
}

.category-overview-head a {
    padding: 11px 18px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--primary);
    font-weight: 800;
}

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

.mini-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.mini-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.mini-card strong,
.mini-card span {
    display: block;
    padding: 0 12px;
}

.mini-card strong {
    margin-top: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.mini-card span {
    margin: 6px 0 13px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 160px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    padding: 48px;
    color: var(--muted);
    text-align: center;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

.large-rank {
    gap: 16px;
}

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

.large-rank .rank-thumb {
    width: 150px;
}

.search-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 820px;
    margin-top: 28px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
}

.search-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.breadcrumb {
    max-width: 1240px;
    margin: 88px auto 18px;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-main {
    padding-top: 68px;
}

.detail-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

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

.player-card {
    padding: 12px;
    overflow: hidden;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.site-video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-shell.is-playing .play-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.42);
    font-size: 28px;
}

.play-cover strong {
    font-size: 19px;
}

.detail-card,
.side-card {
    padding: 24px;
}

.intro-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.lead-text {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #334155;
    border-left: 4px solid var(--primary);
    font-size: 18px;
    line-height: 1.75;
}

.detail-card h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

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

.review-card {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.poster-card {
    padding: 0;
    overflow: hidden;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.info-card div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    word-break: break-word;
}

.info-card a {
    color: var(--primary);
}

.related-section {
    padding-top: 24px;
}

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

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

.footer-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
}

.footer-shell p {
    max-width: 560px;
    margin: 14px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.6);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .featured-grid,
    .category-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-shell {
        padding: 0 16px;
    }

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

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 44px;
    }

    .hero-content h1 {
        margin-top: 16px;
    }

    .hero-poster {
        min-height: 280px;
        transform: none;
    }

    .hero-poster img {
        min-height: 280px;
    }

    .split-section,
    .filter-bar,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .highlight-panel,
    .detail-side {
        position: static;
    }

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

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

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

    .large-rank .rank-thumb,
    .rank-thumb {
        width: 88px;
    }

    .category-overview-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .category-overview-head a {
        grid-column: 1 / -1;
        text-align: center;
    }

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

    .poster-card {
        max-width: 320px;
    }

    .footer-shell {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .content-section,
    .overview-list,
    .detail-layout,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero {
        margin: 84px 16px 0;
        padding: 42px 22px;
    }

    .featured-grid,
    .category-movie-grid,
    .category-grid,
    .mini-card-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        aspect-ratio: 16 / 11;
    }

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

    .rank-thumb,
    .large-rank .rank-thumb {
        width: 74px;
    }

    .rank-info p,
    .rank-tags {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

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