.ytc-shell {
  --ytc-shell: #111a29;
  --ytc-shell-glow: rgba(120, 184, 255, 0.22);
  --ytc-panel: #182437;
  --ytc-panel-soft: #22324a;
  --ytc-line: rgba(255, 255, 255, 0.12);
  --ytc-line-strong: rgba(255, 255, 255, 0.18);
  --ytc-text: #f8fbff;
  --ytc-muted: rgba(230, 239, 255, 0.86);
  --ytc-kicker: #8fcfff;
  --ytc-accent: #7bc4ff;
  --ytc-button-text: #081320;
  --ytc-shadow: 0 24px 64px rgba(8, 13, 24, 0.22);
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: clamp(14px, 1.4vw, 18px);
  background:
    radial-gradient(circle at top right, var(--ytc-shell-glow), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    var(--ytc-shell);
  color: var(--ytc-text);
  box-shadow: var(--ytc-shadow);
  overflow: clip;
  isolation: isolate;
}

.ytc-shell.ytc-theme-light-editorial {
  --ytc-shell: #f7f3e8;
  --ytc-shell-glow: rgba(197, 171, 112, 0.18);
  --ytc-panel: #ffffff;
  --ytc-panel-soft: #f2eadb;
  --ytc-line: rgba(46, 54, 73, 0.12);
  --ytc-line-strong: rgba(46, 54, 73, 0.2);
  --ytc-text: #152031;
  --ytc-muted: rgba(32, 44, 67, 0.8);
  --ytc-kicker: #8f6b20;
  --ytc-accent: #c89b3c;
  --ytc-button-text: #fffdf8;
  --ytc-shadow: 0 18px 48px rgba(29, 23, 14, 0.1);
}

.ytc-shell.ytc-theme-sunset-glass {
  --ytc-shell: #231924;
  --ytc-shell-glow: rgba(255, 158, 102, 0.18);
  --ytc-panel: #342135;
  --ytc-panel-soft: #462c45;
  --ytc-line: rgba(255, 229, 216, 0.12);
  --ytc-line-strong: rgba(255, 229, 216, 0.18);
  --ytc-text: #fff4ed;
  --ytc-muted: rgba(255, 227, 216, 0.82);
  --ytc-kicker: #ffc38d;
  --ytc-accent: #ff9e66;
  --ytc-button-text: #31170f;
  --ytc-shadow: 0 24px 64px rgba(25, 8, 13, 0.26);
}

.ytc-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.05), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
  opacity: 0.18;
}

.ytc-shell .ytc-header,
.ytc-shell .ytc-stage,
.ytc-shell .ytc-mobile-rail,
.ytc-shell .ytc-dots {
  position: relative;
  z-index: 1;
}

.ytc-shell .ytc-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.ytc-shell .ytc-copy {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.ytc-shell .ytc-kicker,
.ytc-shell .ytc-video-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ytc-kicker) !important;
  font-weight: 800;
}

.ytc-shell .ytc-title {
  margin: 0;
  color: var(--ytc-text) !important;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.08;
}

.ytc-shell .ytc-intro {
  margin: 0;
  max-width: 68ch;
  color: var(--ytc-muted) !important;
  font-size: 1rem;
  line-height: 1.65;
}

.ytc-shell .ytc-controls {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.ytc-shell .ytc-nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ytc-line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ytc-panel) 72%, transparent);
  color: var(--ytc-text);
  cursor: pointer;
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.ytc-shell .ytc-nav:hover,
.ytc-shell .ytc-nav:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--ytc-panel-soft) 80%, transparent);
  border-color: var(--ytc-accent);
}

.ytc-shell .ytc-stage {
  display: grid;
  grid-template-columns: minmax(150px, 0.92fr) minmax(0, 2.15fr) minmax(150px, 0.92fr);
  gap: 0;
  align-items: start;
  perspective: 1800px;
  padding-inline: 12px;
}

.ytc-shell .ytc-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 4;
  isolation: isolate;
}

