/* 观澜榭 · 三维戏台视频页 */

.theater-section {
    padding: 0;
    min-height: 0;
    background: #050403;
    scroll-margin-top: 72px;
}

.theater-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    min-height: 560px;
    overflow: hidden;
    background: #050403;
}

.theater-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.theater-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.theater-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(5, 4, 3, 0.42) 76%, rgba(5, 4, 3, 0.82) 100%),
        linear-gradient(to bottom, rgba(5, 4, 3, 0.6) 0%, transparent 20%, transparent 64%, rgba(4, 3, 2, 0.78) 100%);
}

.theater-hud {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.theater-head {
    position: absolute;
    top: clamp(22px, 5vh, 54px);
    left: clamp(22px, 4.5vw, 64px);
    color: #f4e8cf;
    animation: theaterRise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes theaterRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.theater-head::after {
    content: '';
    display: block;
    width: 58px;
    height: 1px;
    margin-top: 16px;
    background: linear-gradient(90deg, rgba(201, 162, 92, 0.9), rgba(201, 162, 92, 0));
}

.theater-kicker {
    margin: 0 0 12px;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 11px;
    letter-spacing: 0.34em;
    color: rgba(201, 162, 92, 0.74);
}

.theater-title {
    margin: 0;
    font-family: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
    font-size: clamp(38px, 5.2vw, 62px);
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.06;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.theater-subtitle {
    margin: 12px 0 0;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(232, 216, 187, 0.56);
}

.theater-tools {
    position: absolute;
    top: clamp(22px, 5vh, 54px);
    right: clamp(22px, 4.5vw, 64px);
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.theater-tool {
    padding: 9px 18px;
    border: 1px solid rgba(201, 162, 92, 0.34);
    border-radius: 2px;
    background: rgba(14, 10, 7, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(235, 220, 194, 0.86);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 12px;
    letter-spacing: 0.26em;
    padding-left: 24px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.theater-tool:hover {
    border-color: rgba(201, 162, 92, 0.8);
    color: #fff3dc;
    background: rgba(28, 19, 12, 0.86);
}

.theater-search {
    position: absolute;
    left: 0;
    right: 0;
    top: 31%;
    width: min(680px, calc(100vw - 48px));
    margin: 0 auto;
    text-align: center;
    pointer-events: auto;
    animation: theaterRise 1.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.theater-search-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 14px;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 13px;
    letter-spacing: 0.42em;
    color: rgba(243, 214, 164, 0.9);
    text-shadow: 0 0 18px rgba(255, 178, 92, 0.25);
}

.theater-search-label span {
    padding-left: 0.42em;
}

.theater-search-label::before,
.theater-search-label::after {
    content: '';
    width: clamp(28px, 6vw, 56px);
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 162, 92, 0), rgba(201, 162, 92, 0.62));
}

.theater-search-label::after {
    transform: scaleX(-1);
}

.theater-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 20px;
    border: 1px solid rgba(201, 162, 92, 0.66);
    border-radius: 3px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 214, 158, 0.035) 0 2px, rgba(0, 0, 0, 0) 2px 8px),
        linear-gradient(180deg, rgba(78, 54, 33, 0.97) 0%, rgba(44, 30, 19, 0.98) 60%, rgba(28, 18, 11, 0.99) 100%);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.58),
        inset 0 0 0 1px rgba(255, 224, 176, 0.08),
        inset 0 1px 0 rgba(255, 224, 176, 0.14),
        inset 0 -14px 30px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.theater-search-box:focus-within {
    border-color: rgba(201, 162, 92, 0.9);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(201, 162, 92, 0.22),
        0 0 34px rgba(255, 168, 88, 0.14);
}

.theater-input {
    flex: 1;
    min-width: 0;
    padding: 14px 4px;
    border: none;
    background: transparent;
    color: #f5e8cd;
    font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    outline: none;
}

.theater-input::placeholder {
    color: rgba(226, 204, 168, 0.66);
    letter-spacing: 0.12em;
}

.theater-submit {
    flex-shrink: 0;
    padding: 13px 24px;
    border: 1px solid rgba(255, 214, 158, 0.46);
    border-radius: 2px;
    background: linear-gradient(135deg, #a53223 0%, #751c11 100%);
    color: #fdf0d6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 15px;
    letter-spacing: 0.24em;
    padding-left: 30px;
    cursor: pointer;
    transition: filter 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 214, 168, 0.26),
        0 6px 22px rgba(140, 43, 31, 0.4);
}

.theater-submit:hover {
    transform: none;
    filter: brightness(1.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 200, 150, 0.22),
        0 8px 26px rgba(140, 43, 31, 0.45);
}

.theater-search-hint {
    margin: 12px 0 0;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: rgba(214, 186, 140, 0.6);
}

.theater-typing .theater-search-hint {
    color: rgba(230, 190, 130, 0.7);
}

.theater-results-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: clamp(60px, 10vh, 96px) clamp(18px, 4vw, 64px) clamp(22px, 4.6vh, 46px);
    background: linear-gradient(to top, rgba(4, 3, 2, 0.96) 0%, rgba(4, 3, 2, 0.86) 52%, rgba(4, 3, 2, 0) 100%);
    pointer-events: auto;
    animation: theaterRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.theater-results-wrap[hidden] {
    display: none;
}

.theater-results-head {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 2px;
}

.theater-results-title {
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 13px;
    letter-spacing: 0.32em;
    color: rgba(201, 162, 92, 0.9);
}

.theater-result-count {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(214, 194, 162, 0.48);
}

.theater-scroll-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.theater-scroll-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 92, 0.34);
    border-radius: 2px;
    background: rgba(20, 14, 9, 0.7);
    color: rgba(235, 216, 184, 0.86);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.theater-scroll-btn:hover {
    border-color: rgba(201, 162, 92, 0.8);
    background: rgba(46, 30, 18, 0.9);
}

