:root { --bg: #090b10; --panel: rgba(18, 24, 36, 0.84); --panel-strong: rgba(14, 19, 30, 0.96); --text: #eef2ff; --muted: #9aa6c4; --line: rgba(154, 166, 196, 0.18); --accent-strong: #90dcff; --score-good: #4ade80; --score-medium: #f59e0b; --score-bad: #fb7185; --shadow: 0 24px 60px rgba(0, 0, 0, 0.35); --radius: 22px; --toolbar-peek: 22px; }
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: #0b1118; }
body { min-height: 100vh; margin: 0; color: var(--text); background-color: #0b1118; background-image: radial-gradient(circle at top left, rgba(89, 199, 255, 0.18), transparent 28%), radial-gradient(circle at top right, rgba(87, 99, 255, 0.14), transparent 22%), linear-gradient(180deg, #0b1118 0%, var(--bg) 44%, #0e1420 100%); background-repeat: no-repeat; background-size: cover; font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto 48px; padding-top: 38px; }
.toolbar-dock { position: fixed; top: 0; left: 50%; width: min(1180px, calc(100vw - 32px)); transform: translateX(-50%) translateY(calc(-100% + var(--toolbar-peek))); z-index: 20; transition: transform 220ms ease; }
.toolbar-dock[data-open="true"] { transform: translateX(-50%) translateY(0); }
.toolbar-toggle { display: flex; align-items: center; justify-content: center; width: 52px; height: 24px; margin: 0 auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--panel-strong); color: var(--muted); box-shadow: var(--shadow); cursor: pointer; }
.toolbar-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 180ms ease, color 120ms ease; }
.toolbar-toggle:hover svg { color: var(--accent-strong); }
.toolbar-dock[data-open="true"] .toolbar-toggle svg { transform: rotate(180deg); }
.toolbar, .empty { backdrop-filter: blur(16px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.toolbar, .toolbar-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar { padding: 14px; margin-bottom: 18px; justify-content: space-between; }
.toolbar-panel { margin-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.toolbar-row { flex: 1 1 360px; }
.control, .button { min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-strong); color: var(--text); font: inherit; }
.control { padding: 0 12px; }
select.control { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' fill='none' stroke='%239aa6c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 12px; }
.button { cursor: pointer; padding: 0 16px; font-weight: 700; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.button:hover { transform: translateY(-1px); border-color: rgba(89, 199, 255, 0.35); }
.button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(14, 19, 30, 0.98), rgba(12, 16, 25, 0.98)); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); animation: rise 360ms ease forwards; }
.poster-link { position: relative; display: block; background: #101826; }
.poster { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: linear-gradient(180deg, #142033, #0d1420); }
.score-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.2px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); backdrop-filter: blur(6px); }
.score-badge[data-tone="good"] { background: rgba(74, 222, 128, 0.92); color: #07170d; }
.score-badge[data-tone="medium"] { background: rgba(245, 158, 11, 0.92); color: #241602; }
.score-badge[data-tone="bad"] { background: rgba(251, 113, 133, 0.92); color: #26070f; }
.score-badge[data-tone="unknown"] { background: rgba(8, 19, 30, 0.88); color: var(--text); }
.content { padding: 12px 14px 14px; display: flex; flex-direction: column; min-height: 66px; }
.title { margin: 0; font-size: 12px; line-height: 1.4; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title a { display: block; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title a:hover { color: var(--accent-strong); }
.meta { display: flex; gap: 10px; align-items: center; justify-content: flex-start; margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.empty, .loading { padding: 30px; text-align: center; color: var(--muted); }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 88px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(154, 166, 196, 0.22); border-top-color: var(--accent-strong); border-radius: 999px; animation: spin 800ms linear infinite; }
.empty .loading { min-height: 180px; flex-direction: column; gap: 14px; }
.loading-note { font-size: 13px; letter-spacing: 0.2px; }
.modal { position: fixed; inset: 0; padding: 20px; display: flex; align-items: center; justify-content: center; background: rgba(4, 7, 12, 0.78); backdrop-filter: blur(14px); z-index: 30; }
.modal-frame { position: relative; width: min(920px, 100%); }
.modal-card { max-height: 88vh; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-strong); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: -14px; right: -14px; width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 999px; font-size: 24px; line-height: 1; background: #0d1420; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.modal-layout { display: grid; gap: 18px; }
.modal-media { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.modal-poster { width: 100%; height: 100%; border-radius: 16px; display: block; object-fit: cover; background: #101826; }
.modal-header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.modal-title-row { display: flex; gap: 10px; align-items: center; }
.modal-title { margin: 0; font-size: 24px; line-height: 1.1; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--muted); cursor: pointer; }
.icon-btn[data-copied="true"] { color: var(--accent-strong); border-color: rgba(144, 220, 255, 0.4); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.modal-actions, .facts, .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip, .link-btn { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.03); text-decoration: none; font-size: 12px; }
.chip[data-tone="good"] { background: rgba(74, 222, 128, 0.18); border-color: rgba(74, 222, 128, 0.34); color: #8ff0b4; }
.chip[data-tone="medium"] { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.34); color: #ffd08a; }
.chip[data-tone="bad"] { background: rgba(251, 113, 133, 0.18); border-color: rgba(251, 113, 133, 0.34); color: #ffb2c2; }
.preview-card { position: relative; display: block; aspect-ratio: 16 / 9; margin-top: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; background: #0b111b; }
.preview-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(4, 7, 12, 0.08), rgba(4, 7, 12, 0.34)); }
.play-badge { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 999px; background: rgba(4, 7, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); }
.play-badge svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.overview { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.sentinel { height: 24px; }
.hide { display: none !important; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .shell { width: min(100vw - 18px, 1180px); margin-top: 0; padding-top: 34px; } .toolbar-dock { width: min(100vw - 18px, 1180px); } .toolbar { border-radius: 18px; } .toolbar-panel { border-radius: 0 0 18px 18px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .title { font-size: 12px; } .modal { padding: 12px; } .modal-media { grid-template-columns: 1fr; } .modal-poster, .copy-title-btn { display: none; } }
