:root {
    --bg: #f8fafc;
    --bg-soft: #eff6ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbeafe;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.14), transparent 28rem),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f1f5f9 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #0f172a);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    font-size: 14px;
}

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

.brand-copy strong {
    font-size: 22px;
    background: linear-gradient(90deg, #2563eb, #0f172a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 13px;
    color: #475569;
    border-radius: 12px;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--primary);
    background: #dbeafe;
    transform: translateY(-1px);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
}

.search-form input,
.hero-search input {
    width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 11px 16px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.search-form button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #dbeafe;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.home-hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

.hero-image-layer {
    position: absolute;
    inset: -24px;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(9px);
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 64, 175, 0.78) 48%, rgba(15, 23, 42, 0.9) 100%),
        radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.38), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #dbeafe;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.12;
    color: #bfdbfe;
}

.hero-copy p {
    margin: 0 0 24px;
    max-width: 640px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.75;
}

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

.hero-actions.compact {
    margin-top: 22px;
}

.primary-button,
.secondary-button,
.ghost-button,
.quick-actions a,
.watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 20px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.watch-link {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.3);
}

.secondary-button {
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.quick-actions a:hover,
.watch-link:hover {
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.overlap-panel {
    position: relative;
    z-index: 10;
    margin-top: -42px;
}

.quick-panel {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(191, 219, 254, 0.9);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.quick-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.quick-actions a {
    background: #eff6ff;
    color: var(--primary-dark);
}

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

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

.section-heading h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 219, 254, 0.78);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e2e8f0);
}

.movie-card-compact .movie-cover {
    aspect-ratio: 3 / 4;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.5));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-meta-line,
.player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta-line span,
.player-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eff6ff;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

.movie-card p {
    margin: 0 0 13px;
    min-height: 48px;
    color: #475569;
    line-height: 1.65;
    font-size: 14px;
}

.movie-card-compact h3 {
    font-size: 16px;
}

.movie-card-compact p {
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    line-height: 1;
}

.hero-tags .tag-chip {
    background: rgba(255, 255, 255, 0.18);
    color: #eff6ff;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.card-actions .watch-link {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 13px;
}

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

.category-card,
.overview-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 20px;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.category-card span,
.overview-name {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 800;
}

.category-card p,
.overview-card p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.62;
}

.category-card ul,
.overview-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-card li,
.overview-card li {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.color-warm { background: linear-gradient(135deg, #ef4444, #f97316); }
.color-blue { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.color-green { background: linear-gradient(135deg, #059669, #14b8a6); }
.color-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }
.color-cyan { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.color-purple { background: linear-gradient(135deg, #7c3aed, #9333ea); }
.color-rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.color-indigo { background: linear-gradient(135deg, #4f46e5, #2563eb); }
.color-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.color-pink { background: linear-gradient(135deg, #db2777, #f472b6); }

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 84px 52px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-poster {
    width: 84px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #dbeafe;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.65;
}

.page-hero {
    padding: 76px 0 32px;
}

.page-hero p {
    max-width: 820px;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.category-page-hero,
.rank-hero,
.search-hero {
    margin-top: 42px;
    padding: 42px;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-page-hero .eyebrow,
.rank-hero .eyebrow,
.search-hero .eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.category-page-hero p,
.rank-hero p,
.search-hero p {
    color: rgba(255, 255, 255, 0.86);
}

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

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

.side-panel,
.content-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 219, 254, 0.78);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.side-panel h2,
.content-card h2 {
    margin: 0 0 16px;
}

.side-links,
.info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-links li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.side-links a:hover,
.info-list a:hover {
    color: var(--primary);
}

.detail-hero {
    position: relative;
    min-height: 560px;
    color: #ffffff;
    overflow: hidden;
    background: #0f172a;
}

.detail-bg {
    position: absolute;
    inset: -24px;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.08);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.92));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    padding: 54px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: #dbeafe;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.detail-copy h1,
.player-container h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line,
.player-container p {
    margin: 0 0 22px;
    max-width: 800px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.75;
}

.detail-actions {
    margin-top: 24px;
}

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

.content-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.player-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-list dd {
    margin: 0;
}

.player-shell {
    padding: 54px 0 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.35), transparent 30rem),
        linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0f172a);
}

.player-breadcrumb {
    color: #bfdbfe;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.3), rgba(2, 6, 23, 0.2));
    cursor: pointer;
}

.player-start span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.player-start.is-hidden {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
    font-size: 13px;
}

.player-status:empty {
    display: none;
}

.player-meta {
    margin-top: 18px;
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin-top: 24px;
}

.search-results {
    min-height: 220px;
}

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

.search-result-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-result-item img {
    width: 100px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #dbeafe;
}

.search-result-item h2 {
    margin: 0 0 8px;
}

.search-result-item p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.65;
}

.muted {
    color: var(--muted);
}

.prose-card p {
    max-width: 900px;
}

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

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

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 800;
}

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

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer a:hover {
    color: #93c5fd;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .search-form {
        flex: 1;
        min-width: 0;
        max-width: 360px;
    }

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

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

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .search-form {
        order: 3;
        max-width: none;
        width: 100%;
    }

    .home-hero {
        height: 680px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 92px;
    }

    .hero-copy p,
    .detail-one-line,
    .player-container p {
        font-size: 16px;
    }

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

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

    .rank-item {
        grid-template-columns: 70px 38px 1fr;
    }

    .rank-item .watch-link {
        grid-column: 3;
        justify-self: start;
    }

    .rank-poster {
        width: 70px;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding: 36px 0;
    }

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

    .hero-search,
    .search-result-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .search-result-item img {
        width: 100%;
        max-height: 280px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .latest-grid,
    .compact-grid,
    .category-movie-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .category-page-hero,
    .rank-hero,
    .search-hero {
        padding: 28px;
    }

    .hero-actions,
    .quick-actions,
    .detail-actions {
        width: 100%;
    }

    .primary-button,
    .secondary-button,
    .ghost-button,
    .quick-actions a,
    .watch-link {
        width: 100%;
    }
}