.ytc-shell .ytc-player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #09101a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 3;
}

.ytc-shell .ytc-player-wrap::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.ytc-shell .ytc-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ytc-shell .ytc-meta {
  display: grid;
  gap: 9px;
  padding: 16px 18px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--ytc-panel) 94%, rgba(255,255,255,0.04) 6%);
  border: 1px solid var(--ytc-line-strong);
  box-shadow: 0 16px 30px rgba(16, 22, 34, 0.1);
  position: relative;
  z-index: 5;
}

.ytc-shell .ytc-video-title {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  line-height: 1.18;
  color: var(--ytc-text) !important;
}

.ytc-shell .ytc-video-date,
.ytc-shell .ytc-video-desc {
  margin: 0;
  color: var(--ytc-muted) !important;
}

.ytc-shell .ytc-video-desc {
  line-height: 1.62;
}

.ytc-shell .ytc-actions {
  padding-top: 2px;
}

.ytc-shell .ytc-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ytc-accent), color-mix(in srgb, var(--ytc-accent) 65%, #4f7cff));
  color: var(--ytc-button-text) !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(79, 124, 255, 0.22);
  transition: transform .24s ease, box-shadow .24s ease;
}

.ytc-shell .ytc-watch:hover,
.ytc-shell .ytc-watch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(79, 124, 255, 0.28);
}

.ytc-shell .ytc-side {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 78px;
}

.ytc-shell .ytc-side--prev {
  justify-items: end;
  margin-right: -74px;
}

.ytc-shell .ytc-side--next {
  margin-left: -74px;
}

.ytc-shell .ytc-side-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--ytc-line);
  background: color-mix(in srgb, var(--ytc-panel) 78%, transparent);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ytc-kicker) !important;
  font-weight: 700;
}

.ytc-shell .ytc-side-card {
  width: 100%;
  min-height: 250px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--ytc-line);
  transition: transform .42s ease, opacity .34s ease, filter .34s ease, box-shadow .34s ease;
  opacity: 0.86;
  filter: saturate(0.88) brightness(0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 18px 34px rgba(0,0,0,0.14);
}

.ytc-shell .ytc-side--prev .ytc-side-card {
  transform: perspective(1200px) rotateY(34deg) translateX(34px) scale(0.88) translateZ(-80px);
  transform-origin: right center;
}

.ytc-shell .ytc-side--next .ytc-side-card {
  transform: perspective(1200px) rotateY(-34deg) translateX(-34px) scale(0.88) translateZ(-80px);
  transform-origin: left center;
}

.ytc-shell .ytc-side:hover .ytc-side-card,
.ytc-shell .ytc-side:focus-visible .ytc-side-card {
  opacity: 0.94;
  filter: saturate(1) brightness(0.98);
}

.ytc-shell .ytc-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1420;
}

.ytc-shell .ytc-side-copy {
  display: grid;
  gap: 6px;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.2));
}

.ytc-shell .ytc-side-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.98rem;
  line-height: 1.22;
  color: var(--ytc-text) !important;
}

.ytc-shell .ytc-side-date {
  font-size: 0.86rem;
  color: var(--ytc-muted) !important;
}

.ytc-shell .ytc-mobile-rail {
  display: none;
}

.ytc-shell .ytc-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ytc-shell .ytc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--ytc-text) 20%, transparent);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
}

.ytc-shell .ytc-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--ytc-accent), color-mix(in srgb, var(--ytc-accent) 60%, #4f7cff));
}

.ytc-shell.is-shift-next .ytc-main,
.ytc-shell.is-shift-prev .ytc-main {
  animation: ytc-main-shift .56s cubic-bezier(.18,.8,.2,1);
}

.ytc-shell.is-shift-next .ytc-side--next .ytc-side-card,
.ytc-shell.is-shift-prev .ytc-side--prev .ytc-side-card {
  animation: ytc-side-pivot .56s cubic-bezier(.18,.8,.2,1);
}

