/* ══════════════════════════════════════
   影视在线 — btjat.com 深色主题
   ══════════════════════════════════════ */

:root {
  --ys-bg: #0f172a;
  --ys-bg2: #1e293b;
  --ys-card: rgba(30, 41, 59, 0.5);
  --ys-card-hover: rgba(30, 41, 59, 0.7);
  --ys-border: #334155;
  --ys-text: #fff;
  --ys-muted: #9ca3af;
  --ys-muted2: #6b7280;
  --ys-blue: #2563eb;
  --ys-blue-light: #3b82f6;
  --ys-blue-hover: #1d4ed8;
  --ys-green: #22c55e;
  --ys-purple: #a855f7;
  --ys-yellow: #eab308;
  --ys-red: #ef4444;
  --ys-radius: 0.5rem;
  --ys-container: 1280px;
}

/* ── Reset / base ── */
body.body-tpl-portal.body-tpl-ys {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--ys-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.body-tpl-portal.body-tpl-ys a {
  color: inherit;
  text-decoration: none;
}

body.body-tpl-portal.body-tpl-ys img {
  max-width: 100%;
  display: block;
}

body.body-tpl-portal.body-tpl-ys .container {
  width: 100%;
  max-width: var(--ys-container);
  margin-inline: auto;
  padding-inline: 1rem;
}

body.body-tpl-portal.body-tpl-ys .tpl-ys {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.body-tpl-portal.body-tpl-ys .tpl-ys > main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Particle canvas ── */
body.body-tpl-portal.body-tpl-ys .ys-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ── Header ── */
body.body-tpl-portal.body-tpl-ys .ys-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--ys-border);
}

