/* 世界实况 (/world): two states. Finding a place: the globe fills the screen, a sight in the middle
   picks the camera turned under it and a card at the bottom shows it. Watching: the picture fills the
   same space, the place in one bar at the bottom. The list of places is a drawer. */
.world-main { padding: 0 0 28px; }
.world-scene { position: relative; height: calc(100svh - var(--world-top, var(--mh-head-height))); min-height: 480px; overflow: hidden; background: #04060d; }
.world-scene svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- finding a place ---- */
.world-globe-panel { position: absolute; inset: 0; background: radial-gradient(55% 60% at 50% 46%, rgba(56, 82, 160, .2), transparent 72%), #04060d; }
.world-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.world-globe:active { cursor: grabbing; }
.world-sight { position: absolute; left: 50%; top: var(--sight-y, 46%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; transition: transform .25s, border-color .25s; }
.world-sight::before, .world-sight::after { content: ""; position: absolute; left: 50%; background: rgba(255, 255, 255, .85); }
.world-sight::before { top: -9px; width: 1.5px; height: 7px; margin-left: -.75px; }
.world-sight::after { bottom: -9px; width: 1.5px; height: 7px; margin-left: -.75px; }
.world-scene[data-locked] .world-sight { transform: scale(.82); border-color: #fff; }

.world-heading { position: absolute; top: 16px; left: var(--mh-gutter); right: 220px; pointer-events: none; }
.world-heading h1 { margin: 0; overflow: hidden; color: #fff; font-size: 18px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.world-clock { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.world-top-tools { position: absolute; top: 14px; right: var(--mh-gutter); display: flex; gap: 8px; }
.world-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 11, 22, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 650; }
.world-pill svg { width: 18px; height: 18px; }
.world-pill:hover, .world-pill[aria-expanded="true"] { background: rgba(30, 36, 64, .92); }
.world-side { position: absolute; right: var(--mh-gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.world-side button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(8, 11, 22, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; transition: background .18s; }
.world-side button:hover { background: rgba(30, 36, 64, .92); }
.world-side button:first-child { background: #fff; border-color: #fff; color: #0a0a19; }
.world-hover { position: absolute; z-index: 3; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(8, 11, 22, .92); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  font-size: 12px; white-space: nowrap; pointer-events: none; }

.world-card { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(560px, calc(100% - 2 * var(--mh-gutter))); display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(8, 11, 22, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); }
.world-scene[data-drawer] .world-card { left: calc((100% - min(420px, 100%)) / 2); width: min(560px, calc(100% - min(420px, 100%) - 2 * var(--mh-gutter))); }
.world-scene[data-drawer] .world-side { right: calc(min(420px, 100%) + 12px); }
.world-card-thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111827 center / cover no-repeat; }
.world-card-thumb:empty { background: radial-gradient(circle at 50% 50%, rgba(125, 211, 252, .25), transparent 60%), #0d1324; }
.world-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.world-card-copy { flex: 1; min-width: 0; }
.world-card-copy p { margin: 0; }
.world-card-name { overflow: hidden; color: #fff; font-size: 16px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.world-card-meta { margin-top: 3px !important; color: var(--muted-2); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.world-card-meta b { font-weight: 600; color: #fdba74; }
.world-go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 18px; border-radius: 12px; border: 0; background: #fff; color: #0a0a19; font-size: 14px; font-weight: 750; }
.world-go svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.world-go[hidden] { display: none; }
.world-go-quiet { padding: 0 16px; background: rgba(255, 255, 255, .1); color: #fff; }
.world-go:hover { filter: brightness(.94); }
.world-go-quiet:hover { background: rgba(255, 255, 255, .16); filter: none; }

/* ---- watching ---- */
.world-player { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: #000; }
.world-player[hidden] { display: none; }
.world-stage { position: relative; flex: 1; min-height: 0; background: #000; }
.world-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain; }
.world-poster { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #000; }
.world-poster[hidden] { display: none; }
.world-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.1); }
.world-play { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px 0 22px; border-radius: 999px; border: 0; background: #fff; color: #0a0a19; font-size: 16px; font-weight: 750;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8); }
.world-play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.world-veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: rgba(4, 6, 13, .86); text-align: center; }
.world-veil[hidden] { display: none; }
.world-veil p { margin: 0; max-width: 26em; color: var(--muted-2); font-size: 14px; }
.world-veil button { height: 40px; padding: 0 18px; border-radius: 12px; border: 0; background: #fff; color: #0a0a19; font-weight: 700; }
.world-back { position: absolute; z-index: 3; top: 14px; left: var(--mh-gutter); display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 650; }
.world-back:hover { background: rgba(30, 36, 64, .9); }
.world-mini { position: absolute; z-index: 3; top: 10px; right: var(--mh-gutter); width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; background: none; }
.world-mini canvas { width: 100%; height: 100%; display: block; }
/* The bar sits under the picture, not over it, so the video player's own controls stay reachable. */
.world-bar { position: relative; z-index: 3; flex: none; display: flex; align-items: center; gap: 14px; padding: 10px var(--mh-gutter); border-top: 1px solid rgba(255, 255, 255, .1);
  background: #06080f; touch-action: pan-y; }
.world-bar-copy { flex: 1; min-width: 0; }
.world-bar-copy p { margin: 0; }
.world-bar-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff; font-size: 16px; font-weight: 750; }
.world-bar-name span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.world-live { flex: none; padding: 2px 6px; border-radius: 5px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.world-bar-meta { margin-top: 2px !important; overflow: hidden; color: var(--muted-2); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.world-bar-actions { flex: none; display: flex; gap: 4px; }
.world-bar-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 9px; border-radius: 11px; border: 0; background: transparent; color: #fff; font-size: 13px; font-weight: 650; }
.world-bar-actions button:hover { background: rgba(255, 255, 255, .1); }
.world-bar-actions button[aria-pressed="true"] { background: #fff; color: #0a0a19; }
.world-toast { position: absolute; z-index: 5; left: 50%; bottom: 84px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 10px; background: rgba(8, 11, 22, .92); color: #fff; font-size: 13px; }
.world-toast[hidden] { display: none; }

/* ---- the list of places ---- */
.world-drawer { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 0 16px;
  border-left: 1px solid rgba(255, 255, 255, .1); background: rgba(6, 8, 16, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: world-drawer-in .22s ease-out; }
.world-drawer[hidden] { display: none; }
@keyframes world-drawer-in { from { transform: translateX(24px); opacity: 0; } }
.world-drawer-head { display: flex; align-items: center; gap: 10px; }
.world-drawer-head h2 { margin: 0; font-size: 16px; font-weight: 750; }
.world-drawer-head span { flex: 1; color: var(--muted); font-size: 12px; }
.world-drawer-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: #fff; }
.world-drawer-close:hover { background: rgba(255, 255, 255, .12); }
.world-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.world-filters button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04); color: var(--muted-2); font-size: 12px; font-weight: 600; }
.world-filters button i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 8px var(--dot); }
.world-filters button small { color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.world-filters button:hover { color: #fff; border-color: rgba(255, 255, 255, .2); }
.world-filters button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0a0a19; }
.world-filters button[aria-pressed="true"] small { color: #4b5068; }
.world-moments p { margin: 2px 0 6px; color: var(--muted); font-size: 12px; }
.world-moments div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.world-moments div::-webkit-scrollbar { display: none; }
.world-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 12px; }
.world-chip span { padding: 2px 7px; border-radius: 999px; background: rgba(251, 146, 60, .2); color: #fdba74; font-size: 11px; font-weight: 700; }
.world-chip:hover { background: rgba(255, 255, 255, .1); }
.world-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; margin-right: -6px; padding: 0 6px 16px 0; scrollbar-width: thin; overscroll-behavior: contain; }
.world-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .035); color: var(--text); text-align: left; transition: background .15s, border-color .15s; }
.world-row:hover { background: rgba(255, 255, 255, .07); }
.world-row[aria-pressed="true"] { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .09); }
.world-thumb { flex: none; width: 64px; height: 36px; border-radius: 7px; overflow: hidden; background: #111827; }
.world-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.world-row-copy { flex: 1; min-width: 0; display: grid; }
.world-row-copy strong { overflow: hidden; font-size: 13px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.world-row-copy small { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.world-row-time { flex: none; display: grid; justify-items: end; color: #fff; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.world-row-time small { color: var(--muted); font-size: 11px; font-weight: 500; }
.world-row-time[data-light="sunset"] small, .world-row-time[data-light="sunrise"] small { color: #fdba74; }
.world-row-time[data-light="day"] small { color: #7dd3fc; }
.world-empty { margin: 12px 4px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---- the video wall ---- */
.world-wall { padding: 18px var(--mh-gutter) 0; scroll-margin-top: calc(var(--mh-head-height) + 12px); }
.world-wall[hidden] { display: none; }
.world-wall-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.world-wall-head h2 { margin: 0 8px 0 0; font-size: 18px; font-weight: 750; }
.world-wall-sizes { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .05); }
.world-wall-sizes button { height: 30px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.world-wall-sizes button[aria-pressed="true"] { background: #fff; color: #0a0a19; }
.world-wall-head .world-action:last-child { margin-left: auto; }
.world-wall-note { margin: 8px 0 12px; color: var(--muted); font-size: 12px; }
.world-wall-grid { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.world-wall-grid[data-size="9"] { --cols: 3; }
.world-wall-grid[data-size="16"] { --cols: 4; }
.world-tile { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.world-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 10px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 12px; pointer-events: none; }
.world-tile figcaption button { pointer-events: auto; overflow: hidden; padding: 0; border: 0; background: none; color: #fff; font-size: 12px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.world-tile figcaption button:hover { text-decoration: underline; }
.world-tile figcaption span { flex: none; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.world-tile-down::after { content: "暂时没有画面"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

.world-credit { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.world-about { max-width: 1100px; margin: 30px 0 12px; color: var(--muted-2); font-size: 14px; line-height: 1.75; }
.world-about h2 { margin: 26px 0 10px; color: var(--text); font-size: 16px; font-weight: 700; }
.world-about h2:first-child { margin-top: 0; }
.world-about h3 { margin: 16px 0 8px; color: var(--text); font-size: 14px; font-weight: 650; }
.world-about p { margin: 0 0 10px; max-width: 46em; }
.world-about-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.world-about-list a { color: var(--accent); text-decoration: none; }
.world-about-list a:hover { text-decoration: underline; }
.world-about-list small { margin-left: 6px; color: var(--muted); font-size: 12px; }

.world-action { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.world-action:hover { background: rgba(255, 255, 255, .1); }

.world-credit { margin: 18px var(--mh-gutter) 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.world-about { max-width: 1100px; margin: 30px var(--mh-gutter) 12px; color: var(--muted-2); font-size: 14px; line-height: 1.75; }
.world-about h2 { margin: 26px 0 10px; color: var(--text); font-size: 16px; font-weight: 700; }
.world-about h2:first-child { margin-top: 0; }
.world-about h3 { margin: 16px 0 8px; color: var(--text); font-size: 14px; font-weight: 650; }
.world-about p { margin: 0 0 10px; max-width: 46em; }
.world-about-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.world-about-list a { color: var(--accent); text-decoration: none; }
.world-about-list a:hover { text-decoration: underline; }
.world-about-list small { margin-left: 6px; color: var(--muted); font-size: 12px; }

@media (max-width: 960px) {
  .world-wall-grid[data-size="9"], .world-wall-grid[data-size="16"] { --cols: 2; }
}
/* Phones: the header wraps taller; the card and the bar sit at the bottom edge, the drawer is a sheet. */
@media (max-width: 720px) {
  .world-scene { min-height: 440px; }
  .world-heading { top: 12px; right: 112px; }
  .world-heading h1 { font-size: 16px; }
  .world-clock { font-size: 11px; }
  .world-top-tools { top: 10px; gap: 6px; }
  .world-pill { width: 38px; padding: 0; justify-content: center; }
  .world-pill span { display: none; }
  .world-side { top: auto; bottom: 128px; transform: none; gap: 6px; }
  .world-side button { width: 38px; height: 38px; }
  .world-side #world-zoom-in, .world-side #world-zoom-out { display: none; }
  .world-card { bottom: 12px; gap: 10px; padding: 8px; border-radius: 16px; }
  .world-card-thumb { width: 84px; }
  .world-card-name { font-size: 14px; }
  .world-card-meta { font-size: 11px; }
  .world-go { height: 38px; padding: 0 12px 0 14px; font-size: 13px; }
  .world-go-quiet { padding: 0 12px; }
  .world-mini { width: 56px; height: 56px; }
  .world-bar { flex-wrap: wrap; gap: 4px; padding: 10px 10px calc(6px + env(safe-area-inset-bottom)); }
  .world-bar-copy { flex-basis: 100%; }
  .world-bar-name { font-size: 14px; }
  .world-bar-actions { width: 100%; justify-content: space-between; }
  .world-toast { bottom: 112px; }
  .world-bar-actions button span { display: none; }
  .world-scene[data-drawer] .world-card { display: none; }
  .world-drawer { top: auto; height: 78%; width: 100%; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 20px 20px 0 0; animation-name: world-sheet-in; }
  @keyframes world-sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .world-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .world-filters::-webkit-scrollbar { display: none; }
  .world-filters button { flex: none; }
}
