:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-soft: #162033;
    --surface-hover: #25344a;
    --border: #334155;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #fb7185;
}

html {
    color-scheme: dark;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: var(--accent);
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1:focus {
    outline: none;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
    border: 2px solid var(--bg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 搜索首屏 */
.home-backdrop {
    position: fixed;
    z-index: 0;
    inset: -40px;
    background-position: center;
    background-size: cover;
    filter: blur(28px) brightness(.32) saturate(.85);
    opacity: .9;
    pointer-events: none;
    transform: scale(1.08);
}

.search-hero {
    position: relative;
    z-index: 1;
    max-width: 860px;
    min-height: min(650px, calc(100vh - 190px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.search-hero.compact {
    min-height: 0;
    margin: 8px auto 36px;
}

.search-hero.compact h1 {
    display: none;
}

.section-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.search-hero h1 {
    margin: 0 0 30px;
    color: var(--text);
    font-size: clamp(34px, 4.5vw, 50px);
    font-weight: 700;
    letter-spacing: -1.8px;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 7px 7px 7px 52px;
    border: 1px solid rgba(71, 85, 105, .85);
    border-radius: 14px;
    background: rgba(30, 41, 59, .84);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
    transition: border-color .2s, box-shadow .2s;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .08), 0 20px 60px rgba(0, 0, 0, .28);
}

.search-input-icon {
    position: absolute;
    top: 50%;
    left: 21px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transform: translateY(-62%);
    pointer-events: none;
}

.search-input-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-muted);
    transform: rotate(45deg);
    transform-origin: center;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0 !important;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    line-height: 44px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.search-clear {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-right: 4px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
}

.search-clear:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.search-submit,
.btn-primary-custom,
.btn-ghost-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    font-weight: 650;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.search-submit {
    flex: 0 0 auto;
    height: 48px;
    margin-left: 8px;
    padding: 0 24px;
    border: 0;
    background: var(--accent);
    color: #082f49;
    line-height: 1;
    white-space: nowrap;
}

.search-submit:hover,
.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: #082f49;
    transform: translateY(-1px);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.result-count {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* 影片卡片 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: #475569;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}

.poster-link {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--surface-soft);
}

.movie-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s;
}

.movie-card:hover .movie-poster {
    transform: scale(1.025);
}

.poster-shade {
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, .45));
    pointer-events: none;
}

.poster-fallback {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.type-badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(15, 23, 42, .85);
    color: var(--text);
    font-size: 10px;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 15px;
}

.movie-meta {
    min-height: 20px;
    display: flex;
    gap: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

.movie-card h3 {
    min-height: 44px;
    margin: 4px 0 8px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
}

.movie-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.movie-card h3 a:hover {
    color: var(--accent);
}

.movie-description {
    min-height: 58px;
    margin-bottom: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.75;
}

.movie-card-actions {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-primary-custom {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #082f49;
    font-size: 12px;
}

.movie-card-actions > .btn-primary-custom {
    width: 100%;
}

.secondary-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
}

.secondary-actions a {
    color: var(--text-muted);
    font-size: 10px;
    text-decoration: none;
}

.secondary-actions a:hover {
    color: var(--accent);
}

/* 加载与空状态 */
.skeleton {
    border-radius: 8px;
    background: linear-gradient(100deg, var(--surface-soft) 20%, #2b3a50 40%, var(--surface-soft) 60%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-poster {
    aspect-ratio: 2 / 3;
    border-radius: 0;
}

.skeleton-card-body {
    padding: 18px 15px;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 14px;
}

.skeleton-line.short {
    width: 36%;
}

.skeleton-line.medium {
    width: 68%;
}

.skeleton-line.title {
    width: 80%;
    height: 36px;
    margin-top: 20px;
}

@keyframes skeleton-shimmer {
    to { background-position-x: -200%; }
}

.empty-state {
    padding: 64px 24px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    text-align: center;
}

.empty-state-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 24px;
}

.empty-state h3,
.empty-state h1 {
    margin-bottom: 8px;
    font-size: 20px;
}

.empty-state p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.empty-state.compact {
    padding: 40px 24px;
}

/* 详情页 */
.detail-page {
    padding-top: 4px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.detail-hero {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 48px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.detail-poster-wrap {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.detail-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy {
    min-width: 0;
    align-self: center;
}

.detail-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.imdb-rating {
    color: var(--warning) !important;
}

.original-title {
    margin: -6px 0 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.detail-meta span + span::before {
    content: "·";
    margin: 0 10px;
    color: var(--border);
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.genre-badge,
.country-badge,
.quality-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    white-space: nowrap;
}

.genre-badge {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 11px;
}

.detail-description {
    max-width: 800px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.9;
}

.detail-external-links,
.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: inherit;
    gap: 10px;
}

.btn-ghost-custom {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
}

.btn-ghost-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.skeleton-detail {
    min-height: 410px;
}

.detail-poster-skeleton {
    aspect-ratio: 2 / 3;
}

.offer-skeleton {
    height: 260px;
}

.detail-error {
    margin-top: 50px;
}

/* 流媒体 / 蓝光分类 */
.media-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.media-tabs > button {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text-muted);
    text-align: left;
    transition: border-color .2s, background .2s;
}

.media-tabs > button:hover {
    border-color: #475569;
    background: var(--surface);
}

.media-tabs > button.active {
    border-color: var(--accent);
    background: rgba(56, 189, 248, .07);
    color: var(--accent);
}

.media-tab-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--surface);
    font-size: 17px;
}

.media-tabs button > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.media-tabs strong {
    color: var(--text);
    font-size: 14px;
}

.media-tabs small {
    color: var(--text-muted);
    font-size: 11px;
}

.media-tab-count {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 11px;
}

/* 报价汇总与筛选 */
.offers-section {
    padding-top: 4px;
}

.offer-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.summary-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.summary-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(56, 189, 248, .08);
    color: var(--accent);
    font-size: 17px;
}

.summary-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.summary-card div > span,
.summary-card small {
    color: var(--text-muted);
    font-size: 11px;
}

.summary-card strong {
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-chip {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
}

.filter-chip:hover {
    background: var(--surface);
    color: var(--text);
}

.filter-chip.active {
    border-color: rgba(56, 189, 248, .3);
    background: rgba(56, 189, 248, .1);
    color: var(--accent);
}

.offer-search {
    min-width: 210px;
    height: 34px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
}

.offer-search:focus-within {
    border-color: var(--accent);
}

.offer-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
}

.offer-search input::placeholder {
    color: var(--text-muted);
}

.offer-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.offer-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 12px;
}

