:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --accent-50: #ecfdf5;
    --accent-600: #059669;
    --secondary-100: #fde68a;
    --secondary-600: #b45309;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.22);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}

* {
    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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.brand-text {
    font-size: 22px;
    color: var(--gray-900);
    transition: color 0.2s ease;
}

.brand:hover .brand-text,
.nav-link:hover,
.mobile-link:hover {
    color: var(--primary-600);
}

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

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link.active,
.mobile-link.active {
    color: var(--primary-600);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-700);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 10px 4px;
}

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

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(24px, calc((100% - 1180px) / 2));
    width: min(650px, calc(100% - 48px));
    transform: translateY(-50%);
    color: var(--white);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 34px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.hero-actions,
.detail-title-block .primary-button {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.primary-button,
.quick-search button,
.search-page-box button {
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 18px 32px rgba(2, 132, 199, 0.32);
}

.primary-button:hover,
.quick-search button:hover,
.search-page-box button:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    right: 32px;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 32px;
    line-height: 1;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    bottom: 92px;
}

.hero-next {
    bottom: 32px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: max(24px, calc((100% - 1180px) / 2));
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -52px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr minmax(340px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0 0 4px;
    font-size: 26px;
}

.search-panel p {
    margin: 0;
    color: var(--gray-600);
}

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

.quick-search input,
.search-page-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.search-page-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.home-sections {
    padding: 76px 0 96px;
    display: grid;
    gap: 80px;
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
}

.section-more,
.text-link {
    color: var(--primary-600);
    font-weight: 800;
}

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

.category-tile,
.category-hero-link {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transform: translateZ(0);
}

.category-tile img,
.category-hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile:hover img,
.category-hero-link:hover img {
    transform: scale(1.08);
}

.category-shade,
.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1));
}

.category-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
}

.category-copy h3,
.poster-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.category-copy p,
.poster-info span {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

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

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

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

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

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

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

.movie-card,
.poster-overlay,
.ranking-card,
.related-card,
.category-overview-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.poster-overlay:hover,
.ranking-card:hover,
.related-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.22);
    box-shadow: var(--shadow-md);
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 45% 1fr;
}

.card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.wide-cover {
    aspect-ratio: 16 / 11;
}

.card-cover img,
.poster-overlay img,
.ranking-card img,
.related-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge,
.rank-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    color: var(--white);
    background: var(--primary-600);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card:hover .play-float {
    opacity: 1;
    background: rgba(0, 0, 0, 0.36);
}

.card-content {
    padding: 18px;
}

.card-content h3,
.ranking-card h3,
.related-card h3,
.category-overview-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-content p,
.ranking-card p,
.category-overview-card p {
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.tag-row span,
.detail-tags span {
    padding: 4px 9px;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 12px;
}

.poster-overlay {
    position: relative;
    min-height: 340px;
    display: block;
    background: var(--gray-900);
}

.poster-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
}

.soft-section {
    padding: 40px;
    background: linear-gradient(90deg, var(--primary-50), var(--accent-50));
    border-radius: var(--radius-2xl);
}

.dark-section {
    padding: 40px;
    color: var(--white);
    background: var(--gray-900);
    border-radius: var(--radius-2xl);
}

.dark-section .section-heading p,
.dark-section .card-content p,
.dark-section .card-meta,
.dark-section .section-more {
    color: rgba(255, 255, 255, 0.72);
}

.dark-section .movie-card {
    color: var(--gray-900);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 70px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    color: var(--primary-600);
    font-size: 20px;
    font-weight: 900;
}

.rank-row img {
    width: 70px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-row h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.rank-row p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

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

.gradient-hero {
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-600), var(--primary-800));
}

.page-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    width: min(720px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.back-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 750;
}

.page-section {
    padding: 56px 0 92px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

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

.category-overview-card .category-hero-link {
    display: block;
    min-height: 190px;
    margin-bottom: 16px;
}

.category-hero-link span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.mini-link-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.mini-link-list a {
    color: var(--gray-700);
    font-weight: 650;
}

.mini-link-list a:hover {
    color: var(--primary-600);
}

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

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    min-height: 164px;
    padding: 14px;
}

.ranking-card img {
    width: 118px;
    height: 136px;
    border-radius: 12px;
}

.ranking-card span:last-child {
    color: var(--gray-500);
    font-size: 13px;
}

.search-page-box {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-results:empty::before {
    content: "输入关键词后显示匹配结果";
    grid-column: 1 / -1;
    padding: 36px;
    color: var(--gray-500);
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-lg);
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.46;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.38));
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-head-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.detail-title-block h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-title-block p {
    width: min(760px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

.detail-title-block .primary-button {
    width: fit-content;
    margin-top: 32px;
}

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

.detail-main,
.related-panel,
.detail-article {
    min-width: 0;
}

.player-card,
.detail-article,
.related-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    font-size: 42px;
    background: rgba(2, 132, 199, 0.92);
    border-radius: 999px;
    box-shadow: 0 22px 52px rgba(2, 132, 199, 0.38);
}

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

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

.detail-article h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 28px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.95;
}

.related-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 10px;
}

.related-card img {
    width: 76px;
    height: 92px;
    border-radius: 10px;
}

.related-card h3 {
    margin-top: 4px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

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

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

.footer-brand {
    margin-bottom: 16px;
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    margin: 0;
    max-width: 430px;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: var(--white);
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
}

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

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

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

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

    .related-panel {
        position: static;
    }
}

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

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

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

    .hero-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2));
    }

    .hero-content {
        top: auto;
        bottom: 88px;
        transform: none;
    }

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

    .hero-control {
        right: 18px;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .quick-search,
    .search-page-box,
    .filter-bar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .wide-grid,
    .two-column-grid,
    .rank-list,
    .ranking-grid,
    .footer-grid,
    .detail-head-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .ranking-card img {
        width: 100%;
        height: 260px;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .content-shell,
    .footer-grid,
    .footer-bottom,
    .search-panel {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-content h1,
    .hero-content h2,
    .detail-title-block h1 {
        font-size: 34px;
    }

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

    .category-grid,
    .category-overview-grid,
    .poster-grid,
    .category-movie-grid,
    .discovery-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .soft-section,
    .dark-section {
        padding: 22px;
        border-radius: var(--radius-xl);
    }

    .poster-overlay {
        min-height: 260px;
    }

    .detail-article,
    .related-panel {
        padding: 20px;
    }
}
