/* =========================================================
   Tuki Tales — Marketing Site
   Kid-friendly, playful, colorful
   ========================================================= */

:root {
  --c-primary: #ff5a8a;
  --c-primary-d: #e73f74;
  --c-secondary: #ffd23f;
  --c-accent: #5ec5ff;
  --c-purple: #a06bff;
  --c-green: #4ad295;

  --bg-cream: #fff8ee;
  --bg-white: #ffffff;
  --bg-pink-soft: #fff0f5;

  --ink-900: #2b1d3a;
  --ink-700: #514460;
  --ink-500: #7b6e8c;
  --ink-300: #b7adc4;

  --grad-1: linear-gradient(135deg, #ff5a8a 0%, #ff8a5a 50%, #ffd23f 100%);
  --grad-2: linear-gradient(135deg, #5ec5ff 0%, #a06bff 100%);
  --grad-3: linear-gradient(135deg, #4ad295 0%, #5ec5ff 100%);

  --shadow-sm: 0 4px 14px rgba(43, 29, 58, 0.06);
  --shadow-md: 0 14px 30px rgba(43, 29, 58, 0.10);
  --shadow-lg: 0 30px 60px rgba(43, 29, 58, 0.15);
  --shadow-pink: 0 18px 36px rgba(255, 90, 138, 0.35);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --container: 1180px;
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* ===== Eyebrow with inline emoji icon ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--bg-pink-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--c-primary); background: rgba(255, 255, 255, 0.95); }

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--ink-900);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-title-light { color: #fff; }
.section-sub { font-size: 18px; color: var(--ink-500); max-width: 640px; margin: 0 auto; }
.section-sub-light { color: rgba(255, 255, 255, 0.92); }
.section-head { text-align: center; margin-bottom: 50px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 17px; padding: 15px 28px; }

.btn-primary { background: var(--grad-1); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { box-shadow: 0 22px 44px rgba(255, 90, 138, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.9); color: var(--c-primary); border: 2px solid rgba(255, 90, 138, 0.25); }
.btn-ghost:hover { background: #fff; border-color: var(--c-primary); }
.btn-youtube { background: #ff0033; color: #fff; box-shadow: 0 18px 36px rgba(255, 0, 51, 0.4); }
.btn-youtube:hover { background: #e6002b; }
.btn-light { background: #fff; color: var(--ink-900); }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 29, 58, 0.05);
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--ink-900); }
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(255, 90, 138, 0.18));
}
.brand-logo-footer { width: 48px; height: 48px; }
.brand-accent { color: var(--c-primary); }

.nav-links { display: flex; gap: 26px; }
.nav-links a { font-weight: 700; font-size: 14.5px; color: var(--ink-700); transition: color .2s; position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 3px;
  background: var(--c-primary);
  border-radius: 3px;
  transform: translateX(-50%);
  transition: width .25s;
}
.nav-links a:hover { color: var(--c-primary); }
.nav-links a:hover::after { width: 24px; }

.nav-cta { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2.5px; margin: 0 auto; background: var(--ink-900); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(43, 29, 58, 0.05);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; border-bottom: 1px solid rgba(43, 29, 58, 0.05); width: 100%; }
  .nav-links.open a::after { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 60px 0 120px;
  background: linear-gradient(180deg, #fff8ee 0%, #ffeaf2 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  font-size: clamp(28px, 4vw, 50px);
  opacity: 0.85;
  filter: drop-shadow(0 6px 12px rgba(43, 29, 58, 0.1));
  animation: float 7s ease-in-out infinite;
  /* Hardware acceleration — keeps animation smooth on mobile */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.blob-1  { top: 12%;  left: 6%;   animation-delay: 0s; }
.blob-2  { top: 22%;  left: 88%;  animation-delay: 0.6s; font-size: 28px; }
.blob-3  { top: 55%;  left: 4%;   animation-delay: 1.2s; }
.blob-4  { top: 70%;  left: 92%;  animation-delay: 1.8s; }
.blob-5  { top: 8%;   left: 45%;  animation-delay: 2.4s; font-size: 38px; }
.blob-6  { top: 78%;  left: 30%;  animation-delay: 3s;   font-size: 36px; }
.blob-7  { top: 38%;  left: 95%;  animation-delay: 0.3s; font-size: 32px; }
.blob-8  { top: 85%;  left: 70%;  animation-delay: 1.5s; font-size: 30px; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50%      { transform: translate3d(0, -22px, 0) rotate(3deg); }
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; z-index: 1; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-stats { justify-content: center; }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-primary);
  background: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--ink-900);
  margin-bottom: 20px;
}
.grad-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-700); max-width: 540px; margin-bottom: 28px; }
@media (max-width: 880px) { .hero-sub { margin-left: auto; margin-right: auto; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-lbl { font-size: 13px; font-weight: 600; color: var(--ink-500); margin-top: 4px; }

.hero-media { display: flex; justify-content: center; align-items: center; }
.hero-logo-float {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 4s ease-in-out infinite;
  /* Hardware acceleration for mobile */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}
.hero-logo-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(255, 90, 138, 0.25)) drop-shadow(0 8px 16px rgba(43, 29, 58, 0.12));
}
.hero-card-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-1);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-pink);
  z-index: 1;
}

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; pointer-events: none; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===== Featured video ===== */
.featured { background: linear-gradient(180deg, #fff8ee 0%, #fff0f5 100%); }
.featured-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .featured-wrap { grid-template-columns: 1fr; gap: 24px; } }
.featured-info h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--ink-900);
  margin-bottom: 14px;
  line-height: 1.2;
}
.featured-info p { color: var(--ink-700); font-size: 16px; margin-bottom: 20px; }

