/* 东夜客栈出品 · 视觉冲击 + 真实媒体 */
/* 布局/比例请见 web-layout.css（已取消 4K transform 缩放） */

.rthumb, .map-photo, .now-thumb, .album-card .pic, .tiny-card .pic, .shop-card .cover, .sc-pic, .ff-row .th {
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}
.rthumb.has-img, .map-photo.has-img, .now-thumb.has-img,
.album-card .pic.has-img, .tiny-card .pic.has-img,
.shop-card .cover.has-img, .sc-pic.has-img, .ff-row .th.has-img {
  background-image: none !important;
}
.rthumb img, .map-photo img, .now-thumb img, .album-card .pic img,
.tiny-card .pic img, .shop-card .cover img, .sc-pic img, .ff-row .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.rank-row, .shop-card, .sc-card, .album-card, .ff-row, .tiny-card, .focus-mini, .now {
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.rank-row:hover, .shop-card:hover, .sc-card:hover, .album-card:hover, .ff-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(90, 171, 255, .25);
  border-color: rgba(255, 217, 120, .45) !important;
}
.click-hint {
  font-size: 10px;
  color: #9fd0ff;
  opacity: .85;
}

/* Google Maps under ward SVG */
.map-body { position: relative; }
.map-gframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: saturate(1.15) contrast(1.05) brightness(.92);
  z-index: 0;
}
.map-base {
  z-index: 1;
  opacity: .88;
}
.map-base .ward {
  fill: rgba(20, 40, 80, .28);
  stroke: rgba(200, 230, 255, .55);
}
.map-base .ward.hot {
  fill: rgba(255, 80, 140, .32);
  stroke: rgba(255, 160, 190, .85);
}
.map-base .ward:hover,
.map-base .ward.active {
  fill: rgba(255, 217, 120, .38);
  stroke: #ffd978;
}
.map-dim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(4, 10, 20, .55) 75%),
    linear-gradient(180deg, rgba(4, 10, 22, .25), rgba(4, 10, 22, .5));
  pointer-events: none;
}
.map-open-g {
  position: absolute;
  left: 12px;
  bottom: 42px;
  z-index: 3;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 171, 255, .45);
  background: rgba(4, 12, 28, .85);
  color: #cfe8ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.map-open-g:hover { background: rgba(90, 171, 255, .25); }

/* Cinematic video hero — 尺寸上限由 web-layout.css 控制 */
.vid-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.vid-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 120, .35);
  box-shadow: 0 0 28px rgba(255, 100, 150, .18), 0 12px 28px rgba(0, 0, 0, .4);
  background: #000;
  cursor: pointer;
  max-width: 100%;
}
.vid-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#vidHero,
#photoWall {
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}
.vid-main .glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 217, 120, .0), rgba(255, 100, 150, .25), rgba(90, 171, 255, .2));
  mix-blend-mode: screen;
  animation: pulseGlow 3.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .35; }
  50% { opacity: .85; }
}
.vid-main .badge-live {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3b6b, #ff8a50);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 0 16px rgba(255, 60, 100, .55);
}
.vid-main .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88));
}
.vid-main .cap b {
  display: block;
  font-size: 16px;
  font-weight: 900;
}
.vid-main .cap span {
  font-size: 12px;
  color: #c9d7f0;
}
.vid-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.vid-tile {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #0a1220;
  cursor: pointer;
  min-height: 70px;
}
.vid-tile video, .vid-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vid-tile .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .25);
  font-size: 22px;
  transition: .2s;
}
.vid-tile:hover .play { background: rgba(255, 80, 120, .28); transform: scale(1.02); }
.vid-tile .t {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Photo wall row under categories */
.photo-wall {
  display: flex;
  gap: 8px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.photo-wall-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: hs 36s linear infinite;
}
.photo-wall-track:hover { animation-play-state: paused; }
.photo-chip {
  width: 96px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .16);
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.photo-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s;
}
.photo-chip:hover img { transform: scale(1.08); }
.photo-chip em {
  position: absolute;
  left: 6px; top: 6px;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #ffe7a8;
}
.photo-chip b {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 6px 6px;
  font-size: 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.9));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel {
  backdrop-filter: blur(6px);
}

/* NOW with real image impact */
.now-thumb {
  overflow: hidden;
}
.now-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.now {
  border-color: rgba(255, 217, 120, .28) !important;
  box-shadow: 0 0 30px rgba(255, 180, 80, .12), 0 16px 40px rgba(0,0,0,.4) !important;
}
.open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #0a1220;
  background: linear-gradient(135deg, #ffd978, #5aabff);
  border: none;
  cursor: pointer;
}

/* video modal */
.dy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dy-modal.show { display: flex; }
.dy-modal .box {
  width: min(960px, 96vw);
  background: #0a1220;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.dy-modal .box video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: block;
}
.dy-modal .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #e8f1ff;
  font-size: 14px;
  font-weight: 800;
}
.dy-modal .bar a, .dy-modal .bar button {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(90,171,255,.2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
