:root {
    --brand-a: #f97316;
    --brand-b: #ef4444;
    --brand-c: #ec4899;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
    --radius: 24px;
}

body {
    min-height: 100vh;
    background: #f8fafc;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
    color: #fff;
    box-shadow: 0 14px 40px rgba(239, 68, 68, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 0;
}

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

.site-logo strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.9;
}

.logo-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.logo-mark svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.desktop-nav a,
.nav-dropdown button {
    color: #fff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
    color: #fef3c7;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    width: 210px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    color: #374151;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
}

.dropdown-panel a:hover {
    background: #fff7ed;
    color: #ea580c;
}

.nav-search,
.mobile-search,
.search-band form,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search {
    min-width: 250px;
    padding: 7px 8px 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    color: #fff;
    background: transparent;
    outline: none;
}

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

.nav-search button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.nav-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

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

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

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel nav a,
.mobile-search button {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.mobile-search {
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #fb923c, #f43f5e, #ec4899);
}

.hero-track {
    position: relative;
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 48px;
    align-items: center;
    width: 100%;
    padding: 96px max(32px, calc((100vw - 1180px) / 2)) 92px;
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(124, 45, 18, 0.92), rgba(190, 18, 60, 0.72), rgba(219, 39, 119, 0.55)),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.1);
}

.hero-backdrop::before,
.hero-backdrop::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(40px);
}

.hero-backdrop::before {
    left: 8%;
    top: 8%;
    width: 260px;
    height: 260px;
}

