@charset "UTF-8";

:root {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f7f1f3;
  background: #18151b;
  --bg: #18151b;
  --panel: #211b24;
  --pink: #ebbac7;
  --muted: #c0b3be;
  --line: rgba(255, 255, 255, .16);
  --selected: rgba(232, 181, 196, .1);
  font-synthesis: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 52% 45%, rgba(103, 67, 101, .18), transparent 38%),
    var(--bg);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
svg { width: 24px; fill: currentColor; }

.page {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 22px clamp(24px, 2vw, 48px) 24px;
  display: grid;
  grid-template-rows: 42px auto;
  align-content: start;
  gap: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: .12em; }
.brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border: 1px solid rgba(234, 208, 215, .46);
  border-radius: 10px;
  background: rgba(237, 208, 221, .07);
  transform: rotate(-7deg);
}
.brand-symbol svg { width: 20px; color: var(--pink); transform: rotate(7deg); }
.brand-en { margin-left: 14px; font-size: 9px; letter-spacing: .23em; font-weight: 400; color: #dbc9d1; }
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 24fr) minmax(0, 50fr) minmax(0, 26fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 20px;
  min-height: 0;
}

.hero {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(240, 204, 211, .22);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  box-shadow: inset -3px 0 var(--pink), inset 0 -3px rgba(188, 143, 166, .65);
  pointer-events: none;
}
.hero:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.carousel-visual { position: relative; min-height: 0; overflow: hidden; background: var(--panel); }
.carousel-visual[role="button"] { cursor: zoom-in; }
.carousel-visual:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
html.preview-open, html.preview-open body { overflow: hidden; }
.image-preview { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: max(64px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: transparent; overflow: hidden; }
.image-preview[open] { display: flex; align-items: center; justify-content: center; }
.image-preview::backdrop { background: rgba(8, 6, 12, .94); }
.image-preview-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-preview-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 44px; height: 44px; padding: 0; border: 1px solid var(--pink); border-radius: 50%; background: #211b24; color: var(--pink); font-size: 30px; line-height: 1; }
.carousel-slides { --active-slide: url('./images/01/news01.jpg'); position: absolute; inset: 0; overflow: hidden; background: var(--panel); }
.carousel-slides::before { content: ""; position: absolute; inset: -20px; z-index: 0; background-image: var(--active-slide); background-repeat: no-repeat; background-position: center; background-size: cover; filter: blur(15px) brightness(.52) saturate(.8); transform: scale(1.08); }
.hero-slide { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; filter: saturate(.94); transition: opacity .65s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-copy-panel { position: relative; z-index: 2; display: flex; align-items: center; height: 72px; min-height: 72px; overflow: hidden; padding: 8px 12px; background: linear-gradient(180deg, #2a202b, #211b24); }
.carousel-dots { position: static; z-index: 3; display: flex; flex-wrap: nowrap; width: 100%; min-width: 0; height: 56px; gap: 7px; margin: 0; }
.carousel-dot { flex: 1 1 0; min-width: 0; height: 56px; padding: 2px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); border-radius: 5px; background: rgba(15, 12, 18, .72); opacity: .68; transition: border-color .2s, background .2s, opacity .2s, transform .2s; }
.carousel-dot img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.carousel-dot:hover { border-color: rgba(235, 186, 199, .72); opacity: 1; transform: translateY(-1px); }
.carousel-dot[aria-pressed="true"] { border-color: var(--pink); background: rgba(235, 186, 199, .14); box-shadow: 0 0 0 1px rgba(235, 186, 199, .25); opacity: 1; }
.viewer {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: stretch;
  gap: 8px;
}
.viewer > * { min-width: 0; }
.viewer-heading, .collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #d7c8d2;
}
.viewer-heading { font-size: 16px; }
.viewer-heading > span:first-child { display: flex; min-width: 0; align-items: center; gap: 8px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 13px rgba(234, 181, 195, .55); }
.heading-en { margin-left: 4px; font-size: 9px; letter-spacing: .12em; color: #a895a8; }
.screen-wrap { min-width: 0; min-height: 0; display: grid; align-items: start; justify-items: start; }
.player-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0c0a10;
  border: 1px solid rgba(240, 204, 211, .18);
  border-radius: 12px;
  box-shadow: 0 24px 58px rgba(11, 6, 23, .42);
}
video { display: block; width: 100%; height: 100%; object-fit: contain; }
.play-overlay { position: absolute; inset: 0 0 42px; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; border: 0; background: linear-gradient(0deg, rgba(22, 13, 32, .2), transparent); color: white; font-size: 10px; letter-spacing: .13em; text-shadow: 0 1px 5px #000; }
.play-circle { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.play-circle svg { width: 25px; }
.play-overlay:hover .play-circle { transform: scale(1.07); background: rgba(255, 255, 255, .2); }
.video-meta { display: block; width: 100%; justify-self: start; max-width: 100%; padding: 3px 0 5px; border-bottom: 1px solid var(--line); }
.video-meta > div { width: 100%; min-width: 0; }
.video-meta h2 { overflow: hidden; font-size: 20px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; text-overflow: ellipsis; }
.video-description { display: block; margin-top: 5px; overflow: visible; font-size: 12px; line-height: 1.55; color: var(--muted); white-space: normal; }

.collection {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 9px;
}
.collection-heading h2 { font-size: 16px; font-weight: 500; color: #f7f1f3; }
.collection-heading > span { font-size: 9px; letter-spacing: .12em; color: #c6b3c0; }
.playlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 10px; min-height: 0; }
.video-card { align-self: center; min-width: 0; min-height: 44px; display: grid; grid-template-rows: auto auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.video-card:hover { transform: translateY(-2px); border-color: var(--pink); }
.video-card[aria-pressed="true"] { border-color: rgba(232, 181, 196, .75); background: var(--selected); box-shadow: inset 0 -2px var(--pink); }
.thumbnail { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; background: #332937; }
.thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .88; transition: opacity .25s; }
.video-card:hover img, .video-card[aria-pressed="true"] img { opacity: 1; }
.thumbnail::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(18, 14, 27, .55)); }
.card-indicator { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(25, 19, 29, .58); transform: translate(-50%, -50%); }
.card-indicator img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: 1; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; min-width: 0; padding: 10px 7px 10px; }
.card-title { display: block; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; font-size: 12px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.video-card[aria-pressed="true"] .card-title { color: var(--pink); }
.view-tag { display: inline-flex; align-items: center; min-height: 16px; padding: 2px 6px; border: 1px solid rgba(235, 186, 199, .45); border-radius: 999px; background: rgba(235, 186, 199, .12); color: var(--pink); font-size: 9px; line-height: 1; white-space: nowrap; }
.collection-note { font-size: 10px; line-height: 1.6; letter-spacing: .12em; color: #aa98aa; }
.noscript { font-size: 10px; line-height: 1.6; color: var(--muted); }

.loading-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; overflow: hidden; background: linear-gradient(145deg, rgba(20, 15, 26, .94), rgba(48, 31, 47, .91)); color: #f9edf1; text-align: center; backdrop-filter: blur(8px); }
.loading-overlay::before { content: ""; position: absolute; width: 92px; height: 92px; border: 1px solid rgba(235, 186, 199, .22); border-top-color: var(--pink); border-radius: 50%; animation: loading-spin 1.4s linear infinite; }
.loading-message { position: relative; z-index: 1; font-size: 15px; font-weight: 500; letter-spacing: .1em; text-shadow: 0 1px 8px #000; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.player-error { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: rgba(25, 19, 31, .95); text-align: center; }
.player-error strong { font-size: 14px; font-weight: 500; }
.player-error span { font-size: 10px; color: var(--muted); }
.player-error button { min-height: 44px; padding: 8px 14px; border: 1px solid rgba(233, 186, 198, .48); border-radius: 6px; background: rgba(233, 186, 198, .09); color: var(--pink); font-size: 11px; }

@media (max-width: 1100px) and (min-width: 701px) {
  .page { padding: 18px 22px 12px; gap: 15px; }
  .main-grid { align-self: start; width: 100%; height: auto; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); grid-template-rows: auto auto; }
  .hero { grid-column: 1; grid-row: 1 / 3; align-self: stretch; height: auto; }
  .viewer { grid-column: 2; grid-row: 1; align-self: start; height: auto; grid-template-rows: auto auto auto; gap: 8px; }
  .collection { grid-column: 2; grid-row: 2; align-self: stretch; height: auto; }
  .playlist { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; align-content: center; gap: 8px; }
  .hero-copy-panel { height: 64px; min-height: 64px; padding: 8px 10px; }
  .carousel-dots { height: 48px; }
  .carousel-dot { height: 48px; }
  .brand-en { display: none; }
  .collection-note { display: none; }
}

@media (min-width: 1101px) and (min-height: 551px) {
  .main-grid {
    padding-top: max(0px, calc((100vh - 112px) * 0.125));
    padding-top: max(0px, calc((100dvh - 112px) * 0.125));
  }
}

@media (min-width: 1101px) {
  .main-grid { grid-template-columns: minmax(0, 24fr) minmax(0, 50fr) minmax(0, 26fr); grid-template-rows: auto; align-items: start; column-gap: 20px; row-gap: 0; }
  .hero { grid-column: 3; grid-row: 1; align-self: stretch; height: auto; }
  .viewer { grid-column: 2; grid-row: 1; align-self: start; height: auto; }
  .collection { grid-column: 1; grid-row: 1; align-self: start; align-content: start; height: auto; }
  .playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); }
}

@media (max-width: 900px) and (orientation: portrait) {
  .page { height: auto; min-height: 100vh; min-height: 100dvh; padding: 12px 14px; grid-template-rows: 34px auto; gap: 10px; }
  .header { padding-bottom: 8px; }
  .brand { gap: 6px; font-size: 19px; }
  .brand-symbol { width: 28px; height: 29px; border-radius: 8px; }
  .brand-symbol svg { width: 17px; }
  .brand-en { display: none; }
  .main-grid { width: 100%; height: auto; min-height: 0; align-self: start; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 12px; }
  .viewer { grid-column: 1; grid-row: 1; align-self: start; height: auto; grid-template-rows: auto auto auto; gap: 8px; }
  .player-shell { width: 100%; }
  .hero { grid-column: 1; grid-row: 2; align-self: start; width: 100%; height: clamp(260px, 42vh, 320px); }
  .collection { grid-column: 1; grid-row: 3; align-self: start; height: auto; grid-template-rows: auto auto; gap: 9px; }
  .hero-slide { object-position: center; }
  .hero::after { box-shadow: inset -3px 0 var(--pink), inset 0 -3px rgba(188, 143, 166, .65); }
  .hero-copy-panel { height: 48px; min-height: 48px; padding: 6px 8px; }
  .heading-en { font-size: 8px; }
  .video-meta { padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
  .video-meta h2 { font-size: 15px; }
  .play-circle { width: 44px; height: 44px; }
  .play-overlay { bottom: 40px; gap: 5px; font-size: 8px; }
  .loading-overlay { padding: 14px; }
  .loading-overlay::before { width: 66px; height: 66px; }
  .loading-message { font-size: 12px; }
  .collection-heading h2 { font-size: 11px; }
  .collection-heading > span { font-size: 8px; }
  .playlist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; align-content: start; gap: 10px; }
  .video-card { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 44px; border-radius: 5px; }
  .card-copy { gap: 4px; padding: 8px; }
  .card-title { font-size: 12px; line-height: 1.4; }
  .view-tag { min-height: 16px; padding: 2px 6px; font-size: 9px; }
  .collection-note { display: none; }
  .player-error { gap: 6px; }
  .player-error strong { font-size: 12px; }
  .carousel-dots { gap: 5px; }
  .carousel-dots { height: 36px; }
  .carousel-dot { height: 36px; padding: 1px; border-radius: 3px; }
}

@media (max-height: 550px) and (orientation: landscape) {
  .page { height: auto; min-height: 100vh; min-height: 100dvh; padding: 10px 16px; grid-template-rows: 28px auto; gap: 8px; }
  .header { padding-bottom: 6px; }
  .brand { font-size: 18px; }
  .brand-symbol { width: 26px; height: 27px; }
  .brand-en { display: none; }
  .main-grid { height: auto; align-items: start; min-height: 0; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); grid-template-rows: auto auto; gap: 16px; }
  .hero { grid-column: 2; grid-row: 1 / 3; align-self: stretch; height: auto; }
  .viewer { grid-column: 1; grid-row: 1; align-self: start; height: auto; grid-template-rows: auto auto auto; gap: 8px; }
  .collection { grid-column: 1; grid-row: 2; align-self: start; height: auto; grid-template-rows: auto auto; gap: 9px; }
  .hero-copy-panel { height: 40px; min-height: 40px; padding: 4px 8px; }
  .hero::after { box-shadow: inset -3px 0 var(--pink), inset 0 -3px rgba(188, 143, 166, .65); }
  .video-meta { padding: 3px 0 5px; border-bottom: 1px solid var(--line); }
  .video-meta h2 { font-size: 13px; }
  .video-description { font-size: 10px; line-height: 1.45; }
  .collection-heading h2 { font-size: 10px; }
  .collection-heading > span { font-size: 8px; }
  .playlist { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; gap: 6px; }
  .video-card { align-self: stretch; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 1fr; min-height: 44px; border-radius: 4px; }
  .thumbnail { width: 44px; height: 100%; aspect-ratio: auto; }
  .card-copy { justify-content: center; gap: 2px; padding: 3px 4px; }
  .card-title { font-size: 10px; }
  .view-tag { min-height: 12px; padding: 1px 4px; font-size: 7px; }
  .card-indicator { width: 24px; height: 24px; }
  .collection-note { display: none; }
  .play-circle { width: 40px; height: 40px; }
  .play-overlay { bottom: 37px; gap: 4px; font-size: 8px; }
  .loading-overlay { padding: 12px; }
  .loading-overlay::before { width: 60px; height: 60px; }
  .loading-message { font-size: 11px; }
  .carousel-dots { gap: 4px; }
  .carousel-dots { height: 32px; }
  .carousel-dot { height: 32px; padding: 1px; border-radius: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .loading-overlay::before { animation: none; }
}