.theater-scroll-btn.is-idle {
    opacity: 0.28;
    cursor: default;
}

.theater-roller {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    border-top: 1px solid rgba(201, 162, 92, 0.26);
    border-bottom: 1px solid rgba(201, 162, 92, 0.26);
    background:
        linear-gradient(180deg, rgba(30, 21, 13, 0.9) 0%, rgba(18, 12, 8, 0.94) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.theater-roller::before,
.theater-roller::after {
    content: '';
    position: absolute;
    top: -7px;
    bottom: -7px;
    width: 26px;
    border: 1px solid rgba(201, 162, 92, 0.4);
    border-radius: 3px;
    background: linear-gradient(90deg, #3b2818 0%, #20150d 45%, #4a3320 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 220, 170, 0.08), 0 8px 20px rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

.theater-roller::before {
    left: 4px;
}

.theater-roller::after {
    right: 4px;
}

#searchResults.video-results {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(158px, 15.5vw, 214px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 4px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    outline: none;
}

#searchResults.video-results::-webkit-scrollbar {
    height: 0;
}

#searchResults.video-results.is-state {
    display: block;
    overflow: hidden;
    padding: 10px 6px 18px;
    text-align: center;
}

#searchResults .loading,
#searchResults .error,
#searchResults .empty {
    padding: 26px 16px;
    color: rgba(230, 214, 186, 0.78);
}

#searchResults .loading p,
#searchResults .empty p,
#searchResults .error p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.12em;
}

#searchResults .error {
    color: #e08a72;
}

#searchResults .error-icon,
#searchResults .empty-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

#searchResults .loading-spinner {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-width: 3px;
    border-color: rgba(201, 162, 92, 0.2);
    border-top-color: #c9a25c;
}

#searchResults .retry-btn {
    margin-top: 14px;
    padding: 9px 22px;
    border: 1px solid rgba(255, 210, 150, 0.24);
    border-radius: 2px;
    background: linear-gradient(135deg, #8c2b1f, #61180f);
    color: #f8e7c6;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 12px;
    letter-spacing: 0.2em;
}

#searchResults .empty a {
    color: #d8b374;
}

.theater-focus #searchResults .video-card {
    position: relative;
    background: linear-gradient(180deg, #261b12 0%, #17100a 100%);
    border: 1px solid rgba(201, 162, 92, 0.24);
    border-radius: 2px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theater-focus #searchResults .video-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 162, 92, 0.12);
    pointer-events: none;
}