body.body-tpl-portal.body-tpl-ys .ys-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__brand:hover {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-header__navlink {
  color: #fff;
  font-size: 0.9375rem;
  transition: color 0.2s;
  white-space: nowrap;
}

body.body-tpl-portal.body-tpl-ys .ys-header__navlink:hover {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-header__navitem {
  position: relative;
}

body.body-tpl-portal.body-tpl-ys .ys-header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 12rem;
  background: #1e293b;
  border-radius: var(--ys-radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 60;
  overflow: hidden;
}

body.body-tpl-portal.body-tpl-ys .ys-header__navitem:hover .ys-header__dropdown {
  opacity: 1;
  visibility: visible;
}

body.body-tpl-portal.body-tpl-ys .ys-header__dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #d1d5db;
  transition: background 0.2s, color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__dropdown a:hover {
  background: #334155;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-header__search {
  display: none;
  position: relative;
  align-items: center;
}

body.body-tpl-portal.body-tpl-ys .ys-header__search input {
  width: 16rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  background: #1e293b;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__search input::placeholder {
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-header__search input:focus {
  border-color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-header__search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ys-muted);
  pointer-events: none;
}

body.body-tpl-portal.body-tpl-ys .ys-header__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-header__login {
  color: #fff;
  font-size: 0.875rem;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__login:hover {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-header__register {
  padding: 0.5rem 1rem;
  background: var(--ys-blue);
  color: #fff;
  border-radius: var(--ys-radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__register:hover {
  background: var(--ys-blue-hover);
}

body.body-tpl-portal.body-tpl-ys .ys-header__profile {
  color: #fff;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__profile:hover {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

body.body-tpl-portal.body-tpl-ys .ys-header__mobile {
  padding: 1rem 0;
  border-top: 1px solid var(--ys-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.body-tpl-portal.body-tpl-ys .ys-header__mobile > a {
  color: #fff;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-header__mobile > a:hover {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-header__mobile-group > a:first-child {
  color: #fff;
  font-weight: 600;
}

body.body-tpl-portal.body-tpl-ys .ys-header__mobile-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-left: 0.75rem;
}

body.body-tpl-portal.body-tpl-ys .ys-header__mobile-subs a {
  padding: 0.25rem 0.65rem;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #d1d5db;
}

body.body-tpl-portal.body-tpl-ys .ys-header__search--mobile {
  display: flex;
  width: 100%;
}

body.body-tpl-portal.body-tpl-ys .ys-header__search--mobile input {
  width: 100%;
}

@media (min-width: 768px) {
  body.body-tpl-portal.body-tpl-ys .ys-header__search {
    display: flex;
  }

  body.body-tpl-portal.body-tpl-ys .ys-header__actions {
    display: flex;
  }
}

@media (min-width: 1024px) {
  body.body-tpl-portal.body-tpl-ys .ys-header__nav {
    display: flex;
  }

  body.body-tpl-portal.body-tpl-ys .ys-header__burger {
    display: none;
  }
}

/* ── Buttons ── */
body.body-tpl-portal.body-tpl-ys .ys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--ys-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

body.body-tpl-portal.body-tpl-ys .ys-btn--primary {
  background: var(--ys-blue);
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-btn--primary:hover {
  background: var(--ys-blue-hover);
}

body.body-tpl-portal.body-tpl-ys .ys-btn--outline {
  background: transparent;
  color: var(--ys-blue-light);
  border: 2px solid var(--ys-blue);
}

body.body-tpl-portal.body-tpl-ys .ys-btn--outline:hover {
  background: var(--ys-blue);
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-btn--block {
  width: 100%;
}

/* ── Hero ── */
body.body-tpl-portal.body-tpl-ys .ys-hero {
  padding: 5rem 0;
  text-align: center;
}

body.body-tpl-portal.body-tpl-ys .ys-hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-hero__lead {
  margin: 0 auto 2rem;
  max-width: 48rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #d1d5db;
  line-height: 1.625;
}

body.body-tpl-portal.body-tpl-ys .ys-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Sections ── */
body.body-tpl-portal.body-tpl-ys .ys-section {
  padding: 4rem 0;
}

body.body-tpl-portal.body-tpl-ys .ys-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-section__title--center {
  justify-content: center;
  margin-bottom: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-section__title--yellow .ys-section__icon {
  color: var(--ys-yellow);
}

body.body-tpl-portal.body-tpl-ys .ys-section__title--green .ys-section__icon {
  color: var(--ys-green);
}

body.body-tpl-portal.body-tpl-ys .ys-section__title--red .ys-section__icon {
  color: var(--ys-red);
}

body.body-tpl-portal.body-tpl-ys .ys-section__more {
  color: var(--ys-blue-light);
  font-size: 0.9375rem;
  transition: color 0.2s;
  white-space: nowrap;
}

body.body-tpl-portal.body-tpl-ys .ys-section__more:hover {
  color: #93c5fd;
}

/* ── Category grid (home) ── */
body.body-tpl-portal.body-tpl-ys .ys-catgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-cattile {
  display: block;
  padding: 1.5rem;
  background: var(--ys-card);
  border-radius: var(--ys-radius);
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}

@media (hover: hover) {
  body.body-tpl-portal.body-tpl-ys .ys-cattile:hover {
    background: var(--ys-card-hover);
    transform: scale(1.05);
  }
}

body.body-tpl-portal.body-tpl-ys .ys-cattile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-cattile h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-cattile:hover h3 {
  color: var(--ys-blue-light);
}

@media (min-width: 768px) {
  body.body-tpl-portal.body-tpl-ys .ys-catgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  body.body-tpl-portal.body-tpl-ys .ys-catgrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Video grid ── */
body.body-tpl-portal.body-tpl-ys .ys-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-grid--cat {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  body.body-tpl-portal.body-tpl-ys .ys-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.body-tpl-portal.body-tpl-ys .ys-grid--cat {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.body-tpl-portal.body-tpl-ys .ys-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  body.body-tpl-portal.body-tpl-ys .ys-grid--cat {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  body.body-tpl-portal.body-tpl-ys .ys-grid--cat {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Video card ── */
body.body-tpl-portal.body-tpl-ys .ys-card {
  position: relative;
  background: var(--ys-card);
  border-radius: var(--ys-radius);
  overflow: hidden;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

@media (hover: hover) {
  body.body-tpl-portal.body-tpl-ys .ys-card:hover {
    background: var(--ys-card-hover);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  }
}

body.body-tpl-portal.body-tpl-ys .ys-card__link {
  display: block;
  color: inherit;
}

body.body-tpl-portal.body-tpl-ys .ys-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

body.body-tpl-portal.body-tpl-ys .ys-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

body.body-tpl-portal.body-tpl-ys .ys-card:hover .ys-card__media img {
  transform: scale(1.1);
}

body.body-tpl-portal.body-tpl-ys .ys-card__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

body.body-tpl-portal.body-tpl-ys .ys-card:hover .ys-card__shade {
  background: rgba(0, 0, 0, 0.4);
}

body.body-tpl-portal.body-tpl-ys .ys-card__playbtn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

body.body-tpl-portal.body-tpl-ys .ys-card__playbtn svg {
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  transform: scale(0.75);
  transition: transform 0.3s;
}

body.body-tpl-portal.body-tpl-ys .ys-card:hover .ys-card__playbtn {
  opacity: 1;
}

body.body-tpl-portal.body-tpl-ys .ys-card:hover .ys-card__playbtn svg {
  transform: scale(1);
}

body.body-tpl-portal.body-tpl-ys .ys-card__duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-card__cat {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-card__body {
  padding: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-card__title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-card:hover .ys-card__title {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: var(--ys-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.body-tpl-portal.body-tpl-ys .ys-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ys-muted2);
}

body.body-tpl-portal.body-tpl-ys .ys-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.body-tpl-portal.body-tpl-ys .ys-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-card__tags span {
  padding: 0.15rem 0.5rem;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  color: var(--ys-muted);
}

/* Row variant */
body.body-tpl-portal.body-tpl-ys .ys-card--row .ys-card__link {
  display: flex;
  flex-direction: row;
}

body.body-tpl-portal.body-tpl-ys .ys-card--row .ys-card__media {
  width: 12rem;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
}

body.body-tpl-portal.body-tpl-ys .ys-card--row .ys-card__body {
  flex: 1;
  min-width: 0;
}

body.body-tpl-portal.body-tpl-ys .ys-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-list .ys-card:hover {
  transform: none;
}

@media (max-width: 639px) {
  body.body-tpl-portal.body-tpl-ys .ys-card--row .ys-card__link {
    flex-direction: column;
  }

  body.body-tpl-portal.body-tpl-ys .ys-card--row .ys-card__media {
    width: 100%;
  }
}

/* ── Stats bar ── */
body.body-tpl-portal.body-tpl-ys .ys-stats {
  padding: 4rem 0;
  background: rgba(30, 41, 59, 0.3);
}

body.body-tpl-portal.body-tpl-ys .ys-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

body.body-tpl-portal.body-tpl-ys .ys-stats__num {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
}

body.body-tpl-portal.body-tpl-ys .ys-stats__num--blue { color: var(--ys-blue-light); }
body.body-tpl-portal.body-tpl-ys .ys-stats__num--green { color: var(--ys-green); }
body.body-tpl-portal.body-tpl-ys .ys-stats__num--purple { color: var(--ys-purple); }
body.body-tpl-portal.body-tpl-ys .ys-stats__num--yellow { color: var(--ys-yellow); }

body.body-tpl-portal.body-tpl-ys .ys-stats__grid > div > span:last-child {
  font-size: 0.875rem;
  color: var(--ys-muted);
}

@media (min-width: 768px) {
  body.body-tpl-portal.body-tpl-ys .ys-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Page shell ── */
body.body-tpl-portal.body-tpl-ys .ys-page {
  padding: 2rem 0 3rem;
}

body.body-tpl-portal.body-tpl-ys .ys-pageshell {
  padding-top: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-pageshell__head {
  margin-bottom: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-pageshell__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-pageshell__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ys-muted);
  line-height: 1.625;
}

body.body-tpl-portal.body-tpl-ys .ys-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-breadcrumb a {
  color: var(--ys-blue-light);
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-breadcrumb a:hover {
  color: #93c5fd;
}

/* ── Category page ── */
body.body-tpl-portal.body-tpl-ys .ys-category__inner {
  padding-top: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-category__head {
  margin-bottom: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-category__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-category__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ys-muted);
  line-height: 1.625;
}

body.body-tpl-portal.body-tpl-ys .ys-category__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-category__sub {
  padding: 0.5rem 1rem;
  background: var(--ys-card);
  border-radius: var(--ys-radius);
  color: #fff;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-category__sub:hover,
body.body-tpl-portal.body-tpl-ys .ys-category__sub.is-active {
  background: var(--ys-card-hover);
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-category__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-category__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-category__sort select {
  padding: 0.5rem 0.75rem;
  background: #1e293b;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
}

body.body-tpl-portal.body-tpl-ys .ys-category__sort select:focus {
  border-color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-category__viewtoggle {
  display: flex;
  gap: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-category__viewtoggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #1e293b;
  border: none;
  border-radius: var(--ys-radius);
  color: var(--ys-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-category__viewtoggle button:hover {
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-category__viewtoggle button.is-active {
  background: var(--ys-blue);
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-category__count {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-category__count strong {
  color: #fff;
  font-weight: 600;
}

body.body-tpl-portal.body-tpl-ys .ys-loadmore {
  margin-top: 3rem;
  text-align: center;
}

/* ── Watch page ── */
body.body-tpl-portal.body-tpl-ys .ys-watch__inner {
  padding-top: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__back {
  margin-bottom: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ys-blue-light);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__back a:hover {
  color: #93c5fd;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-player {
  border-radius: var(--ys-radius);
  overflow: hidden;
  background: #000;
}

body.body-tpl-portal.body-tpl-ys .ys-player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__panel {
  padding: 1.5rem;
  background: var(--ys-card);
  border-radius: var(--ys-radius);
}

body.body-tpl-portal.body-tpl-ys .ys-watch__title {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-watch__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__meta a {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-watch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #334155;
  border: none;
  border-radius: var(--ys-radius);
  color: #d1d5db;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__action:hover {
  background: #475569;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__action.is-active {
  background: #dc2626;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__section {
  margin-bottom: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__section:last-child {
  margin-bottom: 0;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__section p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.75;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__tags a {
  padding: 0.25rem 0.75rem;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ys-blue-light);
  transition: background 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__tags a:hover {
  background: rgba(37, 99, 235, 0.3);
}

body.body-tpl-portal.body-tpl-ys .ys-watch__side-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-watch__side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--ys-radius);
  transition: background 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard:hover {
  background: rgba(51, 65, 85, 0.3);
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard__thumb {
  position: relative;
  width: 6rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  overflow: hidden;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard__thumb em {
  position: absolute;
  bottom: 0.15rem;
  right: 0.15rem;
  padding: 0.05rem 0.25rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.15rem;
  font-style: normal;
  font-size: 0.625rem;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard__info {
  flex: 1;
  min-width: 0;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard__info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard:hover .ys-sidecard__info strong {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-sidecard__views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ys-muted2);
}

@media (min-width: 1024px) {
  body.body-tpl-portal.body-tpl-ys .ys-watch__layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* ── Detail page ── */
body.body-tpl-portal.body-tpl-ys .ys-detail__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover {
  position: relative;
  display: block;
  border-radius: var(--ys-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 28rem;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover:hover .ys-detail__cover-play {
  opacity: 1;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover-play svg {
  padding: 1rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
}

body.body-tpl-portal.body-tpl-ys .ys-detail__cover-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__desc {
  margin: 0 0 1.5rem;
  color: #d1d5db;
  line-height: 1.75;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__credits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__credits dt {
  font-size: 0.75rem;
  color: var(--ys-muted2);
  margin-bottom: 0.15rem;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__credits dd {
  margin: 0;
  font-size: 0.9375rem;
  color: #e5e7eb;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__credits a {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-detail__tags a {
  padding: 0.25rem 0.75rem;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  body.body-tpl-portal.body-tpl-ys .ys-detail__hero {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  body.body-tpl-portal.body-tpl-ys .ys-detail__credits {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Search ── */
body.body-tpl-portal.body-tpl-ys .ys-search__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-search__head-icon {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-search__head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-search__query {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-search__query strong {
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-search__form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
}

body.body-tpl-portal.body-tpl-ys .ys-search__form-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ys-muted);
  pointer-events: none;
}

body.body-tpl-portal.body-tpl-ys .ys-search__form input {
  flex: 1;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: #1e293b;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  color: #fff;
  font-size: 0.9375rem;
  outline: none;
}

body.body-tpl-portal.body-tpl-ys .ys-search__form input:focus {
  border-color: var(--ys-blue-light);
}

/* ── Auth ── */
body.body-tpl-portal.body-tpl-ys .ys-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  padding: 3rem 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-auth__card {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  background: var(--ys-card);
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  backdrop-filter: blur(4px);
}

body.body-tpl-portal.body-tpl-ys .ys-auth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-auth__card h1 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-auth__sub {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-auth__form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  color: #fff;
  font-size: 0.9375rem;
  outline: none;
}

body.body-tpl-portal.body-tpl-ys .ys-auth__form input:focus {
  border-color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-auth__error {
  margin: 0;
  font-size: 0.875rem;
  color: #f87171;
}

body.body-tpl-portal.body-tpl-ys .ys-auth__foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-auth__foot a {
  color: var(--ys-blue-light);
}

/* ── Info / static pages ── */
body.body-tpl-portal.body-tpl-ys .ys-info__head {
  text-align: center;
  margin-bottom: 3rem;
}

body.body-tpl-portal.body-tpl-ys .ys-info__head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-info__head p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-info__panel {
  padding: 2rem;
  background: var(--ys-card);
  border-radius: var(--ys-radius);
  color: #d1d5db;
  line-height: 1.75;
}

body.body-tpl-portal.body-tpl-ys .ys-info__panel h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-info__panel h2:first-child {
  margin-top: 0;
}

body.body-tpl-portal.body-tpl-ys .ys-info__panel ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

body.body-tpl-portal.body-tpl-ys .ys-info__panel li {
  margin-bottom: 0.35rem;
}

body.body-tpl-portal.body-tpl-ys .ys-info__cta {
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: linear-gradient(to right, var(--ys-blue), #9333ea);
  border-radius: var(--ys-radius);
  text-align: center;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-info__cta h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-info__cta p {
  margin: 0;
  color: #dbeafe;
}

body.body-tpl-portal.body-tpl-ys .ys-info__biz {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--ys-radius);
  color: var(--ys-blue-light);
  font-family: ui-monospace, monospace;
}

body.body-tpl-portal.body-tpl-ys .ys-info__back {
  margin-top: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-info__back a {
  color: var(--ys-blue-light);
}

/* ── Categories page subs ── */
body.body-tpl-portal.body-tpl-ys .ys-catsubs {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-catsubs__group h3 {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
}

body.body-tpl-portal.body-tpl-ys .ys-catsubs__group h3 a {
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-catsubs__group h3 a:hover {
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-catsubs__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-catsubs__links a {
  padding: 0.35rem 0.75rem;
  background: var(--ys-card);
  border-radius: var(--ys-radius);
  font-size: 0.8125rem;
  color: #d1d5db;
  transition: background 0.2s, color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-catsubs__links a:hover {
  background: var(--ys-card-hover);
  color: var(--ys-blue-light);
}

/* ── Empty / 404 ── */
body.body-tpl-portal.body-tpl-ys .ys-empty,
body.body-tpl-portal.body-tpl-ys .ys-notfound__inner {
  padding: 4rem 0;
  text-align: center;
}

body.body-tpl-portal.body-tpl-ys .ys-empty__title,
body.body-tpl-portal.body-tpl-ys .ys-notfound h1 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-empty__hint,
body.body-tpl-portal.body-tpl-ys .ys-notfound__hint {
  margin: 0;
  color: var(--ys-muted2);
}

body.body-tpl-portal.body-tpl-ys .ys-notfound__code {
  margin: 0 0 0.5rem;
  font-size: 4rem;
  font-weight: 800;
  color: var(--ys-blue-light);
  line-height: 1;
}

body.body-tpl-portal.body-tpl-ys .ys-notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Footer ── */
body.body-tpl-portal.body-tpl-ys .ys-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: #0f172a;
  border-top: 1px solid var(--ys-border);
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__inner {
  padding: 3rem 0 1.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__blurb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ys-muted);
  line-height: 1.625;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__dots {
  display: flex;
  gap: 1rem;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: ysPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__dot--blue { background: var(--ys-blue-light); }
body.body-tpl-portal.body-tpl-ys .ys-footer__dot--green { background: var(--ys-green); animation-delay: 0.1s; }
body.body-tpl-portal.body-tpl-ys .ys-footer__dot--purple { background: var(--ys-purple); animation-delay: 0.2s; }

@keyframes ysPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

body.body-tpl-portal.body-tpl-ys .ys-footer__col h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__col li {
  margin-bottom: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__col a {
  font-size: 0.875rem;
  color: var(--ys-muted);
  transition: color 0.2s;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__col a:hover {
  color: #fff;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__biz {
  padding-top: 0.5rem;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__biz-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-footer__biz-handle {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--ys-blue-light);
}

body.body-tpl-portal.body-tpl-ys .ys-footer__bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ys-border);
  font-size: 0.875rem;
  color: var(--ys-muted);
}

body.body-tpl-portal.body-tpl-ys .ys-footer__bar p {
  margin: 0;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.body-tpl-portal.body-tpl-ys .ys-footer__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ys-green);
}

@media (min-width: 768px) {
  body.body-tpl-portal.body-tpl-ys .ys-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.body-tpl-portal.body-tpl-ys .ys-footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  body.body-tpl-portal.body-tpl-ys .ys-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Scrollbar ── */
body.body-tpl-portal.body-tpl-ys ::-webkit-scrollbar {
  width: 8px;
}

body.body-tpl-portal.body-tpl-ys ::-webkit-scrollbar-track {
  background: #1e293b;
}

body.body-tpl-portal.body-tpl-ys ::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

body.body-tpl-portal.body-tpl-ys ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ── Focus ── */
body.body-tpl-portal.body-tpl-ys button:focus-visible,
body.body-tpl-portal.body-tpl-ys input:focus-visible,
body.body-tpl-portal.body-tpl-ys select:focus-visible,
body.body-tpl-portal.body-tpl-ys a:focus-visible {
  outline: 2px solid var(--ys-blue-light);
  outline-offset: 2px;
}

body.body-tpl-portal.body-tpl-ys .tpl-ys {
  background: transparent;
}

/* ── Mobile refinements ── */
@media (max-width: 767px) {
  body.body-tpl-portal.body-tpl-ys .ys-hero {
    padding: 3rem 0;
  }

  body.body-tpl-portal.body-tpl-ys .ys-hero__actions .ys-btn {
    padding: 0.65rem 1.5rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-section {
    padding: 2.5rem 0;
  }

  body.body-tpl-portal.body-tpl-ys .ys-section__title {
    font-size: 1.375rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-section__head {
    margin-bottom: 1.25rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-stats {
    padding: 2.5rem 0;
  }

  body.body-tpl-portal.body-tpl-ys .ys-stats__grid {
    gap: 1.5rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-stats__num {
    font-size: 1.5rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-cattile {
    padding: 1rem 0.75rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-watch__panel,
  body.body-tpl-portal.body-tpl-ys .ys-info__panel,
  body.body-tpl-portal.body-tpl-ys .ys-auth__card {
    padding: 1rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-watch__layout {
    gap: 1.25rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-detail__cover {
    max-width: none;
  }

  body.body-tpl-portal.body-tpl-ys .ys-category__toolbar {
    gap: 0.75rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-grid,
  body.body-tpl-portal.body-tpl-ys .ys-grid--cat {
    gap: 1rem;
  }

  body.body-tpl-portal.body-tpl-ys .ys-footer__inner {
    padding: 2rem 0 1.25rem;
  }
}

/* Touch targets on coarse pointers */
@media (pointer: coarse) {
  body.body-tpl-portal.body-tpl-ys .ys-header__burger,
  body.body-tpl-portal.body-tpl-ys .ys-category__viewtoggle button {
    min-width: 44px;
    min-height: 44px;
  }
}