.hero-backdrop::after {
    right: 8%;
    bottom: 7%;
    width: 360px;
    height: 360px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 860px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero-copy h2 {
    margin-top: 18px;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 850;
}

.hero-copy p {
    max-width: 760px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

.hero-actions,
.slim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

.primary-action {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ghost-action {
    border: 2px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(12px);
}

.primary-action:hover,
.ghost-action:hover,
.search-band button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    font-weight: 900;
}

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

.hero-prev,
.hero-next,
.hero-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.search-band {
    background: #fff;
    box-shadow: 0 14px 50px rgba(17, 24, 39, 0.06);
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    gap: 28px;
    align-items: center;
    padding: 34px 0;
}

.search-band h2,
.section-heading h2,
.ranking-head h2,
.search-result-head h2,
.detail-main h1,
.detail-main h2,
.side-card h2 {
    color: #111827;
    font-weight: 900;
}

.search-band h2,
.section-heading h2,
.ranking-head h2 {
    font-size: 32px;
}

.search-band p,
.section-heading p,
.category-overview-card p,
.page-hero p,
.detail-main p,
.search-result-head p,
.top-rank-card p {
    color: var(--muted);
    line-height: 1.8;
}

.search-band form,
.search-page-form {
    padding: 8px;
    border-radius: 999px;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.search-band input,
.search-page-form input {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
    outline: none;
    background: transparent;
    color: #111827;
}

.search-band button,
.search-page-form button {
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
    color: #fff;
}

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

.soft-bg {
    background: linear-gradient(180deg, #fff7ed, #fff1f2);
}

.section-heading,
.ranking-head,
.search-result-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-heading a,
.ranking-head a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(17, 24, 39, 0.16);
}

.poster-link,
.wide-cover,
.category-cover,
.side-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.movie-card:hover .wide-cover img,
.category-overview-card:hover img,
.top-rank-card:hover img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.card-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.card-title-on-image {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-weight: 850;
    line-height: 1.35;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.card-body {
    padding: 14px;
}

.card-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.movie-title {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-weight: 850;
    line-height: 1.42;
}

.card-body p,
.wide-info p {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags a {
    background: #fff7ed;
    color: #ea580c;
}

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

.category-tile {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 16px 42px rgba(239, 68, 68, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 24px 56px rgba(239, 68, 68, 0.25);
}

.category-tile span {
    font-size: 26px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    font-size: 15px;
}

.category-tile p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.6;
}

.grad-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }
.grad-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.grad-red { background: linear-gradient(135deg, #f97316, #e11d48); }
.grad-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-rose { background: linear-gradient(135deg, #fb7185, #db2777); }
.grad-fire { background: linear-gradient(135deg, #ef4444, #a855f7); }
.grad-sun { background: linear-gradient(135deg, #facc15, #fb7185); }
.grad-coral { background: linear-gradient(135deg, #fb923c, #f472b6); }

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

.ranking-panel,
.side-card,
.detail-main,
.detail-side,
.category-overview-card,
.top-rank-card,
.filter-toolbar {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-number {
    color: #ef4444;
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: #111827;
    font-weight: 850;
}

.rank-copy small {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.rank-item em,
.top-rank-card em {
    color: #f59e0b;
    font-style: normal;
    font-weight: 900;
}

.watch-banner,
.page-hero,
.player-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #fb923c, #ef4444, #ec4899);
    color: #fff;
}

.watch-banner .container,
.page-hero .container {
    padding: 86px 0;
    text-align: center;
}

.watch-banner h2,
.page-hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 900;
    line-height: 1.1;
}

.watch-banner p,
.page-hero p {
    max-width: 780px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
}

.watch-banner a {
    display: inline-flex;
    margin-top: 28px;
    padding: 14px 30px;
    border-radius: 999px;
    background: #fff;
    color: #ea580c;
    font-weight: 900;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    overflow: hidden;
    padding: 18px;
}

.category-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-overview-card h2 {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 900;
}

.sample-links,
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sample-links a,
.mini-links a {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
}

.filter-toolbar label {
    display: grid;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    background: #f9fafb;
    color: #111827;
    outline: none;
    padding: 0 14px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.empty-state {
    margin-top: 34px;
    padding: 34px;
    border-radius: 24px;
    background: #fff;
    color: #6b7280;
    text-align: center;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

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

.top-rank-card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 18px;
}

.top-rank-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.top-rank-card strong {
    display: block;
    margin-top: 16px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.top-rank-no {
    position: absolute;
    left: 32px;
    top: 32px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-weight: 900;
}

.rank-page-wrap {
    max-width: 980px;
}

.rank-page-list .rank-item {
    grid-template-columns: 56px 82px minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line);
    border-radius: 18px;
}

.rank-page-list .rank-item img {
    width: 82px;
    height: 108px;
}

.search-page-form {
    width: min(720px, 100%);
    margin: 28px auto 0;
    background: rgba(255, 255, 255, 0.96);
}

.player-hero {
    padding: 26px 0 46px;
    background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.55), transparent 32%), #080808;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.movie-player,
.player-cover,
.player-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.movie-player {
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    filter: blur(1px) saturate(1.1);
}

.player-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.15));
}

.play-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, #ffedd5);
    color: #ea580c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.player-cover:hover .play-button {
    transform: scale(1.08);
}

.play-button svg {
    width: 38px;
    height: 38px;
    margin-left: 4px;
    fill: currentColor;
}

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

.detail-main {
    padding: 30px;
}

.detail-main .eyebrow {
    background: #fff7ed;
    color: #ea580c;
}

.detail-main h1 {
    margin-top: 4px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
}

.lead-text {
    margin-top: 18px;
    font-size: 20px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
}

.detail-meta dt {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 850;
}

.detail-meta dd {
    margin-top: 5px;
    color: #111827;
    font-weight: 900;
}

.detail-main h2 {
    margin-top: 30px;
    font-size: 26px;
}

.detail-main h2 + p {
    margin-top: 12px;
    font-size: 17px;
}

.detail-side {
    position: sticky;
    top: 94px;
    padding: 18px;
}

.side-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
}

.side-card {
    margin-top: 16px;
    padding: 18px;
    box-shadow: none;
    background: #fff7ed;
}

.side-card h2 {
    font-size: 20px;
}

.site-footer {
    background: linear-gradient(180deg, #111827, #0b0f19);
    color: #d1d5db;
}

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

.footer-brand {
    color: #fff;
}

.footer-mark {
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
}

.site-footer p {
    margin-top: 14px;
    line-height: 1.8;
}

.site-footer h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 13px;
}

.footer-links a:hover {
    background: rgba(249, 115, 22, 0.22);
    color: #fdba74;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 78px;
        text-align: center;
    }

    .hero-copy p,
    .hero-copy h1,
    .hero-copy h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tags,
    .hero-actions {
        justify-content: center;
    }

    .hero-poster {
        width: min(320px, 78vw);
        margin: 0 auto;
        transform: rotate(0);
    }

    .search-band-inner,
    .split-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .category-overview-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-logo strong {
        font-size: 20px;
    }

    .site-logo small {
        display: none;
    }

    .hero-carousel,
    .hero-track {
        min-height: 780px;
    }

    .hero-slide {
        gap: 26px;
        padding: 58px 18px 86px;
    }

    .hero-copy p,
    .watch-banner p,
    .page-hero p {
        font-size: 16px;
    }

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

    .section-heading,
    .ranking-head,
    .search-result-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .card-body {
        padding: 12px;
    }

    .category-overview-card {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .category-overview-card h2 {
        font-size: 22px;
    }

    .sample-links a:nth-child(n + 3) {
        display: none;
    }

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

    .rank-item,
    .rank-page-list .rank-item {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-item em {
        display: none;
    }

    .detail-main,
    .detail-side {
        padding: 18px;
    }

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

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

@media (max-width: 460px) {
    .poster-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .primary-action,
    .ghost-action {
        width: 100%;
    }

    .search-band form,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .search-band input,
    .search-page-form input {
        min-height: 46px;
    }

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