.theater-focus #searchResults .video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 92, 0.72);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.58), 0 0 26px rgba(255, 160, 80, 0.1);
}

.theater-focus #searchResults .video-cover {
    height: clamp(100px, 12.5vh, 142px);
    width: 100%;
    object-fit: cover;
    filter: saturate(0.86) brightness(0.92);
}

.theater-focus #searchResults .video-info {
    padding: 11px 12px 13px;
}

.theater-focus #searchResults .video-title {
    margin: 0 0 7px;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #eddfc3;
    -webkit-line-clamp: 2;
}

.theater-focus #searchResults .video-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(201, 178, 140, 0.56);
}

.theater-focus #searchResults .video-meta span + span::before {
    content: '·';
    margin-right: 8px;
    color: rgba(201, 162, 92, 0.5);
}

/* 快速试听 */
.theater-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 18px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(201, 162, 92, 0.14);
}

.theater-quick[hidden] {
    display: none;
}

.theater-quick-label {
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(201, 162, 92, 0.28);
    border-radius: 2px;
    background: rgba(201, 162, 92, 0.05);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(201, 162, 92, 0.8);
    margin-right: 2px;
}

.theater-quick button {
    padding: 7px 18px;
    border: 1px solid rgba(201, 162, 92, 0.34);
    border-radius: 2px;
    background: rgba(30, 20, 12, 0.55);
    color: rgba(228, 208, 172, 0.86);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.theater-quick button:hover {
    border-color: rgba(201, 162, 92, 0.7);
    background: rgba(201, 162, 92, 0.1);
    color: #f4e3c2;
}

/* 欢迎/空状态在暗色戏台上的对比 */
.theater-focus #searchResults .empty {
    color: #e7d7b7;
}

.theater-focus #searchResults .empty p:first-of-type {
    color: #f1e3c6;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-shadow: 0 0 22px rgba(255, 178, 92, 0.18);
}

.theater-focus #searchResults .empty p[style] {
    color: rgba(233, 214, 178, 0.88) !important;
    font-size: 13px !important;
    letter-spacing: 0.1em;
}

.theater-focus #searchResults .empty-icon {
    font-size: 0;
    line-height: 1;
    margin-bottom: 10px;
}

.theater-focus #searchResults .empty-icon::after {
    content: '灯';
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 28px;
    color: rgba(201, 162, 92, 0.85);
    text-shadow: 0 0 18px rgba(255, 178, 92, 0.35);
}

.theater-panel {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3.4vw, 48px);
    background: radial-gradient(ellipse at 50% 42%, rgba(6, 4, 3, 0.72) 0%, rgba(4, 3, 2, 0.92) 76%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    overflow-y: auto;
    pointer-events: auto;
}

.theater-panel.is-open {
    display: flex;
}

.theater-panel-body {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2.6vw, 34px);
    border: 1px solid rgba(201, 162, 92, 0.58);
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(30, 21, 14, 0.98) 0%, rgba(18, 12, 8, 0.99) 100%);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.78),
        0 0 0 1px rgba(201, 162, 92, 0.12),
        0 0 60px rgba(255, 168, 88, 0.06),
        inset 0 0 0 1px rgba(255, 224, 176, 0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 92, 0.4) transparent;
    animation: theaterRise 0.35s ease both;
}

.theater-panel-body::-webkit-scrollbar {
    width: 6px;
}

.theater-panel-body::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 92, 0.36);
}

