:root {
  --bg: #fbfaf6;
  --panel: rgba(255, 255, 255, 0.72);
  --text: #2c2c2c;
  --sub: #5a5a5a;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  --grad-1: #f7fbff;
  --grad-2: #fff7d6;
  --grad-3: #ffe6d6;
  --grad-4: #e9e2ff;
  --radius: 22px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-ui: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --yt-logo-main-pc: 24px;
  --yt-logo-shorts-pc: 20px;
  --yt-logo-main-sp: 18px;
  --yt-logo-shorts-sp: 15px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,.9), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--grad-1), var(--bg));
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1120px, 92vw); margin-inline: auto; }
.section { padding: 24px 0; }
.fullwide { width: 100%; }
.fullwide-img { width: 100%; height: auto; display: block; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(251, 250, 246, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-brand { font-weight: 1000; letter-spacing: 0.02em; }
.header-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
  color: #3c3c3c;
}

.header-nav a { padding: 8px 14px; border-radius: 999px; color: #fff; }
.header-nav a:hover { opacity: 0.94; background: transparent; }
.header-nav a[data-label="nav_sns"] {
  background: #66c7ef;
  color: #fff;
}
.header-nav a[data-label="nav_works"] {
  background: #8cc63f;
  color: #fff;
}


.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(0, 0, 0, 0.03);
  aspect-ratio: 16 / 9;
}
.video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.h2 { margin: 0 0 12px 0; font-size: 18px; letter-spacing: 0.02em; }
.h3 { margin: 0 0 10px 0; font-size: 16px; letter-spacing: 0.02em; }

.work-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

.square-main {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
  aspect-ratio: 1 / 1;
}
.square-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.square-3 {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.square {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.03);
  aspect-ratio: 1 / 1;
}
.square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sns-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  margin-top: 12px;
}
.sns-icons-sub {
  margin-top: 18px;
  gap: 22px;
}
.sns-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sns-icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
}
.sns-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.yt-embed {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.03);
  aspect-ratio: 16 / 9;
}
.yt-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.video-meta {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.video-duration {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
  font-weight: 800;
}
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.video-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  font-weight: 1000;
  min-height: 44px;
}
.video-action-youtube,
.video-action-shorts { color: #a21e24; }
.video-action-subscribe { color: #0f5132; }

.shorts-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.shorts-card {
  appearance: none;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  background: rgba(255,255,255,.8);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.shorts-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: rgba(0,0,0,.08);
}
.shorts-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shorts-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}
.shorts-logo {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-size: var(--yt-logo-main-pc);
  line-height: 1;
  font-weight: 900;
}
.shorts-logo--shorts { font-size: var(--yt-logo-shorts-pc); }
.shorts-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  padding: 10px 10px 0 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.shorts-duration {
  display: block;
  padding: 6px 10px 12px 10px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--sub);
  font-weight: 800;
}

.section-footer-sns { padding-top: 8px; }

.footer {
  padding: 26px 0 34px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.6));
  border-top: 1px solid var(--line);
}
.footer-title { margin: 0; font-weight: 1000; }
.footer-sub {
  margin: 6px 0 0 0;
  color: var(--sub);
  font-weight: 800;
  font-size: 13px;
}