.region-list,
.quality-list {
    max-width: 260px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    white-space: normal;
}

.quality-list {
    max-width: 150px;
}

.offer-table th,
.offer-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.offer-table th {
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
}

.offer-table th button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.offer-table th button:hover {
    color: var(--accent);
}

.offer-table tbody tr:last-child td {
    border-bottom: 0;
}

.offer-table tbody tr:hover {
    background: rgba(148, 163, 184, .035);
}

.platform-name {
    font-weight: 600;
}

.country-badge {
    padding: 2px 7px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
}

.offer-price {
    color: var(--text);
    font-weight: 650;
}

.quality-badge {
    padding: 3px 8px;
    background: rgba(52, 211, 153, .08);
    color: var(--success);
    font-size: 10px;
}

/* 平台折叠报价 */
.platform-offer-count,
.price-from {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 400;
}

.country-badge.more {
    border-style: dashed;
    color: var(--accent);
}

.expand-offers {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
    white-space: nowrap;
}

.expand-offers:hover,
.expand-offers[aria-expanded="true"] {
    border-color: var(--accent);
    background: rgba(56, 189, 248, .08);
}

.platform-summary-row:has(+ .platform-details-row) td {
    border-bottom-color: transparent;
}

.platform-details-row > td {
    padding: 0 16px 16px;
    background: var(--surface-soft);
    white-space: normal;
}

.platform-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.platform-details-header strong {
    color: var(--text);
    font-size: 12px;
}

.platform-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.platform-offer-detail {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px 34px 1fr auto 44px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 10px;
    text-decoration: none;
}

.platform-offer-detail:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.platform-offer-detail strong {
    color: var(--text);
    font-size: 11px;
    white-space: nowrap;
}

.detail-type {
    color: var(--accent);
}