/* ===== Video frame ===== */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-head);
  background: linear-gradient(135deg, #2b1d3a, #514460);
}

/* ===== Video grid (YouTube-feed style) ===== */
.videos { background: var(--bg-white); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 880px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Reset button defaults */
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .4s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
  transition: background .25s;
  opacity: 0;
}
.video-card:hover .video-play {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255,90,138,0.10) 0%, rgba(255,90,138,0.25) 100%);
}
.video-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid; place-items: center;
  color: #ff0033;
  font-size: 22px;
  padding-left: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform .25s, background .25s;
}
.video-card:hover .video-play-btn { transform: scale(1.08); background: var(--c-primary); color: #fff; }

.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* YouTube-feed style metadata block under thumbnail */
.video-meta-row {
  display: flex;
  gap: 12px;
  padding: 12px 4px 0;
  align-items: flex-start;
}
.video-channel-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-pink-soft);
}
.video-channel-avatar img { width: 100%; height: 100%; object-fit: contain; }
.video-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.video-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.video-card:hover .video-title { color: var(--c-primary); }
.video-channel {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.video-channel .verified {
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  background: var(--ink-500);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
}
.video-views {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
  margin: 0;
}

/* Old video-info layout (kept for backward compat, but unused in new card) */
.video-info-old { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }

/* ===== Modal player ===== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 40, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .25s;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: min(900px, 95vw);
  /* Reserve space at top for close button so it never overlaps viewport edges */
  margin-top: 30px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #000;
}
.video-modal-frame-wrap {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute;
  top: -52px;    /* sits clearly above the modal, never overlapping */
  right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-900);
  font-size: 22px;
  font-weight: 800;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s, background .2s;
  z-index: 2;
}
.video-modal-close:hover { transform: rotate(90deg); background: var(--c-primary); color: #fff; }
@media (max-width: 720px) {
  .video-modal-inner { width: 95vw; margin-top: 24px; }
  .video-modal-close { top: -48px; right: 4px; width: 36px; height: 36px; font-size: 20px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.videos-cta { text-align: center; margin-top: 50px; }

/* ===== Slider (Latest + Shorts) ===== */
.slider-section { background: var(--bg-white); }
.slider-section:nth-of-type(even) { background: var(--bg-cream); }
.shorts-section { background: linear-gradient(180deg, #fff0f5 0%, #fff8ee 100%) !important; }

.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--c-primary) transparent;
}
.slider-track::-webkit-scrollbar { height: 8px; }
.slider-track::-webkit-scrollbar-track { background: transparent; }
.slider-track::-webkit-scrollbar-thumb { background: rgba(255, 90, 138, 0.3); border-radius: 4px; }
.slider-track::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

.slider-skeleton, .grid-skeleton {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-500);
  font-family: var(--font-head);
  font-weight: 600;
}

.slider-arrow {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-900);
  font-size: 28px;
  font-weight: 800;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s, background .2s, color .2s;
  z-index: 2;
}
.slider-arrow:hover { background: var(--c-primary); color: #fff; transform: scale(1.1); }
.slider-arrow:active { transform: scale(1); }
.slider-arrow:disabled { opacity: 0.4; cursor: default; transform: none; background: #fff; color: var(--ink-500); }
@media (max-width: 720px) {
  .slider-arrow { width: 40px; height: 40px; font-size: 22px; }
  .slider-arrow.slider-prev { display: none; }
  .slider-arrow.slider-next { display: none; }
}

.slider-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}
@media (max-width: 720px) {
  .slider-card { flex-basis: 80%; }
}
@media (max-width: 480px) {
  .slider-card { flex-basis: 85%; }
}

.slider-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.slider-hint { font-size: 13px; color: var(--ink-500); font-weight: 600; }
@media (max-width: 720px) { .slider-hint { display: none; } }

/* ===== Shorts slider ===== */
.slider-track-shorts { gap: 16px; }

.short-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  /* Reset button defaults */
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
@media (max-width: 720px) { .short-card { flex-basis: 160px; } }
.short-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.short-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s;
  z-index: 1;
}
.short-iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .25s;
  z-index: 2;
}
.short-card.is-playing .short-thumb { opacity: 0; z-index: 1; }
.short-card.is-playing .short-iframe { opacity: 1; z-index: 2; }