.shorts-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.shorts-modal.is-open { display: block; }
.shorts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
.shorts-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  margin: 3vh auto;
  background: rgba(255,255,255,.98);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  padding: 14px 14px 18px;
}
.shorts-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.shorts-modal__head { padding: 6px 40px 10px 4px; }
.shorts-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
}
.shorts-modal__duration {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--sub);
  font-weight: 800;
}
.shorts-modal__player-wrap {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
}
#shorts-player,
#shorts-player iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .header-nav {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
  }
  .header-nav a[data-label="nav_works"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    min-height: 38px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    background: #8cc63f;
    color: #fff;
  }
  .header-nav a[data-label="nav_sns"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    min-height: 38px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    background: #66c7ef;
    color: #fff;
  }
  .sns-group-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sns-group-sub { width: 100%; }
  .video-actions { flex-direction: column; }
  .video-action { width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 20px 0; }
  .shorts-row { gap: 8px; }
  .square-3 { gap: 8px; }
  .shorts-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  padding: 10px 10px 0 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
}
  .shorts-duration { font-size: 12px; }
  .shorts-play-badge { min-width: 60px; padding: 8px 10px; font-size: 13px; }
  .shorts-logo { font-size: var(--yt-logo-main-sp); min-height: 24px; }
  .shorts-logo--shorts { font-size: var(--yt-logo-shorts-sp); }
  .shorts-modal__dialog { width: min(94vw, 420px); margin: 2vh auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


.video-actions, .video-action {
  font-family: var(--font-ui);
}
.footer-center {
  text-align: center;
}
.footer-inner {
  text-align: center;
}
@media (max-width: 860px) {
  .sns-icons {
    gap: 14px;
  }
  .sns-icon-link {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .sns-icon {
    width: 32px;
    height: 32px;
  }
}


/* lyrics */
.lyrics-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}

.lyrics-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lyrics-summary::-webkit-details-marker {
  display: none;
}
.lyrics-summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: #5a5a5a;
}
.lyrics-details[open] .lyrics-summary::after {
  content: "−";
}

.lyrics-panel {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
}

