:root {
    --teal: #0d9488;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --amber: #f59e0b;
    --orange: #f97316;
    --rose: #e11d48;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f3f7fb;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0d9488, #06b6d4);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.28);
}

.nav-wrap {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: rotate(10deg) scale(1.05);
}

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

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

.nav-link,
.dropdown-button {
    border: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 190px;
    padding: 8px;
    color: var(--ink);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}

.dropdown-menu a:hover {
    color: var(--teal);
    background: #ecfeff;
}

.top-search {
    width: 280px;
    display: flex;
    align-items: center;
    position: relative;
}

.top-search input {
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 46px 0 18px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
}

.top-search button {
    position: absolute;
    right: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    outline: 0;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--teal);
    background: #ffffff;
    font-weight: 800;
}

.mobile-nav-link {
    display: block;
    padding: 10px 4px;
    color: #ffffff;
    font-weight: 800;
}

.mobile-nav-link.sub {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav-link.active {
    color: #fde68a;
}

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

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(90deg, #f97316, #ec4899, #e11d48);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 520px;
    margin: 0 auto;
    padding: 72px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 22px;
    font-size: clamp(18px, 2vw, 25px);
    color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #0d9488);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.25);
}

.hero .primary-button {
    color: #e11d48;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

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

.primary-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.quick-panel {
    margin-top: -36px;
    position: relative;
    z-index: 8;
    padding: 0 24px;
}

.quick-wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.quick-wrap a {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease;
}

.quick-wrap a:hover {
    transform: translateY(-4px);
}

.quick-wrap strong {
    display: block;
    font-size: 20px;
    color: var(--ink);
}

.quick-wrap span {
    color: var(--muted);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

.inner-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.soft-section {
    background: linear-gradient(90deg, #ecfdf5, #ecfeff);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    min-height: 40px;
    color: #0e7490;
    background: #cffafe;
    white-space: nowrap;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.15);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.25s ease;
}

.movie-card-link:hover .movie-thumb::after {
    background: rgba(15, 23, 42, 0.32);
}

.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    font-size: 12px;
    font-weight: 900;
}

.movie-play {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .movie-play {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 18px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--teal);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.movie-meta span,
.rank-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.horizontal-card a {
    display: flex;
    min-height: 132px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.horizontal-card a:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.horizontal-thumb {
    position: relative;
    flex: 0 0 210px;
    overflow: hidden;
    background: #ccfbf1;
}

.horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-thumb span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.22);
    font-size: 30px;
}

.horizontal-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.horizontal-body h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.horizontal-body p {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.horizontal-body div {
    display: flex;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #ecfeff, #ccfbf1);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-tile {
    padding: 24px;
    min-height: 178px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin: 16px 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.category-tile small {
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #0d9488, #10b981);
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 46px 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 110px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 950;
}

.top-rank .rank-number {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.rank-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item p {
    display: -webkit-box;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

.category-overview-card {
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}

.category-overview-main h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-overview-main p {
    min-height: 58px;
    margin: 0 0 16px;
    color: var(--muted);
}

.category-overview-main span {
    color: #0e7490;
    font-weight: 900;
}

.category-samples {
    padding: 14px 18px 18px;
    display: grid;
    gap: 8px;
}

.category-samples a {
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-samples a:hover {
    color: var(--teal);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

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

.breadcrumb em {
    font-style: normal;
    opacity: 0.7;
}

.category-filter-bar {
    margin-bottom: 22px;
}

.category-filter-bar input,
.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    background: #ffffff;
    outline: 0;
}

.category-filter-bar input {
    width: min(100%, 520px);
}

.category-filter-bar input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 28px 0 20px;
}

.search-result-head h2 {
    margin: 0;
    font-size: 28px;
}

.search-result-head span {
    color: var(--muted);
    font-weight: 800;
}

.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-breadcrumb {
    margin: 0 0 18px;
    color: #64748b;
}

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

.site-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
}

.site-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.38));
    cursor: pointer;
}

.player-cover span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #e11d48;
    background: rgba(255, 255, 255, 0.94);
    font-size: 40px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
    transition: transform 0.2s ease;
}

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

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

.detail-article,
.related-section,
.aside-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-title-row p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 900;
}

.detail-article .detail-tags span {
    color: #0e7490;
    background: #ecfeff;
}

.detail-block {
    margin-top: 28px;
}

.detail-block h2,
.aside-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-block p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.related-section .section-head {
    margin-bottom: 20px;
}

.poster-card {
    margin-top: 42px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.poster-card h2 {
    margin-bottom: 8px;
}

.poster-card p {
    margin: 0;
    color: var(--muted);
}

.side-rank-list .rank-item a {
    grid-template-columns: 38px 74px minmax(0, 1fr);
    min-height: 88px;
    padding: 10px;
}

.side-rank-list .rank-item img {
    width: 74px;
    height: 50px;
}

.side-rank-list .rank-meta {
    display: none;
}

.side-rank-list .rank-number {
    width: 32px;
    height: 32px;
}

.movie-card.compact .movie-card-body h3 {
    min-height: auto;
    font-size: 16px;
}

.movie-card.compact .movie-card-body p {
    min-height: 40px;
    font-size: 13px;
}

.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.26);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 28px;
}

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

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .top-search {
        width: 220px;
    }

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

    .rank-grid,
    .movie-grid.three-col,
    .full-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .poster-card {
        margin-top: 0;
    }
}

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

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

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

    .quick-wrap {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid.four-col,
    .movie-grid.three-col,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .full-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 580px) {
    .nav-wrap {
        height: 62px;
        padding: 0 16px;
    }

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

    .hero-content,
    .page-hero > div,
    .content-section,
    .detail-shell,
    .footer-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero p {
        font-size: 17px;
    }

    .hero-actions,
    .section-head,
    .detail-title-row,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-panel {
        padding: 0 16px;
    }

    .movie-grid.four-col,
    .movie-grid.three-col,
    .category-grid,
    .category-overview-grid,
    .rank-grid,
    .full-rank-list {
        grid-template-columns: 1fr;
    }

    .horizontal-card a {
        min-height: auto;
    }

    .horizontal-thumb {
        flex-basis: 130px;
    }

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

    .rank-item a {
        grid-template-columns: 40px 82px minmax(0, 1fr);
    }

    .rank-item img {
        width: 82px;
        height: 56px;
    }

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