.detail-qualities {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-go {
    color: var(--accent);
    text-align: right;
    white-space: nowrap;
}

/* 蓝光实体碟 */
.source-link {
    color: var(--accent);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.bluray-region-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.bluray-release-list {
    display: grid;
    gap: 18px;
}

.bluray-release-card {
    display: grid;
    grid-template-columns: 142px 1fr;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.bluray-cover-wrap {
    position: relative;
    align-self: start;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: var(--surface-soft);
}

.bluray-cover-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bluray-format {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .9);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}

.bluray-release-content {
    min-width: 0;
}

.bluray-release-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bluray-release-header h3 {
    margin-bottom: 4px;
    font-size: 19px;
}

.bluray-release-header p {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 11px;
}

.release-meta span:empty {
    display: none;
}

.bluray-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.bluray-spec-grid > div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
}

.bluray-spec-grid .spec-wide {
    grid-column: 1 / -1;
}

.bluray-spec-grid .spec-half {
    grid-column: span 2;
}

.bluray-spec-grid dt {
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .4px;
}

.bluray-spec-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 11px;
    line-height: 1.65;
}

.audio-track-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.audio-track-list > span {
    padding: 6px 0;
    border-bottom: 1px solid rgba(51, 65, 85, .65);
}

.audio-track-list > span:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.subtitle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.subtitle-list > span {
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.6;
}

.source-note {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

/* Blazor 启动与错误 */
#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    padding: 12px 24px;
    border-top: 1px solid var(--danger);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
}

.loading-progress {
    position: relative;
    display: block;
    width: 72px;
    height: 72px;
    margin: 25vh auto 12px;
}

.loading-progress circle {
    fill: none;
    stroke: var(--border);
    stroke-width: .6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%;
}

.loading-progress-text {
    color: var(--text-muted);
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "正在加载");
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-hero {
        grid-template-columns: 200px 1fr;
        gap: 26px;
        padding: 24px;
    }

    .bluray-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-summary-grid {
        grid-template-columns: 1fr;
    }

    .offer-search {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .bluray-region-filter {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .platform-detail-grid {
        grid-template-columns: 1fr;
    }

    .platform-details-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .media-tabs > button {
        min-height: 64px;
        gap: 9px;
        padding: 10px;
    }

    .media-tab-icon {
        width: 30px;
        height: 30px;
    }

    .media-tabs small {
        display: none;
    }

    .bluray-release-card {
        grid-template-columns: 88px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .bluray-release-header {
        flex-direction: column;
        gap: 8px;
    }

    .bluray-release-header h3 {
        font-size: 16px;
    }

    .bluray-spec-grid {
        grid-template-columns: 1fr;
    }

    .bluray-spec-grid .spec-wide,
    .bluray-spec-grid .spec-half {
        grid-column: span 1;
    }

    .audio-track-list {
        grid-template-columns: 1fr;
    }

    .audio-track-list > span:nth-last-child(-n + 2) {
        border-bottom: 1px solid rgba(51, 65, 85, .65);
    }

    .audio-track-list > span:last-child {
        border-bottom: 0;
    }

    .source-link {
        display: none;
    }

    .search-hero {
        min-height: calc(100vh - 180px);
        margin: 0 auto;
        text-align: center;
    }

    .search-hero.compact {
        min-height: 0;
        margin: 4px auto 28px;
    }

    .search-hero h1 {
        margin-bottom: 24px;
        letter-spacing: -1px;
    }

    .search-form {
        height: 56px;
        padding-left: 44px;
    }

    .search-input-icon {
        left: 16px;
    }

    .search-input {
        height: 40px;
        font-size: 16px;
        line-height: 40px;
    }

    .search-submit {
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 14px;
    }

    .movie-description {
        display: none;
    }

    .movie-card-actions {
        margin-top: 10px;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 5px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .detail-hero {
        grid-template-columns: 110px 1fr;
        align-items: start;
        gap: 18px;
        padding: 18px;
    }

    .detail-copy h1 {
        font-size: 24px;
    }

    .detail-description,
    .detail-external-links {
        grid-column: 1 / -1;
    }

    .detail-description {
        display: none;
    }

    .genre-list {
        margin: 12px 0 0;
    }

    .offer-filters {
        align-items: flex-start;
    }

    .filter-row {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-table th,
    .offer-table td {
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
