* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f3f4f6;
    background: linear-gradient(180deg, #0f172a 0%, #111827 44%, #1e293b 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #2563eb 52%, #a855f7);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.32);
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.mobile-search input,
.quick-search input,
.page-search input {
    width: 100%;
    color: #ffffff;
    outline: none;
    border: 0;
    background: transparent;
}

.header-search input {
    width: 230px;
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.quick-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #2563eb);
}

.header-search button {
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-link {
    display: block;
    padding: 13px 16px;
}

.mobile-search {
    display: flex;
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    padding: 12px 16px;
}

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

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

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

.hero-image-link,
.hero-image-link img,
.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image-link img {
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.hero-layer {
    background:
        radial-gradient(circle at 70% 42%, rgba(37, 99, 235, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.08) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    gap: 52px;
    padding-bottom: 72px;
}

.hero-text {
    max-width: 760px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: #dbeafe;
    padding: 8px 13px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-text h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

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

.hero-tags span,
.detail-meta span {
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-ghost,
.quick-rank,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-primary {
    min-width: 132px;
    color: #ffffff;
    padding: 14px 22px;
    background: linear-gradient(135deg, #ef4444, #2563eb);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
    min-width: 132px;
    color: #ffffff;
    padding: 13px 21px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.quick-rank:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 50px;
    height: 50px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-card {
    margin-top: -36px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.quick-search label {
    display: block;
    margin-bottom: 9px;
    color: #bfdbfe;
    font-size: 14px;
}

.quick-search div {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
}

.quick-search input {
    padding: 15px 18px;
}

.quick-search button {
    padding: 0 24px;
}

.quick-rank {
    color: #ffffff;
    min-height: 54px;
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.content-section,
.category-preview {
    padding: 64px 0 12px;
}

.category-preview {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.section-heading > span,
.section-bar h3::before {
    display: block;
    width: 5px;
    height: 36px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.55);
    content: "";
}

.section-heading h2,
.section-bar h3,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
    margin: 8px 0 0;
    color: #94a3b8;
}

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

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

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

.movie-card {
    min-width: 0;
    display: block;
    color: #ffffff;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.card-large .poster-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 22px;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 62%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.duration-tag,
.rank-badge {
    position: absolute;
    color: #ffffff;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(10px);
}

.duration-tag {
    right: 10px;
    top: 10px;
    padding: 5px 8px;
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.movie-card strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.card-meta span:first-child {
    color: #facc15;
}

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

.movie-card:hover .poster-shade,
.movie-card:hover .play-mark {
    opacity: 1;
}

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

.movie-card:hover strong {
    color: #60a5fa;
}

.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-bar h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
}

.section-bar a,
.text-link {
    color: #cbd5e1;
}

.section-bar a:hover,
.text-link:hover {
    color: #ffffff;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.category-card img,
.category-card span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card span {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.25));
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.category-card strong {
    bottom: 58px;
    font-size: 24px;
    font-weight: 900;
}

.category-card em {
    bottom: 22px;
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.5;
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    transition: transform 0.2s ease, background 0.2s ease;
}

.long-row {
    grid-template-columns: 58px minmax(160px, 0.7fr) minmax(0, 1fr) auto;
}

.rank-row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.12);
}

.rank-row span {
    color: #ef4444;
    font-weight: 900;
}

.rank-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em {
    overflow: hidden;
    color: #94a3b8;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row b {
    color: #facc15;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 52px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    background:
        radial-gradient(circle at 72% 28%, rgba(37, 99, 235, 0.28), transparent 30%),
        linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.94) 45%, rgba(30, 41, 59, 0.9));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.small-hero {
    min-height: 260px;
}

.page-hero h1 {
    margin-top: 20px;
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.page-search {
    max-width: 700px;
    margin-top: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.page-search input {
    padding: 16px 18px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chips button {
    color: #dbeafe;
    padding: 9px 14px;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.filter-chips button:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.28);
}

.empty-state {
    display: none;
    margin: 40px 0;
    color: #cbd5e1;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.07);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-mosaic img {
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 6px 0 10px;
    color: #ffffff;
    font-size: 26px;
}

.category-overview-card p {
    color: #94a3b8;
    line-height: 1.7;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
    color: #94a3b8;
}

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

.player-section {
    padding-bottom: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #020617;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.main-video {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-backdrop {
    position: absolute;
    inset: 0;
    z-index: 3;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
}

.player-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.player-start {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.player-start span {
    display: block;
    margin-left: 6px;
    font-size: 42px;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(239, 68, 68, 0.46);
}

.video-shell.is-playing .player-backdrop,
.video-shell.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-shell.is-loading .player-start {
    opacity: 0.55;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding-bottom: 14px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(34px, 4vw, 58px);
}

.detail-one-line {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-list span {
    color: #cbd5e1;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.prose-card {
    padding: 28px;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    line-height: 1.95;
}

.prose-card p {
    margin: 0;
}

.prose-card p + p {
    margin-top: 16px;
}

.accent-card {
    border-color: rgba(239, 68, 68, 0.22);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.06));
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.34);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    color: #94a3b8;
}

.footer-inner strong {
    color: #ffffff;
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 110px;
        padding-bottom: 76px;
    }

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

    .hero-arrow {
        display: none;
    }

    .quick-search-card,
    .ranking-layout,
    .detail-layout,
    .category-overview-card,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .category-overview-grid {
        display: grid;
    }

    .detail-poster {
        max-width: 280px;
    }

    .long-row {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .long-row em {
        display: none;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .site-logo {
        font-size: 18px;
    }

    .site-logo::before {
        width: 30px;
        height: 30px;
    }

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

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-content {
        padding-bottom: 62px;
    }

    .hero-poster {
        width: 210px;
    }

    .quick-search div {
        display: grid;
    }

    .quick-search button {
        min-height: 46px;
    }

    .content-section,
    .category-preview {
        padding-top: 44px;
    }

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

    .card-desc {
        display: none;
    }

    .category-card {
        min-height: 180px;
    }

    .page-hero {
        padding: 30px 22px;
        border-radius: 24px;
    }

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

    .player-start {
        width: 72px;
        height: 72px;
    }

    .player-start span {
        font-size: 32px;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .prose-card {
        padding: 20px;
    }
}