.theater-panel-close {
    position: sticky;
    top: 0;
    z-index: 3;
    align-self: flex-end;
    margin-left: auto;
    margin-bottom: -50px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    min-height: 50px;
    border: 1px solid rgba(255, 214, 168, 0.45);
    border-radius: 2px;
    background: linear-gradient(135deg, #a53223, #6b1a13);
    color: #fdf0d6;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 17px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 168, 88, 0.16);
    line-height: 1;
    cursor: pointer;
    transform: rotate(-3deg);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.theater-panel-close:hover {
    filter: brightness(1.18);
    transform: rotate(0deg) scale(1.04);
}

.theater-panel .video-player-container {
    margin: 0 0 20px;
    border: 1px solid rgba(201, 162, 92, 0.26);
    border-radius: 2px;
    height: clamp(200px, 36vh, 420px);
    max-height: none;
    flex-shrink: 0;
    background: radial-gradient(ellipse at 50% 46%, #251912 0%, #120c08 58%, #090604 100%);
    overflow: hidden;
}

.theater-panel .video-detail-container {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #eadcc2;
}

.theater-panel .detail-header {
    display: flex;
    gap: clamp(16px, 2.4vw, 28px);
    align-items: flex-start;
    padding-right: 48px;
}

.theater-panel .detail-cover {
    width: clamp(96px, 15vw, 168px);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(201, 162, 92, 0.4);
    border-radius: 2px;
    filter: saturate(0.9) brightness(0.94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.theater-panel .detail-info {
    flex: 1;
    min-width: 0;
}

.theater-panel .detail-title {
    margin: 0 0 12px;
    font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.32;
    color: #f4e7cd;
}

.theater-panel .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.theater-panel .detail-meta span {
    padding: 4px 10px;
    border: 1px solid rgba(201, 162, 92, 0.28);
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(222, 200, 164, 0.76);
}

.theater-panel .detail-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: rgba(236, 220, 192, 0.82);
}

.theater-panel .episode-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(201, 162, 92, 0.18);
}

.theater-panel .episode-title {
    margin: 0 0 12px;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: rgba(201, 162, 92, 0.86);
}

.theater-panel .episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 188px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 92, 0.34) transparent;
}

.theater-panel .episode-btn {
    padding: 9px 16px;
    min-height: 34px;
    border: 1px solid rgba(201, 162, 92, 0.24);
    border-radius: 2px;
    background: rgba(38, 26, 17, 0.6);
    color: rgba(230, 214, 186, 0.8);
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.theater-panel .episode-btn:hover {
    border-color: rgba(201, 162, 92, 0.66);
    background: rgba(70, 44, 26, 0.72);
    color: #fff2d6;
}

.theater-panel .episode-btn.active {
    border-color: rgba(201, 162, 92, 0.85);
    background: linear-gradient(135deg, #8c2b1f, #61180f);
    color: #f8e7c6;
}

.theater-panel .sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theater-panel .download-section,
.theater-panel .share-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(201, 162, 92, 0.18);
}

.theater-panel .download-btn,
.theater-panel .share-btn {
    padding: 10px 22px;
    border: 1px solid rgba(201, 162, 92, 0.34);
    border-radius: 2px;
    background: rgba(38, 26, 17, 0.66);
    color: rgba(235, 219, 191, 0.86);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.theater-panel .download-btn:hover,
.theater-panel .share-btn:hover {
    border-color: rgba(201, 162, 92, 0.8);
    background: rgba(78, 48, 28, 0.8);
    color: #fff2d6;
}

.theater-panel .download-progress {
    height: 4px;
    margin-top: 12px;
    border-radius: 2px;
    background: rgba(201, 162, 92, 0.16);
    overflow: hidden;
}

.theater-panel .download-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8c2b1f, #d8a25c);
    width: 0;
    transition: width 0.2s linear;
}

.theater-panel .download-status {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(210, 188, 152, 0.6);
}

.theater-panel .retry-btn {
    margin-top: 18px;
    padding: 9px 22px;
    border: 1px solid rgba(201, 162, 92, 0.3);
    border-radius: 2px;
    background: rgba(38, 26, 17, 0.6);
    color: rgba(235, 219, 191, 0.82);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    cursor: pointer;
}

.theater-panel .retry-btn:hover {
    border-color: rgba(201, 162, 92, 0.78);
    color: #fff2d6;
}

.theater-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #050403;
    color: rgba(201, 162, 92, 0.8);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.theater-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.theater-loading p {
    margin: 0;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 12px;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
}

.theater-seal {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 92, 0.5);
    border-radius: 2px;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: 22px;
    color: rgba(240, 216, 174, 0.9);
    transform: rotate(-3deg);
    animation: theaterSeal 3.2s ease-in-out infinite;
}

@keyframes theaterSeal {
    0%, 100% { opacity: 0.55; transform: rotate(-3deg) scale(0.97); }
    50% { opacity: 1; transform: rotate(2deg) scale(1.03); }
}

body.theater-focus .navbar,
body.theater-focus .footer {
    display: none !important;
}

body.theater-focus .main-content {
    margin-top: 0;
}

body.theater-focus .theater-section {
    scroll-margin-top: 0;
}

body.theater-focus .theater-stage {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

body.theater-focus #aiChatWidget,
body.theater-focus .ai-chat-badge {
    display: none !important;
}

body.theater-focus .return-isle {
    display: none !important;
}

body.theater-detail .theater-head,
body.theater-detail .theater-search,
body.theater-detail .theater-results-wrap,
body.theater-detail .theater-tools {
    opacity: 0;
    pointer-events: none;
}

.theater-search .search-history {
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(24, 17, 11, 0.98) !important;
    border: 1px solid rgba(201, 162, 92, 0.36) !important;
    border-radius: 0 0 3px 3px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6) !important;
    text-align: left;
}

.theater-search .search-history > div {
    border-bottom: 1px solid rgba(201, 162, 92, 0.12) !important;
    color: rgba(226, 208, 176, 0.8) !important;
}

.theater-search .search-history > div:hover {
    background: rgba(201, 162, 92, 0.08);
}

.theater-search .search-history button {
    color: rgba(201, 162, 92, 0.72) !important;
}

body.theater-flat .theater-stage {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 96px 0 72px;
    overflow: visible;
}

body.theater-flat .theater-canvas,
body.theater-flat .theater-vignette,
body.theater-flat .theater-loading {
    display: none;
}

body.theater-flat .theater-hud {
    position: relative;
    inset: auto;
}

body.theater-flat .theater-head {
    position: static;
    text-align: center;
    margin-bottom: 32px;
}

body.theater-flat .theater-head::after {
    margin-left: auto;
    margin-right: auto;
}

body.theater-flat .theater-tools {
    position: static;
    justify-content: center;
    margin-bottom: 18px;
}

body.theater-flat .theater-search {
    position: static;
    margin: 0 auto 36px;
}

body.theater-flat .theater-results-wrap {
    position: static;
    background: none;
    padding: 0 clamp(16px, 4vw, 48px) 24px;
}

body.theater-flat #searchResults.video-results {
    grid-auto-columns: clamp(158px, 22vw, 214px);
}

