:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.12);
    --primary: #0f766e;
    --primary-dark: #115e59;
    --cyan: #0891b2;
    --amber: #f59e0b;
    --slate: #0f172a;
    --card: #ffffff;
    --soft: #f1f5f9;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.97), rgba(8, 145, 178, 0.97), rgba(37, 99, 235, 0.97));
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.38);
    font-size: 17px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.04em;
}

.brand-text em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    position: relative;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: #fbbf24;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7ed;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

.header-search input,
.mobile-search input {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    outline: none;
    padding: 9px 15px;
    border-radius: 999px 0 0 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.header-search input:focus,
.mobile-search input:focus {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.44);
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 18px;
    border-radius: 0 999px 999px 0;
    color: #fff;
    background: #f59e0b;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-links a {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #06111e;
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.45fr);
    align-items: center;
    gap: 46px;
    padding: 86px max(32px, calc((100vw - 1180px) / 2)) 96px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.015);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78), rgba(15, 118, 110, 0.32)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 170px;
    background: linear-gradient(0deg, var(--bg), rgba(248, 250, 252, 0));
}

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

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

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

.hero-kickers,
.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-kickers span,
.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-kickers span {
    padding: 7px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-kickers span:first-child {
    background: #f59e0b;
}

.hero-content h1 {
    margin: 22px 0 12px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-meta {
    color: #bae6fd;
    font-size: 18px;
    font-weight: 700;
}

.hero-desc {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags span {
    padding: 6px 12px;
    color: #ecfeff;
    background: rgba(8, 145, 178, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    box-shadow: 0 16px 32px rgba(8, 145, 178, 0.26);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(8, 145, 178, 0.38);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4.2;
    width: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 54px;
    background: #f59e0b;
}

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

.section-heading {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.section-heading span,
.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    color: var(--muted);
    margin: 12px 0 0;
}

.category-strip {
    padding-top: 56px;
}

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

.category-card {
    min-height: 154px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid rgba(15, 118, 110, 0.12);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.category-card strong {
    display: block;
    color: #334155;
    font-size: 15px;
}

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

.main-column,
.side-column {
    min-width: 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
    gap: 12px;
    align-items: end;
    margin: 28px 0 26px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    padding: 12px 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.filter-panel button {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    color: #fff;
    background: #0f766e;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    background: radial-gradient(circle at 30% 15%, rgba(14, 165, 233, 0.56), transparent 36%), linear-gradient(135deg, #0f766e, #0f172a 70%);
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.05);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.movie-meta-line span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card h3 {
    margin: 9px 0 7px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: #0f766e;
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
}

.ranking-panel,
.article-card,
.info-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-title span {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.panel-title a {
    color: #0f766e;
    font-weight: 900;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 11px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.rank-num {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #0f766e);
    font-size: 13px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.rank-meta {
    color: #64748b;
    font-size: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.22), transparent 32%), radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.20), transparent 30%);
}

.category-hero::before {
    background-image: linear-gradient(90deg, rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0.78)), var(--page-image);
    background-size: cover;
    background-position: center;
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb span {
    color: #94a3b8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 18px;
    background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(15, 118, 110, 0.18)), var(--cat-image);
    background-size: cover;
    background-position: center;
}

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    color: #64748b;
    margin: 0 0 14px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    padding: 58px 0 70px;
    color: #fff;
    background: #06111e;
}

.detail-hero::before {
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 118, 110, 0.44)), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

.detail-info h1 {
    color: #fff;
    font-size: clamp(36px, 5vw, 66px);
}

.detail-info .breadcrumb,
.detail-info .eyebrow {
    color: #67e8f9;
}

.detail-meta,
.detail-one-line {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-one-line {
    max-width: 820px;
}

.detail-tags span {
    padding: 7px 12px;
    color: #ecfeff;
    background: rgba(8, 145, 178, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.detail-tags.in-article span {
    color: #0f766e;
    background: #ccfbf1;
    border-color: transparent;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

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

.player-gradient {
    pointer-events: none;
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
    transition: opacity 0.2s ease;
}

.player-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    box-shadow: 0 18px 44px rgba(8, 145, 178, 0.42);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-play-button:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.player-play-button span {
    margin-left: 5px;
    font-size: 36px;
}

.player-shell.is-playing .player-play-button,
.player-shell.is-playing .player-gradient,
.player-shell.is-playing .player-caption {
    opacity: 0;
}

.player-shell:hover .player-play-button,
.player-shell:hover .player-gradient,
.player-shell:hover .player-caption {
    opacity: 1;
}

.player-caption {
    position: absolute;
    left: 24px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    color: #fff;
    transition: opacity 0.2s ease;
}

.player-caption strong {
    font-size: 22px;
}

.player-caption span {
    color: rgba(255, 255, 255, 0.76);
}

.player-status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: 52%;
    margin: 0;
    color: #fecaca;
    font-weight: 800;
}

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

.article-card,
.info-card {
    padding: 26px;
}

.article-card h2,
.info-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-card h2:not(:first-child) {
    margin-top: 28px;
}

.article-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.info-card dt {
    color: #64748b;
    font-weight: 900;
}

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

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

.empty-state {
    margin: 18px 0;
    padding: 24px;
    border-radius: 18px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 900;
}

.image-missing {
    opacity: 0;
}

.site-footer {
    margin-top: 36px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-brand strong {
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

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

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

@media (max-width: 1120px) {
    .header-search input {
        width: 180px;
    }

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .mobile-search input {
        width: 100%;
    }

    .hero,
    .hero-stage {
        min-height: 720px;
    }

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

    .hero-poster {
        justify-self: start;
        width: 220px;
        transform: rotate(0deg);
    }

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .brand-text em {
        display: none;
    }

    .hero,
    .hero-stage {
        min-height: 760px;
    }

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

    .hero-desc,
    .detail-meta,
    .detail-one-line {
        font-size: 16px;
    }

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

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

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

    .player-play-button {
        width: 70px;
        height: 70px;
    }

    .player-play-button span {
        font-size: 28px;
    }

    .player-caption {
        left: 16px;
        bottom: 14px;
    }

    .player-caption strong {
        font-size: 17px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
