/* ===== Creator-first home: hero, featured player, Shorts, pop-up player ===== */

/* Hero: headline stays on two lines, latest-episode card on the right */
.hero-copy { max-width: 640px; }
.hero-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem); }
@media (min-width: 900px) { .hero-title span { white-space: nowrap; } }
.hero-cta { gap: 14px; }
.hero-note { margin-top: 16px; padding-left: 0; border-left: 0; max-width: none; font-size: .88rem; }
.btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }
.play-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--saffron); }
.play-dot .ico { width: 13px; height: 13px; margin-left: 2px; }

.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-latest {
  position: relative; z-index: 2; display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center;
  width: 380px; flex: none; padding: 10px; border-radius: var(--radius-lg);
  background: rgba(8,18,34,.72); border: 1px solid rgba(243,181,63,.35); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); transition: transform .25s, border-color .25s;
}
.hero-latest:hover { transform: translateY(-3px); border-color: var(--gold); color: inherit; }
.hero-latest-thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.hero-latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-latest .v-play { opacity: 1; width: 38px; height: 38px; }
.hero-latest-text { display: grid; gap: 4px; min-width: 0; }
.hero-latest-text strong { font-size: .86rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-latest-text small { font-size: .74rem; color: var(--muted); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: #ff6b5e; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 0 0 rgba(255,59,47,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,59,47,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,47,0); } }

/* Featured player + playlist */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.feature-main { display: grid; gap: 16px; }
.lite { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #000; cursor: pointer; }
.lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.lite:hover img { transform: scale(1.02); filter: brightness(.85); }
.lite-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--yt); color: #fff; box-shadow: 0 10px 30px -6px rgba(255,45,32,.7); transition: transform .2s; }
.lite-play .ico { width: 26px; height: 26px; margin-left: 3px; }
.lite:hover .lite-play { transform: scale(1.08); }
.lite .v-dur { font-size: .8rem; }
.lite-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000; }
.lite-frame iframe, .lite-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feature-info { display: grid; gap: 6px; }
.feature-title { font: 700 clamp(1.15rem, .95rem + .8vw, 1.5rem)/1.4 var(--f-te); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.playlist { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--night-2); overflow: hidden; }
.playlist-head { display: flex; justify-content: space-between; padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.playlist-head span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.playlist ol { list-style: none; margin: 0; padding: 6px; max-height: 470px; overflow-y: auto; }
.pl-item { width: 100%; display: grid; grid-template-columns: 18px 128px 1fr; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pl-item:hover { background: rgba(255,255,255,.05); }
.pl-item.is-on { background: rgba(242,106,27,.14); }
.pl-num { font-size: .78rem; color: var(--muted); text-align: center; }
.pl-item.is-on .pl-num { color: var(--saffron-hi); }
.pl-thumb { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--panel); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb .v-dur { font-size: .66rem; padding: 1px 5px; right: 4px; bottom: 4px; }
.pl-text { display: grid; gap: 3px; min-width: 0; }
.pl-text strong { font-size: .84rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-text small { font-size: .72rem; color: var(--muted); }

/* Topics heading + counts */
.topics-block { margin-block: 56px 8px; }
.topics-title { font: 600 1.1rem/1.3 var(--f-body); color: var(--muted); text-align: center; margin-bottom: 18px; }
.topics-block .topics { margin: 0; }
.topic-count { font-size: .7rem; color: var(--muted); font-weight: 400; margin-top: -6px; }

/* Cards: "New" badge, Shorts */
.v-new { position: absolute; left: 8px; top: 8px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--yt); color: #fff; }
.track-shorts { grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; }
.v-card-short .v-thumb { aspect-ratio: 9/16; border-radius: 14px; }
.v-card-short .v-title { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-short-tag { position: absolute; left: 8px; top: 8px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.v-card-short .v-thumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* Channel card */
.channel-id { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.channel-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--night); }
.channel-id strong { display: block; font-size: 1.05rem; }
.channel-id span { font-size: .82rem; color: var(--muted); }
.bell-hint { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.bell-hint:hover { color: var(--gold); }
.bell-ring .ico { transform-origin: 50% 10%; animation: ring 3.5s ease-in-out infinite; }
@keyframes ring { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(14deg); } 90% { transform: rotate(-12deg); } 93% { transform: rotate(8deg); } 96% { transform: rotate(-5deg); } }

/* Blog cards without a cover: designed fallback */
.p-thumb-empty { background: radial-gradient(circle at 30% 25%, rgba(242,106,27,.35), transparent 55%), linear-gradient(135deg, #142a4d, #0b1730); }
.p-thumb-empty .ico { width: 64px; height: 64px; opacity: .9; }

/* Pop-up player */
.vmodal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.vmodal::backdrop { background: rgba(3,8,16,.86); backdrop-filter: blur(4px); }
.vmodal[open] { display: grid; place-items: center; }
.vmodal-box { width: min(1080px, calc(100% - 32px)); display: grid; gap: 12px; animation: pop .25s ease-out; }
.vmodal-box.is-short { width: min(400px, calc(100% - 32px)); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.vmodal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vmodal-title { font: 600 1rem/1.4 var(--f-te); color: #fff; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.vmodal-player { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px #000; }
.vmodal-box.is-short .vmodal-player { aspect-ratio: 9/16; max-height: 78vh; margin-inline: auto; width: 100%; }
.vmodal-player iframe, .vmodal-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
html.modal-open { overflow: hidden; }

/* Mobile subscribe bar */
.sub-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: rgba(13,27,49,.96); border: 1px solid var(--line); box-shadow: 0 12px 30px -10px #000; transform: translateY(140%); transition: transform .35s ease; }
.sub-bar.is-in { transform: none; }
.sub-bar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sub-bar span { flex: 1; display: grid; line-height: 1.2; min-width: 0; }
.sub-bar strong { font: 700 .95rem/1.2 var(--f-te); color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-bar small { font-size: .72rem; color: var(--muted); }

@media (max-width: 1040px) {
  .feature-grid { grid-template-columns: 1fr; }
  .playlist ol { max-height: none; display: grid; grid-auto-flow: column; grid-auto-columns: 260px; overflow-x: auto; }
  .pl-item { grid-template-columns: 110px 1fr; }
  .pl-num { display: none; }
  .track-shorts { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-latest { width: min(420px, 100%); }
}
@media (max-width: 860px) {
  .sub-bar[hidden] { display: none; }
  .sub-bar:not([hidden]) { display: flex; }
  .site-foot { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .track-shorts { grid-auto-columns: 44%; }
  .hero-latest { grid-template-columns: 120px 1fr; }
  .hero-cta .btn-lg { width: 100%; }
  .vmodal-box { width: 100%; }
  .vmodal-player { border-radius: 0; }
  .vmodal-bar, .vmodal-actions { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::before, .bell-ring .ico { animation: none; }
  .vmodal-box { animation: none; }
}