body.theater-flat .theater-panel {
    position: fixed;
}

@media (max-width: 1024px) {
    .theater-search {
        top: 29%;
    }

    #searchResults.video-results {
        grid-auto-columns: clamp(150px, 21vw, 190px);
    }
}

@media (max-width: 768px) {
    .theater-stage {
        min-height: 520px;
    }

    .theater-head {
        top: 20px;
        left: 20px;
    }

    .theater-title {
        font-size: 34px;
    }

    .theater-subtitle {
        display: none;
    }

    .theater-tools {
        top: 18px;
        right: 18px;
    }

    .theater-tool {
        padding: 8px 14px;
        padding-left: 18px;
        font-size: 11px;
    }

    .theater-search {
        top: 23%;
        width: calc(100vw - 32px);
    }

    .theater-search-label {
        font-size: 11px;
        letter-spacing: 0.34em;
        margin-bottom: 10px;
    }

    .theater-search-box {
        padding: 6px 6px 6px 14px;
    }

    .theater-input {
        padding: 12px 2px;
        font-size: 14px;
    }

    .theater-submit {
        padding: 12px 16px;
        padding-left: 22px;
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .theater-search-hint {
        font-size: 10px;
        letter-spacing: 0.16em;
    }

    .theater-results-wrap {
        padding: 56px 12px 18px;
    }

    .theater-quick {
        gap: 8px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .theater-quick-label {
        padding: 4px 8px;
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .theater-quick button {
        padding: 5px 12px;
        font-size: 11.5px;
        letter-spacing: 0.12em;
    }

    .theater-results-head {
        gap: 10px;
        margin-bottom: 8px;
        padding: 0 6px;
    }

    .theater-results-title {
        font-size: 12px;
        letter-spacing: 0.24em;
    }

    .theater-scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .theater-roller {
        padding: 0 24px;
    }

    .theater-roller::before,
    .theater-roller::after {
        width: 18px;
    }

    #searchResults.video-results {
        grid-auto-columns: 44vw;
        gap: 12px;
        padding: 12px 2px 14px;
    }

    .theater-focus #searchResults .video-cover {
        height: 108px;
    }

    .theater-panel {
        padding: 10px;
    }

    .theater-panel-body {
        max-height: calc(100dvh - 40px);
        padding: 18px 16px 24px;
    }

    .theater-panel-close {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        min-height: 42px;
        font-size: 15px;
        margin-bottom: -42px;
    }

    .theater-panel .video-player-container {
        height: clamp(160px, 30vh, 280px);
    }

    .theater-panel .detail-header {
        padding-right: 0;
        gap: 14px;
    }

    .theater-panel .detail-cover {
        width: 92px;
    }

    .theater-panel .detail-title {
        font-size: 19px;
    }

    .theater-panel .detail-description {
        font-size: 12px;
        line-height: 1.75;
    }

    .theater-panel .detail-header {
        flex-wrap: wrap;
    }

    .theater-head::after {
        margin-top: 12px;
    }
}

@media (max-height: 620px) {
    .theater-stage {
        min-height: 0;
    }

    .theater-head {
        top: 12px;
    }

    .theater-kicker,
    .theater-subtitle {
        display: none;
    }

    .theater-title {
        font-size: 28px;
    }

    .theater-search {
        top: 20%;
    }

    .theater-search-label,
    .theater-search-hint {
        display: none;
    }

    .theater-results-wrap {
        padding: 28px 16px 6px;
    }

    .theater-results-head {
        margin-bottom: 5px;
    }

    .theater-results-title {
        font-size: 11px;
        letter-spacing: 0.22em;
    }

    .theater-roller {
        padding: 0 22px;
    }

    #searchResults.video-results {
        grid-auto-columns: 150px;
        gap: 12px;
        padding: 8px 2px 10px;
    }

    .theater-focus #searchResults .video-cover {
        height: 62px;
    }

    .theater-focus #searchResults .video-info {
        padding: 6px 8px 8px;
    }

    .theater-focus #searchResults .video-title {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }

    .theater-focus #searchResults .video-meta {
        font-size: 9px;
    }

    .theater-scroll-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .theater-quick {
        display: none !important;
    }

    .theater-head {
        top: 10px;
        left: 18px;
    }

    .theater-title {
        font-size: 26px;
    }

    .theater-head::after {
        margin-top: 8px;
    }

    .theater-tools {
        top: 14px;
        right: 14px;
    }

    .theater-tool {
        padding: 6px 10px;
        padding-left: 14px;
        font-size: 10px;
    }

    .theater-search {
        top: 17%;
    }

    .theater-search-box {
        padding: 4px 4px 4px 12px;
    }

    .theater-input {
        padding: 9px 2px;
        font-size: 13px;
    }

    .theater-submit {
        padding: 9px 14px;
        padding-left: 18px;
        font-size: 12px;
        letter-spacing: 0.14em;
    }

    .theater-results-wrap {
        padding: 14px 14px 4px;
    }

    .theater-results-head {
        margin-bottom: 3px;
    }

    .theater-results-title {
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .theater-roller {
        padding: 0 18px;
    }

    .theater-roller::before,
    .theater-roller::after {
        width: 14px;
        top: -5px;
        bottom: -5px;
    }

    #searchResults.video-results {
        grid-auto-columns: 138px;
        gap: 10px;
        padding: 6px 2px 8px;
    }

    .theater-focus #searchResults .video-cover {
        height: 44px;
    }

    .theater-focus #searchResults .video-info {
        padding: 5px 7px 7px;
    }

    .theater-focus #searchResults .video-title {
        font-size: 10px;
        line-height: 1.35;
        margin-bottom: 2px;
        -webkit-line-clamp: 2;
    }

    .theater-focus #searchResults .video-meta {
        font-size: 8.5px;
    }

    .theater-scroll-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theater-head,
    .theater-search,
    .theater-results-wrap,
    .theater-panel-body {
        animation: none;
    }

    .theater-seal {
        animation: none;
    }
}