.ytc-shell.is-shift-next .ytc-side--prev .ytc-side-card,
.ytc-shell.is-shift-prev .ytc-side--next .ytc-side-card {
  animation: ytc-side-settle .56s cubic-bezier(.18,.8,.2,1);
}

@keyframes ytc-main-shift {
  0% { transform: translateX(0) scale(1) rotateY(0deg); opacity: 1; }
  32% { transform: translateX(var(--ytc-shift, 22px)) scale(.955) rotateY(var(--ytc-main-tilt, 4deg)); opacity: .68; }
  72% { transform: translateX(calc(var(--ytc-shift, 22px) * -0.18)) scale(1.012) rotateY(calc(var(--ytc-main-tilt, 4deg) * -0.45)); opacity: .94; }
  100% { transform: translateX(0) scale(1) rotateY(0deg); opacity: 1; }
}

@keyframes ytc-side-pivot {
  0% { opacity: .86; }
  24% { transform: translateY(8px) scale(.8) translateZ(-140px) rotateY(var(--ytc-side-tilt, -42deg)); opacity: .26; }
  56% { transform: translateY(-10px) scale(1.02) translateZ(24px) rotateY(calc(var(--ytc-side-tilt, -42deg) * -0.2)); opacity: .98; }
  100% { opacity: .86; }
}

@keyframes ytc-side-settle {
  0% { opacity: .86; }
  30% { transform: translateY(-4px) scale(.96) translateZ(-34px) rotateY(var(--ytc-side-rest, 34deg)); opacity: .72; }
  70% { transform: translateY(2px) scale(.89) translateZ(-96px) rotateY(calc(var(--ytc-side-rest, 34deg) * 1.08)); opacity: .46; }
  100% { opacity: .86; }
}

.ytc-shell.is-shift-next {
  --ytc-shift: 28px;
  --ytc-main-tilt: -5deg;
}

.ytc-shell.is-shift-prev {
  --ytc-shift: -28px;
  --ytc-main-tilt: 5deg;
}

.ytc-shell.is-shift-next .ytc-side--next .ytc-side-card {
  --ytc-side-tilt: -42deg;
}

.ytc-shell.is-shift-prev .ytc-side--prev .ytc-side-card {
  --ytc-side-tilt: 42deg;
}

.ytc-shell.is-shift-next .ytc-side--prev .ytc-side-card {
  --ytc-side-rest: 34deg;
}

.ytc-shell.is-shift-prev .ytc-side--next .ytc-side-card {
  --ytc-side-rest: -34deg;
}

@media (max-width: 980px) {
  .ytc-shell .ytc-stage {
    grid-template-columns: 1fr;
  }

  .ytc-shell .ytc-side {
    display: none;
  }

  .ytc-shell .ytc-mobile-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 72vw);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .ytc-shell .ytc-mobile-card {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--ytc-line);
    background: rgba(255,255,255,0.04);
    color: inherit;
    cursor: pointer;
    scroll-snap-align: start;
  }

  .ytc-shell .ytc-mobile-card.is-active {
    background: rgba(255,255,255,0.08);
    border-color: color-mix(in srgb, var(--ytc-accent) 68%, transparent);
  }

  .ytc-shell .ytc-mobile-thumb {
    width: 96px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    background: #0c1420;
  }

  .ytc-shell .ytc-mobile-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .ytc-shell .ytc-mobile-title {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.24;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--ytc-text) !important;
  }

  .ytc-shell .ytc-mobile-date {
    margin: 0;
    color: var(--ytc-muted) !important;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .ytc-shell {
    padding: 18px;
    gap: 16px;
  }

  .ytc-shell .ytc-header {
    align-items: start;
    flex-direction: column;
  }

  .ytc-shell .ytc-controls {
    align-self: stretch;
    justify-content: flex-end;
  }

  .ytc-shell .ytc-meta {
    padding: 15px;
  }

  .ytc-shell .ytc-watch {
    width: 100%;
  }
}