.lyrics-title {
  margin: 14px 0 12px 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.lyrics-body {
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}
.lyrics-body p,
.lyrics-text {
  margin: 0;
  font-family: var(--font-body);
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 15px;
  text-align: left;
}

@media (max-width: 860px) {
  .lyrics-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
  .lyrics-panel {
    padding: 0 18px 18px;
  }
  .lyrics-body {
    max-height: 52vh;
  }
  .lyrics-body p,
  .lyrics-text {
    font-size: 14px;
    line-height: 1.85;
  }
}


.section-title-center {
  text-align: center;
}

.section-footer-sns .sns-icons {
  margin-top: 14px;
}

.section-footer-sns .sns-icons + .sns-icons {
  margin-top: 14px;
}


/* readability update for header / section titles */
.header-brand,
.h2,
.h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* disable title/character page clicks for now */
.square-main,
.square {
  pointer-events: none;
  cursor: default;
}

.square-main.is-static,
.square.is-static {
  pointer-events: none;
}

/* optional: remove hover feel if any browser still shows */
.square-main,
.square,
.square-main img,
.square img {
  -webkit-tap-highlight-color: transparent;
}


.section-lead {
  margin: 0 0 16px 0;
  text-align: center;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

.section-lead--compact {
  margin-top: 8px;
}

.guide-label {
  margin: 14px 0 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: #3c3c3c;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.guide-label--compact {
  margin: 0;
}

.video-meta .guide-label--compact {
  justify-self: start;
}

@media (max-width: 640px) {
  .section-lead {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .guide-label {
    font-size: 13px;
    padding: 7px 12px;
    margin: 12px 0 8px 0;
  }
}


.guide-line {
  margin: 14px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.guide-label--inline {
  margin: 0;
  min-width: 0;
}

.guide-time {
  margin: 0;
  flex: 0 0 auto;
  color: var(--sub);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
}

.shorts-actions {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .guide-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .guide-time {
    font-size: 13px;
    padding-left: 4px;
  }
}


/* v4 layout update */
.sns-icons-main,
.sns-icons-sub {
  justify-content: center;
}

.guide-line--main {
  align-items: center;
}

@media (max-width: 640px) {
  .guide-line {
    flex-wrap: wrap;
  }
}



/* v8 readability update */
.guide-label,
.lyrics-summary,
.lyrics-title,
.video-action,
.header-brand,
.header-nav a,
.h2,
.h3 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-ui);
}

.guide-label {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.lyrics-summary {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
}

.video-action {
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .guide-label {
    font-size: 14px;
    line-height: 1.65;
  }

  .lyrics-summary {
    font-size: 18px;
    line-height: 1.55;
  }
}


/* v9 button color update */
.video-action { color: #fff; border-color: transparent; }
.video-action-subscribe { background: #138a55; color: #fff; }
.video-action-youtube,
.video-action-shorts { background: #c62828; color: #fff; }
.video-action:hover { opacity: 0.94; }


/* v10 mobile line breaks */
.guide-chunk {
  display: inline;
}
.guide-chunk:not(:last-child) {
  margin-right: 0.35em;
}

@media (max-width: 640px) {
  .guide-label--inline {
    display: block;
  }

  .guide-chunk {
    display: block;
  }

  .guide-chunk:not(:last-child) {
    margin-right: 0;
  }
}


/* v11 guide text and hero copy cleanup */
.section-lead {
  display: none;
}

.guide-label--inline {
  gap: 0;
}

.guide-chunk:not(:last-child) {
  margin-right: 0;
}

@media (max-width: 640px) {
  .guide-line {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .guide-label,
  .guide-label--inline {
    display: block;
    width: 100%;
    text-align: center;
  }

  .guide-time {
    padding-left: 0;
    text-align: center;
  }

  .guide-chunk {
    display: block;
  }
}


/* work title fixed block */
.work-title {
  margin: 0 0 14px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
  .work-title {
    padding: 18px 22px;
    font-size: 18px;
    line-height: 1.55;
  }
}


/* hide red YouTube badge on short thumbnails */
.shorts-logo,
.shorts-logo--shorts {
  display: none !important;
}


/* mobile header sns link latest merge */
@media (max-width: 860px) {
  .header-inner {
    gap: 8px;
  }

  .header-brand {
    min-width: 0;
  }

  .header-nav {
    display: flex !important;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .header-nav a[data-label="nav_works"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    min-height: 38px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #8cc63f;
    color: #fff;
  }

  .header-nav a[data-label="nav_sns"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    min-height: 38px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #66c7ef;
    color: #fff;
  }
}


/* mobile shorts modal fit fix merged */
.shorts-modal__dialog {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.shorts-modal__head {
  flex: 0 0 auto;
}

.shorts-modal__player-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 640px) {
  .shorts-modal__dialog {
    width: min(94vw, 420px);
    max-height: 88vh;
    margin: 2vh auto;
    padding: 14px 14px 14px;
  }

  .shorts-modal__head {
    padding: 6px 52px 10px 4px;
  }

  .shorts-modal__player-wrap {
    aspect-ratio: auto;
    height: min(70vh, calc((94vw - 28px) * 16 / 9));
  }
}


/* section color update only */
html {
  scroll-behavior: smooth;
  background: #f8f6ee;
}

body {
  background: #f8f6ee;
}

.song-section {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  border-width: 1px;
  border-style: solid;
}

.song-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0));
}

.song-section > * {
  position: relative;
  z-index: 1;
}

.song-section--nyam {
  background: linear-gradient(180deg, rgba(224,243,255,.98), rgba(244,251,255,.92));
  border-color: rgba(110, 178, 220, .34);
  box-shadow: 0 12px 26px rgba(120, 177, 214, .12);
}

.song-section--iij {
  background: linear-gradient(180deg, rgba(255,238,204,.98), rgba(255,248,233,.92));
  border-color: rgba(224, 170, 79, .34);
  box-shadow: 0 12px 26px rgba(214, 173, 107, .12);
}

.song-section--shizuka {
  background: linear-gradient(180deg, rgba(237,228,255,.98), rgba(248,243,255,.92));
  border-color: rgba(155, 124, 204, .30);
  box-shadow: 0 12px 26px rgba(154, 132, 198, .12);
}

.work-title {
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  box-shadow: none;
  background: rgba(255,255,255,.82);
}

.lyrics-details {
  background: rgba(255,255,255,.86);
}

.section-footer-sns {
  background: linear-gradient(180deg, rgba(240,244,248,.92), rgba(255,255,255,.72));
  border-top: 1px solid rgba(0,0,0,.05);
}

@media (max-width: 860px) {
  .song-section {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .song-section {
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 20px;
  }
}

/* dark green thick border for main video and shorts */
.yt-embed {
  border: 4px solid #1f6b3a !important;
  border-radius: calc(var(--radius) + 2px) !important;
  background: transparent !important;
  box-shadow: 0 12px 24px rgba(31, 107, 58, 0.12);
}
.yt-embed iframe {
  border-radius: calc(var(--radius) - 2px) !important;
  display: block;
  width: 100%;
  height: 100%;
}
.shorts-card {
  border: 4px solid #1f6b3a !important;
  border-radius: calc(var(--radius) + 2px) !important;
  box-shadow: 0 12px 24px rgba(31, 107, 58, 0.12);
}
.shorts-card .shorts-thumb-wrap {
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0 !important;
}
.shorts-card .shorts-duration {
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) !important;
}
@media (max-width: 640px) {
  .yt-embed,
  .shorts-card {
    border-width: 4px !important;
  }
}


/* final no-border reset for main video and shorts */
.yt-embed,
.shorts-card {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.yt-embed::before,
.shorts-card::before {
  content: none !important;
  display: none !important;
}

.yt-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius) !important;
  background: transparent !important;
  transform: none !important;
}

.shorts-card {
  border-radius: var(--radius) !important;
}

.shorts-card .shorts-thumb-wrap,
.shorts-card .shorts-title,
.shorts-card .shorts-duration {
  background: rgba(255,255,255,.8) !important;
}

.shorts-card .shorts-thumb-wrap {
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

.shorts-card .shorts-duration {
  border-radius: 0 0 var(--radius) var(--radius) !important;
}


/* remove bottom gap in character frames */
.square {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: transparent !important;
  line-height: 0;
}

.square img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center bottom;
  vertical-align: bottom;
}


/* character frame gap fix without visual zoom */
.square {
  display: block !important;
  line-height: 0;
  font-size: 0;
  background: transparent !important;
  overflow: hidden;
}

.square img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  vertical-align: bottom;
  flex: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}


/* top feature video switcher */
.top-feature-section {
  padding-top: 18px;
}

.top-feature-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.top-feature-tab {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.top-feature-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
}

.top-feature-tab.is-active {
  border-color: rgba(31, 107, 58, .34);
  box-shadow: 0 14px 28px rgba(31, 107, 58, .12);
}

.top-feature-tab__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
  margin-bottom: 10px;
}

.top-feature-tab__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-feature-tab__text {
  display: block;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-height: 2.9em;
}

.top-feature-tab__mobile-break {
  display: none;
}

.top-feature-player {
  margin-top: 0;
}

.top-feature-actions {
  margin-top: 12px;
}

.top-feature-player,
#top-feature-player,
#top-feature-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

#top-feature-player iframe {
  border: 0;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .top-feature-tabs {
    gap: 10px;
  }

  .top-feature-tab {
    padding: 8px;
  }

  .top-feature-tab__text {
    font-size: 14px;
    min-height: 3.1em;
  }
}

@media (max-width: 640px) {
  .top-feature-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .top-feature-tab {
    padding: 6px;
    border-radius: 16px;
  }

  .top-feature-tab__thumb {
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .top-feature-tab__text {
    font-size: 12px;
    line-height: 1.35;
    min-height: 3.3em;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .top-feature-tab__mobile-break {
    display: block;
    height: 0;
  }
}

.top-feature-guide {
  margin: 0 0 14px 0;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 800;
  text-align: center;
}

.top-feature-tab__time {
  display: block;
  margin-top: 4px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

.top-feature-player {
  scroll-margin-top: 88px;
}

@media (max-width: 860px) {
  .top-feature-guide {
    font-size: 14px;
    line-height: 1.65;
    padding: 11px 14px;
  }

  .top-feature-tab__time {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .top-feature-guide {
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .top-feature-tab__text {
    min-height: 2.8em;
  }

  .top-feature-tab__time {
    font-size: 11px;
    margin-top: 3px;
  }
}


/* back to top action */
.video-action-top {
  background: #2a67d4;
  color: #fff;
  border-color: transparent;
  cursor: pointer;
}
.video-action-top:hover {
  opacity: 0.94;
}

.top-feature-guide__mobile-break { display: none; }

@media (max-width: 640px) {
  .top-feature-guide__mobile-break { display: inline; }

  .top-feature-player {
    overflow: hidden;
    background: transparent !important;
  }

  #top-feature-player {
    line-height: 0;
    background: transparent !important;
  }

  #top-feature-player iframe {
    display: block;
    width: calc(100% + 2px) !important;
    margin-left: -1px;
    border: 0 !important;
    background: transparent !important;
  }
}

/* mobile header nav 80% size adjustment */
@media (max-width: 860px) {
  .header-nav {
    gap: 6px !important;
  }

  .header-nav a[data-label="nav_sns"],
  .header-nav a[data-label="nav_works"] {
    padding: 5.6px 9.6px !important;
    min-height: 30.4px !important;
    font-size: 11.2px !important;
    line-height: 1.2 !important;
  }
}


/* info section image */
.info-section {
  padding-top: 12px;
  padding-bottom: 6px;
}

.info-section__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.info-section__image {
  display: block;
  width: 100%;
  height: auto;
}

/* mobile crop to hide left black line on top player */
@media (max-width: 640px) {
  .top-feature-player {
    overflow: hidden;
    border-radius: var(--radius);
  }

  #top-feature-player {
    width: calc(100% + 4px);
    margin-left: -2px;
  }

  #top-feature-player iframe {
    width: calc(100% + 4px) !important;
    margin-left: -2px;
    max-width: none;
  }
}


/* added guide red labels */
.guide-label-red,
.guide-chunk--label {
  color: #d32f2f;
  font-weight: 900;
}

/* works jump navigation */
.works-jump-guide {
  margin: 4px 0 14px;
  text-align: center;
  font-weight: 800;
  line-height: 1.6;
}
.works-jump-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.works-jump-nav__item {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.works-jump-nav__item img {
  width: 100%;
  height: auto;
  display: block;
}
.works-jump-nav-section--bottom {
  padding-top: 8px;
}

/* footer jump buttons */
.footer-jump-actions {
  padding-top: 6px;
  padding-bottom: 6px;
}
.footer-jump-actions__row {
  justify-content: center;
}
.video-action-works {
  background: #8cc63f;
  color: #fff;
}

/* precise work alignment */
.song-section .work-title[data-work-target="true"] {
  scroll-margin-top: 84px;
}

/* footer copyright size balance */
.footer-sub {
  font-size: 13px;
  line-height: 1.2;
}
.footer-copyright-mark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
  transform: translateY(-0.02em);
}

@media (max-width: 640px) {
  .works-jump-nav {
    gap: 8px;
    margin-bottom: 16px;
  }
  .works-jump-guide {
    margin: 2px 0 12px;
    font-size: 14px;
  }
  .song-section .work-title[data-work-target="true"] {
    scroll-margin-top: 78px;
  }
}


.header-brand { display: inline-flex; align-items: center; }
.header-brand-logo { display: block; width: auto; height: 42px; }

.section-space-character {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 30px;
}
.section-space-character__img {
  display: block;
  width: min(240px, 42vw);
  height: min(240px, 42vw);
  object-fit: contain;
}

.footer-jump-actions__row--under-nav {
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .header-brand-logo { height: 36px; }
}

@media (max-width: 640px) {
  .header-brand-logo { height: 30px; }
  .section-space-character { margin: 16px 0 28px; }
  .section-space-character__img {
    width: min(150px, 38vw);
    height: min(150px, 38vw);
    object-fit: contain;
  }
}

/* top player mobile bottom black line final fix */
@media (max-width: 640px) {
  .top-feature-player {
    overflow: hidden !important;
    background: transparent !important;
  }

  #top-feature-player {
    width: calc(100% + 4px) !important;
    height: calc(100% + 4px) !important;
    margin-left: -2px !important;
    margin-top: -2px !important;
    line-height: 0 !important;
    overflow: hidden !important;
  }

  #top-feature-player iframe {
    display: block !important;
    width: calc(100% + 4px) !important;
    height: calc(100% + 4px) !important;
    margin-left: -2px !important;
    margin-top: -2px !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
  }
}


/* work section players use same mobile overscan idea as top player */
@media (max-width: 640px) {
  .song-section .yt-embed {
    overflow: hidden !important;
    background: transparent !important;
  }

  .song-section .yt-embed iframe {
    display: block !important;
    width: calc(100% + 4px) !important;
    height: calc(100% + 4px) !important;
    margin-left: -2px !important;
    margin-top: -2px !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
  }
}


/* mobile: hide subscribe button */
@media (max-width: 640px) {
  .video-action-subscribe {
    display: none !important;
  }
}
