:root {
    --page-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.78);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.55);
    --primary: #0ea5e9;
    --primary-deep: #0369a1;
    --primary-light: #38bdf8;
    --accent: #f59e0b;
    --text: #ffffff;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.16), transparent 32rem),
        radial-gradient(circle at 95% 12%, rgba(245, 158, 11, 0.12), transparent 28rem),
        var(--page-bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

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

.brand-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.32);
}

.brand-mark.small {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.brand-text {
    font-size: 1.45rem;
    background: linear-gradient(90deg, var(--primary-light), #ffffff 42%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-deep));
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    min-width: 168px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: 0.2s ease;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted-strong);
}

.nav-dropdown-menu a:hover {
    background: rgba(14, 165, 233, 0.12);
    color: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
    padding: 9px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 2px;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72) 43%, rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.04) 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 72px 0 108px;
}

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

.hero-label,
.card-kicker,
.detail-meta,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-label span,
.card-kicker span,
.detail-meta span,
.ranking-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.24);
    font-size: 0.86rem;
}

.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.85;
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-cloud span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.32);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.btn-link,
.section-more,
.text-link {
    color: var(--primary-light);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--primary-light);
}

.hero-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-input,
.filter-bar select {
    width: min(360px, 58vw);
    border: 0;
    outline: 0;
    background: rgba(2, 6, 23, 0.7);
    color: #ffffff;
    border-radius: 12px;
    min-height: 42px;
    padding: 0 14px;
}

.filter-bar select {
    width: 150px;
    color: var(--muted-strong);
}

.hero-search button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-heading h2,
.sub-hero h1,
.detail-title-block h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 850;
    letter-spacing: -0.04em;
}

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

.section-heading p,
.sub-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    min-width: 0;
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.poster-frame img,
.wide-poster img,
.ranking-cover img,
.category-cover img,
.poster-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.ranking-item:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 48%);
    opacity: 0.95;
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.88);
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-play,
.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.9);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.34);
    transition: 0.25s ease;
}

.movie-card:hover .poster-play,
.movie-card:hover .play-float {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-info {
    padding-top: 12px;
}

.card-info h3,
.wide-content h3,
.ranking-body h3 {
    margin: 0 0 9px;
    color: #ffffff;
    line-height: 1.38;
    font-weight: 750;
}

.card-info h3 {
    display: -webkit-box;
    min-height: 2.75em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1rem;
}

.movie-card a:hover,
.ranking-item a:hover {
    color: var(--primary-light);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.card-desc {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.wide-grid.compact {
    grid-template-columns: 1fr;
    gap: 16px;
}

.movie-card-wide {
    display: flex;
    gap: 16px;
    min-height: 154px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.movie-card-wide:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.8);
}

.wide-poster {
    position: relative;
    width: 120px;
    flex: 0 0 120px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--panel-strong);
}

.wide-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.card-kicker {
    margin-bottom: 10px;
}

.card-kicker span {
    min-height: 26px;
    font-size: 0.76rem;
}

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

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 58px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.38);
}

.ranking-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(14, 165, 233, 0.22));
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 850;
}

.ranking-cover {
    height: 124px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--panel-strong);
}

.ranking-body p {
    display: -webkit-box;
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(245, 158, 11, 0.08)),
        rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.38);
}

.category-card span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 12px;
    font-size: 1.22rem;
    font-weight: 800;
    color: #ffffff;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    min-height: 0;
}

.category-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    background: var(--panel-strong);
}

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.9);
    font-size: 0.82rem;
}

.sub-hero {
    padding: 70px 0 52px;
    background:
        linear-gradient(135deg, rgba(12, 74, 110, 0.7), rgba(3, 105, 161, 0.42)),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 24rem);
    border-bottom: 1px solid var(--border);
}

.sub-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

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

.filter-bar {
    justify-content: space-between;
    margin-bottom: 28px;
}

.filter-bar .filter-input {
    flex: 1;
    width: auto;
}

.detail-hero {
    position: relative;
    min-height: 480px;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 52%, rgba(2, 6, 23, 0.25)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 70%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px 0;
}

.detail-title-block {
    max-width: 820px;
}

.detail-title-block h1 {
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.08;
}

.detail-title-block p {
    max-width: 720px;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
    font-size: 1.08rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.watch-panel,
.detail-article,
.side-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.watch-panel {
    padding: 18px;
}

.watch-panel h2,
.detail-article h2,
.side-card h2,
.ranking-aside h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 800;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 18px;
    text-align: center;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.42)),
        radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 28rem);
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: pointer;
}

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

.big-play-button {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #ffffff;
    box-shadow: 0 24px 52px rgba(14, 165, 233, 0.36);
    cursor: pointer;
}

.big-play-button span {
    transform: translateX(3px);
    font-size: 2rem;
}

.player-overlay strong,
.player-overlay em {
    display: block;
}

.player-overlay strong {
    font-size: 1.2rem;
}

.player-overlay em {
    margin-top: 6px;
    color: var(--muted-strong);
    font-style: normal;
}

.detail-article {
    margin-top: 28px;
    padding: 28px;
}

.detail-article p {
    margin: 0 0 26px;
    color: var(--muted-strong);
    line-height: 2;
    font-size: 1.02rem;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-card {
    padding: 22px;
}

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

.poster-side img {
    aspect-ratio: 2 / 3;
}

.info-list {
    margin: 0;
    display: grid;
    gap: 15px;
}

.info-list div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

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

.info-list dd {
    margin: 0;
    color: #ffffff;
}

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

.ranking-aside {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

.site-footer {
    margin-top: 60px;
    padding: 56px 0 26px;
    background: rgba(15, 23, 42, 0.94);
    border-top: 1px solid var(--border);
}

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.02rem;
}

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

.footer-grid a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

[data-card].is-hidden {
    display: none;
}

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

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

    .wide-grid,
    .ranking-grid,
    .category-overview-grid,
    .detail-layout,
    .ranking-layout,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-aside {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        min-height: 66px;
        flex-wrap: wrap;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 0 16px;
    }

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

    .nav-link {
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(30, 41, 59, 0.42);
        text-align: left;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 8px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
    }

    .hero-slider,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding: 58px 0 136px;
    }

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

    .hero-search {
        width: 100%;
    }

    .hero-search input {
        flex: 1;
        width: auto;
    }

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

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

    .wide-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid,
    .detail-layout,
    .ranking-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        order: -1;
    }

    .poster-side {
        display: none;
    }

    .ranking-item {
        grid-template-columns: 42px 76px 1fr;
        gap: 12px;
    }

    .ranking-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .ranking-cover {
        height: 104px;
    }
}

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

    .brand-text {
        font-size: 1.12rem;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 48px 0;
    }

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

    .movie-card-wide {
        min-height: 132px;
    }

    .wide-poster {
        width: 96px;
        flex-basis: 96px;
    }

    .card-desc {
        display: none;
    }

    .filter-bar,
    .search-page-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select,
    .filter-bar .filter-input {
        width: 100%;
    }

    .detail-hero,
    .detail-hero-content {
        min-height: 420px;
    }

    .detail-title-block h1 {
        font-size: 2rem;
    }

    .watch-panel,
    .detail-article,
    .side-card {
        border-radius: 18px;
    }

    .watch-panel,
    .detail-article {
        padding: 16px;
    }

    .player-box {
        border-radius: 16px;
    }

    .big-play-button {
        width: 68px;
        height: 68px;
    }
}