.short-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  /* Sit ABOVE the iframe so buttons always remain clickable + visible */
  z-index: 3;
}
.short-card:hover .short-overlay,
.short-card.is-playing .short-overlay { opacity: 1; }

.short-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-controls {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.short-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  font-size: 14px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.short-btn:hover { transform: scale(1.1); background: #fff; }
.short-btn.is-active { background: var(--c-primary); color: #fff; }

.short-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(255, 0, 51, 0.85);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 4;
  transition: opacity .25s;
}
/* Hide badge when card is hovered or playing — overlay takes over */
.short-card:hover .short-badge,
.short-card.is-playing .short-badge { opacity: 0; }

/* Smooth infinite-scroll: hide native scrollbar but keep functionality */
.slider-track.is-infinite { scroll-snap-type: none; }
.slider-track.is-infinite::-webkit-scrollbar { display: none; }
.slider-track.is-infinite { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Playlists — YouTube style ===== */
.playlists { background: var(--bg-white); }
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 880px) { .playlist-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .playlist-grid { grid-template-columns: 1fr; } }

.playlist-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Reset button defaults */
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.playlist-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
}
.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s, opacity .4s;
}
.playlist-card:hover .playlist-thumb img { transform: scale(1.04); }
/* Dark gradient overlay on the right edge for the count pill */
.playlist-thumb-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 38%;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-family: var(--font-head);
}
.playlist-thumb-overlay .playlist-count {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.playlist-thumb-overlay .playlist-list-icon {
  width: 22px;
  height: 22px;
  fill: #fff;
}
/* Hover overlay with play button */
.playlist-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.playlist-card:hover .playlist-thumb-play { opacity: 1; }
.playlist-thumb-play svg {
  width: 56px;
  height: 56px;
  fill: #fff;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.playlist-info {
  padding: 12px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playlist-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.playlist-card:hover .playlist-title { color: var(--c-primary); }
.playlist-meta {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.playlist-meta .verified {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  background: var(--ink-500);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
}

/* ===== About (now at the end) ===== */
.about { background: linear-gradient(180deg, #fff8ee 0%, #fff0f5 100%); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 880px) { .about-inner { grid-template-columns: 1fr; gap: 40px; } }
.about-left p { font-size: 17px; color: var(--ink-700); margin-bottom: 16px; }
.about-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.about-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-1);
}
.about-tag:nth-child(2)::before  { background: var(--grad-2); }
.about-tag:nth-child(3)::before  { background: var(--grad-3); }
.about-tag:nth-child(4)::before  { background: linear-gradient(135deg, #a06bff 0%, #ff5a8a 100%); }
.about-tag:nth-child(5)::before  { background: linear-gradient(135deg, #ffd23f 0%, #ff8a5a 100%); }
.about-tag:nth-child(6)::before  { background: linear-gradient(135deg, #4ad295 0%, #5ec5ff 100%); }
.about-tag:nth-child(7)::before  { background: linear-gradient(135deg, #ff8a5a 0%, #a06bff 100%); }
.about-tag:nth-child(8)::before  { background: linear-gradient(135deg, #5ec5ff 0%, #ffd23f 100%); }
.about-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.about-tag > span:first-of-type {
  font-size: 24px;
  flex-shrink: 0;
}
.about-tag > span:last-child {
  flex: 1;
  line-height: 1.3;
}
@media (max-width: 560px) {
  .about-tags { grid-template-columns: 1fr; }
}

/* ===== Subscribe CTA ===== */
.subscribe { background: var(--grad-1); position: relative; overflow: hidden; text-align: center; color: #fff; }
.subscribe::before, .subscribe::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.subscribe::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.subscribe::after  { width: 240px; height: 240px; bottom: -100px; right: -60px; }
.subscribe-inner { position: relative; z-index: 1; }
.subscribe-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ===== Footer ===== */
.footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.7); padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
}
.footer-brand .brand { color: #fff; }
.footer-tag { font-size: 14px; margin-top: 8px; color: rgba(255, 255, 255, 0.6); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.7); transition: color .2s; }
.footer-links a:hover { color: var(--c-primary); }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 720px) { .footer-social { justify-content: center; } }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: #fff;
  transition: background .2s, transform .2s;
  position: relative;
}
.social-link svg { width: 22px; height: 22px; }
.social-link:hover { transform: translateY(-3px); }

/* Brand-colored hover per service */
.social-link[data-brand="youtube"]:hover    { background: #ff0033; }
.social-link[data-brand="instagram"]:hover  { background: #e1306c; }
.social-link[data-brand="ytmusic"]:hover     { background: #ff0033; }
.social-link[data-brand="spotify"]:hover     { background: #1db954; }
.social-link[data-brand="applemusic"]:hover  { background: #fa243c; }
.social-link[data-brand="facebook"]:hover     { background: #1877f2; }
.social-link[data-brand="twitter"]:hover      { background: #000; border: 1px solid #fff; }

.social-link.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.social-link.is-disabled::after {
  content: 'Coming soon';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  white-space: nowrap;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .2s;
}
.social-link.is-disabled:hover::after { opacity: 1; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ===== Floating subscribe button (mobile) ===== */
.float-sub {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-pink);
  z-index: 60;
  animation: pulse 2.5s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
@keyframes pulse {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); box-shadow: 0 12px 28px rgba(255, 90, 138, 0.45); }
  50%      { transform: translate3d(0, 0, 0) scale(1.08); box-shadow: 0 18px 36px rgba(255, 90, 138, 0.6); }
}
@media (max-width: 720px) { .float-sub { display: grid; } }

/* ===== Hide Netlify badge ===== */
/* Netlify adds a small badge in the bottom-right corner of deployed sites */
#netlify-badge,
.netlify-badge,
a[href*="netlify.com"][aria-label*="Netlify"],
div[class*="netlify-badge"],
iframe[src*="netlify.com"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  /* Honor reduced-motion preference only for non-essential transitions.
     The hero float/bob/pulse animations are gentle and central to the
     site's playful brand identity, so we keep them running. */
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
