/* Lumora TV — midnight cinema. Presentation only; no external assets/scripts. */
:root {
  color-scheme: dark;
  --lt-bg: #060910;
  --lt-surface: #101724;
  --lt-line: rgba(149, 181, 223, .13);
  --lt-accent: #42b8ff;
  --lt-muted: #91a0b6;
}
html, body { background: var(--lt-bg); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #288bdc66; color: #fff; }
#root > div { background-color: var(--lt-bg); }
#root > div > header {
  background: rgba(6, 9, 16, .9);
  border-color: var(--lt-line);
  backdrop-filter: blur(22px);
}
header > div { height: 72px !important; }
header button { border-radius: 12px !important; }
header button:has(img) { gap: 10px; }
header img { width: 38px !important; height: 38px !important; }
header nav button {
  padding: 10px 16px !important;
  font-size: 13px !important;
  border-color: transparent !important;
}
header nav button.bg-white {
  background: #142a42 !important;
  color: #83d1ff !important;
  border-color: #57baff35 !important;
  box-shadow: inset 0 1px 0 #ffffff09;
}
header nav button.bg-white svg { color: #83d1ff !important; }
header button:not(:has(img)):hover { background-color: #162235 !important; color: #d5edff !important; }
header button[aria-label*="搜索"], header button[aria-label*="收藏"], header button[aria-label*="记录"] {
  border-color: var(--lt-line) !important;
  background: #111824 !important;
}
.lumora-hero {
  height: min(66vw, 580px) !important;
  min-height: 440px !important;
  max-height: 640px !important;
  background: var(--lt-bg) !important;
  border: 0 !important;
}
.lumora-hero > div:first-child img { opacity: .83 !important; object-position: center 32%; }
.lumora-hero > div:first-child > div:nth-of-type(1) {
  background: linear-gradient(0deg, #060910 0%, #06091066 42%, #06091008 100%) !important;
}
.lumora-hero > div:first-child > div:nth-of-type(2) {
  background: linear-gradient(90deg, #060910f5 0%, #060910b3 35%, #0609100a 80%) !important;
}
.lumora-hero > div:last-child { padding-bottom: 58px !important; gap: 2px; }
.lumora-hero h1 {
  font-size: clamp(36px, 4.1vw, 62px) !important;
  letter-spacing: -.045em;
  line-height: 1.08;
  max-width: 800px;
  text-wrap: balance;
  text-shadow: 0 6px 36px #0008;
}
.lumora-hero p { color: #bcc8d9 !important; line-height: 1.85 !important; max-width: 550px; }
.lumora-hero a { min-height: 46px; border-radius: 12px !important; padding-inline: 24px !important; }
.lumora-hero a[href^="/watch"] {
  background: linear-gradient(135deg, #46c6ff, #2086ef) !important;
  color: #041629 !important;
  border: 1px solid #74d4ff80;
  box-shadow: 0 8px 30px #1686eb30, inset 0 1px 0 #ffffff55;
}
.lumora-hero a[href^="/watch"]:hover { filter: brightness(1.12); transform: translateY(-2px); }
.lumora-hero a[href^="/movie"], .lumora-hero a[href^="/tv"] {
  background: #18202d99 !important;
  border-color: #ffffff26 !important;
  color: #e0e9f6 !important;
}
.lumora-rail { padding-top: 12px; margin-bottom: 14px; }
.lumora-rail h2 { font-size: 21px !important; letter-spacing: -.025em; }
.lumora-rail h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 17px;
  background: linear-gradient(#65d5ff, #2786ff);
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: -1px;
}
.lumora-rail > div:first-child { padding-bottom: 9px; }
.lumora-rail p, .lumora-rail .text-xs.text-zinc-400 { color: var(--lt-muted) !important; font-family: inherit !important; }
.lumora-rail a[href*="genre"], .lumora-rail a.text-xs { color: #9cb3cb !important; }
.lumora-card { border-radius: 16px !important; transition: transform .22s ease !important; }
.lumora-card > div:first-child {
  border-radius: 14px !important;
  border-color: #a1bed51a !important;
  background: #101723 !important;
  box-shadow: 0 8px 22px #0004;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.lumora-card > div:last-child { padding-top: 11px; padding-inline: 3px; }
.lumora-card > div:last-child > p:first-child { font-size: 13px; letter-spacing: -.01em; }
.lumora-card .font-mono { font-family: inherit; }
.lumora-card button { backdrop-filter: blur(12px); border: 1px solid #ffffff26; }
@media (hover: hover) {
  .lumora-card:hover { transform: translateY(-5px); }
  .lumora-card:hover > div:first-child { border-color: #4abaff70 !important; box-shadow: 0 15px 36px #0008, 0 0 0 1px #3498ee15; }
}
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #58beff !important;
  outline-offset: 4px;
}
input:not([type="range"]):not([type="checkbox"]), select {
  background-color: #101724 !important;
  border-color: #7fa9d52b !important;
  border-radius: 12px !important;
}
input::placeholder { color: #6e8098 !important; }
[data-testid="player-iframe"] { border-radius: inherit; }
#root > div > footer {
  background: #070b13 !important;
  border-color: var(--lt-line) !important;
  color: #70849d !important;
  padding-block: 28px;
  letter-spacing: .04em;
}
@media (min-width: 1024px) {
  .lumora-card { scroll-margin: 24px; }
  .lumora-rail { margin-bottom: 24px; }
}
@media (max-width: 639px) {
  header > div { height: 62px !important; padding-inline: 16px !important; }
  header img { width: 32px !important; height: 32px !important; }
  header button { min-width: 36px; min-height: 38px; }
  header button:has(img) { gap: 8px; }
  nav[aria-label="移动端导航"] {
    background: #0a101bf2 !important;
    border-color: #6586ad30 !important;
    backdrop-filter: blur(22px);
    padding-top: 8px !important;
  }
  nav[aria-label="移动端导航"] button { min-height: 47px !important; border-radius: 12px !important; gap: 2px; }
  nav[aria-label="移动端导航"] button.text-white { color: #6bcaff !important; background: #2a9ff315; }
  nav[aria-label="移动端导航"] button.text-white svg { color: #6bcaff !important; }
  .lumora-hero { height: 560px !important; min-height: 480px !important; max-height: 72svh !important; }
  .lumora-hero > div:first-child img { object-position: 64% top; }
  .lumora-hero > div:last-child { padding: 0 20px 34px !important; }
  .lumora-hero h1 { font-size: 36px !important; max-width: 94%; }
  .lumora-hero p { font-size: 12px !important; line-height: 1.75 !important; -webkit-line-clamp: 2; }
  .lumora-hero a { min-height: 45px; padding-inline: 22px !important; font-size: 13px !important; }
  .lumora-rail { padding-top: 8px; margin-bottom: 16px; }
  .lumora-rail h2 { font-size: 19px !important; }
  .lumora-card > div:first-child { border-radius: 12px !important; }
  .lumora-card button { min-width: 36px; min-height: 36px; }
  .lumora-card > div:last-child > p:first-child { font-size: 12px; }
  footer { margin-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.lumora-watch { background: radial-gradient(ellipse at 50% 12%, #15243980, transparent 55%), #060910 !important; }
.lumora-watch > div:first-child { background: #0c121ee6 !important; border-color: var(--lt-line) !important; }
.lumora-player-frame { border-color: #6ca6d933 !important; box-shadow: 0 24px 70px #0008, 0 0 0 1px #a8d5ff08; }
.lumora-watch h1 { letter-spacing: -.035em; }
.lumora-watch [role="dialog"] { border-color: #72b3ec33 !important; }
@media (min-width: 640px) { .lumora-player-frame { border-radius: 20px !important; } }
/* Compact header: keep brand and all three controls inside 320px screens. */
@media (max-width: 639px) {
  header > div { height: 56px !important; padding-inline: 12px !important; gap: 8px !important; }
  header > div > div:first-child { min-width: 0; flex-shrink: 1; }
  header .lumora-brand { min-width: 0; gap: 6px !important; }
  header .lumora-brand > div { margin-left: 0 !important; min-width: 0; }
  header .lumora-brand > div > span { font-size: 14px !important; line-height: 1.2; }
  header .lumora-brand img { width: 30px !important; height: 30px !important; }
  header .lumora-header-actions { gap: 6px !important; margin-left: auto; }
  header .lumora-header-actions > button {
    margin-left: 0 !important;
    width: 36px; height: 38px; min-width: 36px; min-height: 38px;
    padding: 0 !important; justify-content: center; border-radius: 11px !important;
  }
  header .lumora-header-actions > button > svg { width: 17px; height: 17px; }
}
#lumora-back-top {
  position: fixed; right: 16px; bottom: 28px; z-index: 45;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #58baff50; border-radius: 14px;
  background: #101e30ed; color: #7bd4ff;
  box-shadow: 0 8px 28px #0006; backdrop-filter: blur(16px);
  cursor: pointer; transition: background .18s, transform .18s;
}
#lumora-back-top[hidden] { display: none; }
@media (hover: hover) { #lumora-back-top:hover { background: #163553; transform: translateY(-3px); } }
@media (max-width: 639px) {
  #lumora-back-top { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
