/* ============================================================
   作品ページ /v/<id>（v.php）。トップと同じ色・フォントで軽く作る
   ============================================================ */
:root {
  --pink: #f472b6; --magenta: #d946ef; --purple: #a855f7; --cyan: #22d3ee;
  --dark: #0c0a1a; --card: rgba(22, 17, 48, .62); --line: rgba(255,255,255,.09);
  --text: #f3eeff; --muted: #aaa4c6; --red: #ff0033;
  --display: 'Dela Gothic One', 'M PLUS Rounded 1c', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'M PLUS Rounded 1c', sans-serif; color: var(--text); line-height: 1.75;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(217,70,239,.18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34,211,238,.10), transparent 60%),
    var(--dark);
  min-height: 100vh;
}
a { color: var(--pink); text-decoration: none; }
img { display: block; max-width: 100%; }
html[lang="ja"] .l-en, html[lang="en"] .l-ja { display: none; }

.w-top {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: .8rem clamp(16px, 4vw, 40px); background: rgba(12,10,26,.82); border-bottom: 1px solid var(--line);
}
.w-logo { color: var(--text); font-weight: 900; }
.w-logo i { color: var(--pink); }
.w-back { font-size: .85rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: .3rem .9rem; }
.w-back:hover { color: var(--text); border-color: var(--pink); }

.w-main { width: min(1080px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 40px) 3rem; }

/* プレイヤー：虹色の縁（トップの注目作品と同じ） */
.w-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; isolation: isolate; }
.w-player::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 2px;
  background: conic-gradient(from 0deg, #f472b6, #fbbf24, #22d3ee, #a855f7, #f472b6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.w-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.w-head { margin-top: 1.2rem; }
.w-tag { display: inline-block; font-size: .72rem; font-weight: 900; color: #fff; background: linear-gradient(90deg, var(--magenta), var(--purple)); border-radius: 6px; padding: .1rem .55rem; margin-bottom: .4rem; }
.w-head h1 { font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.45; font-weight: 900; }
.w-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .4rem; color: var(--muted); font-size: .85rem; }

.w-channel { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.w-channel img { width: 48px; height: 48px; border-radius: 50%; }
.w-channel div { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.w-channel span { color: var(--muted); font-size: .8rem; }
.w-sub { margin-left: auto; background: #fff; color: #0f0f0f; font-weight: 900; font-size: .85rem; border-radius: 99px; padding: .5rem 1.1rem; white-space: nowrap; transition: background .2s, color .2s; }
.w-sub:hover { background: var(--red); color: #fff; }

.w-desc { margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; font-size: .88rem; }
.w-desc summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.w-desc p { margin-top: .6rem; overflow-wrap: anywhere; }

.w-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.w-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 900; border-radius: 99px; padding: .7rem 1.4rem; color: var(--text); border: 2px solid rgba(244,114,182,.5); }
.w-btn:hover { border-color: var(--pink); }
.w-btn-yt { background: var(--red); border-color: var(--red); color: #fff; }
.w-btn-yt:hover { filter: brightness(1.1); border-color: var(--red); }

.w-more { margin-top: 3rem; }
.w-more h2 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 1rem; }
.w-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 1rem; }
.w-card { display: flex; flex-direction: column; gap: .45rem; color: var(--text); min-width: 0; }
.w-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #1a1530; transition: border-radius .2s, box-shadow .2s; }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .3s; }
.w-card:hover .w-thumb { border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,0,51,.8); }
.w-card:hover .w-thumb img { scale: 1.05; }
.w-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 4px; padding: 0 .35rem; }
.w-ctitle { font-size: .85rem; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-ctag { font-size: .72rem; color: var(--muted); }

.w-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); }
.w-foot a { color: var(--muted); }
.w-foot a:hover { color: var(--pink); }

@media (max-width: 900px) { .w-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .w-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .8rem; }
  .w-player { border-radius: 10px; }
  .w-btn { flex: 1 1 100%; justify-content: center; }
}
@media (hover: none) {
  .w-card:hover .w-thumb { border-radius: 10px; box-shadow: none; }
  .w-card:hover .w-thumb img { scale: 1; }
}
