:root {
  --yt-background: #0f0f0f;
  --yt-surface: #181818;
  --yt-surface-alt: #202020;
  --yt-border: rgba(255, 255, 255, 0.1);
  --yt-border-strong: rgba(255, 255, 255, 0.18);
  --yt-text-primary: #f1f1f1;
  --yt-text-secondary: #aaaaaa;
  --yt-text-muted: #8c8c8c;
  --yt-red: #ff0000;
  --yt-red-dark: #cc0000;
  --yt-green: #22c55e;
  --yt-card-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --sidebar-width: clamp(260px, 24vw, 340px);
  --max-content-width: 1480px;
  --radius-small: 8px;
  --radius-medium: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.theme-youtube {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--yt-background);
  color: var(--yt-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.yt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.yt-header__inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.yt-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--yt-text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yt-text-primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-btn--menu {
  width: 42px;
  height: 36px;
  border-radius: var(--radius-small);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
}

.icon-btn--menu span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--yt-text-primary);
}

.icon-btn--avatar {
  background: #272727;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.yt-logo {
  display: inline-flex;
  align-items: center;
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.yt-logo__you {
  background: var(--yt-surface);
  padding: 0.2rem 0.25rem 0.2rem 0.4rem;
  border-radius: 4px 0 0 4px;
}

.yt-logo__tube {
  background: var(--yt-red);
  padding: 0.2rem 0.6rem;
  border-radius: 0 4px 4px 0;
}

.yt-search {
  flex: 1 1 auto;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #121212;
}

.yt-search input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  color: var(--yt-text-primary);
  font-size: 0.95rem;
}

.yt-search input::placeholder {
  color: var(--yt-text-muted);
}

.yt-search button {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.yt-search button svg {
  width: 22px;
  height: 22px;
  fill: var(--yt-text-primary);
}

.yt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.watch-layout {
  max-width: var(--max-content-width);
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 1.8rem;
}

body.pricing-hidden .watch-layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1100px;
}

.watch-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.watch-player {
  background: #000;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--yt-card-shadow);
}

.player-frame {
  position: relative;
  padding-bottom: 56.25%;
}

.player-frame vturb-smartplayer,
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-top-meta {
  display: grid;
  gap: 0.35rem;
}

.video-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
}

.video-info {
  color: var(--yt-text-secondary);
  font-size: 0.9rem;
}

.channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--yt-surface);
  border-radius: var(--radius-medium);
  border: 1px solid var(--yt-border);
}

.channel-bar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yt-red);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Red Hat Display", sans-serif;
}

.channel-details p {
  line-height: 1.2;
}

.channel-name {
  font-weight: 600;
}

.channel-meta {
  color: var(--yt-text-secondary);
  font-size: 0.85rem;
}

.channel-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip-btn {
  background: var(--yt-surface-alt);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--yt-text-primary);
  transform: translateY(-1px);
}

.chip-btn--active {
  background: rgba(255, 0, 0, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.chip-emoji {
  font-size: 1rem;
}

.chip-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-subscribe {
  background: var(--yt-red);
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #fff;
}

.btn-subscribe:hover {
  background: var(--yt-red-dark);
  transform: translateY(-1px);
}

.btn-subscribe--active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yt-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-description {
  background: var(--yt-surface);
  border-radius: var(--radius-medium);
  border: 1px solid var(--yt-border);
}

.video-description__inner {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  font-size: 0.98rem;
  color: var(--yt-text-secondary);
}

.video-description__inner strong,
.video-description__inner em {
  color: var(--yt-text-primary);
}

.video-description__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--yt-text-muted);
}

.video-description ul {
  list-style: disc;
  margin-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.guarantee-panel,
.references-panel,
.comments-panel {
  background: linear-gradient(135deg, rgba(32, 32, 32, 0.95), rgba(18, 18, 18, 0.92));
  border-radius: var(--radius-medium);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.9rem;
  display: grid;
  gap: 1.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.guarantee-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 0, 0, 0.1), transparent 55%);
  pointer-events: none;
}

.guarantee-panel__heading {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.guarantee-panel__heading h2 {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
}

.guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 0, 0, 0.18);
  border: 1px solid rgba(255, 0, 0, 0.4);
}

.guarantee-panel__body {
  display: grid;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .guarantee-panel__body {
    grid-template-columns: minmax(0, 1.9fr) minmax(180px, 0.9fr);
    align-items: center;
    gap: 2.2rem;
  }
}

.guarantee-copy {
  display: grid;
  gap: 1rem;
  color: var(--yt-text-secondary);
}

.guarantee-copy p {
  font-size: 0.98rem;
}

.guarantee-points {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.guarantee-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(241, 241, 241, 0.88);
}

.guarantee-points li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  font-weight: 700;
  font-size: 0.85rem;
}

.guarantee-help {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-small);
  font-size: 0.85rem;
}

.guarantee-help__icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.guarantee-help a {
  color: #fff;
  text-decoration: underline;
}

.guarantee-seal {
  width: clamp(180px, 15vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(255, 76, 41, 0.45);
  box-shadow: 0 25px 55px rgba(255, 64, 64, 0.1);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Red Hat Display", sans-serif;
  color: #ffecec;
  background: radial-gradient(circle at center, rgba(255, 56, 56, 0.32), rgba(24, 24, 24, 0.9));
  position: relative;
}

.guarantee-seal::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.guarantee-seal__value {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.guarantee-seal__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guarantee-seal__sub {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.references-panel ul {
  display: grid;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--yt-text-secondary);
}

.references-panel em {
  color: var(--yt-text-primary);
  font-style: italic;
}

.comment {
  display: flex;
  gap: 1rem;
  background: var(--yt-surface-alt);
  padding: 1rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--yt-border);
}

.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--yt-text-primary);
}

.comment__author {
  font-weight: 600;
}

.comment__text {
  color: var(--yt-text-secondary);
  font-size: 0.95rem;
}

.watch-sidebar {
  display: grid;
  gap: 1.4rem;
}

.sidebar-section {
  background: var(--yt-surface);
  border-radius: var(--radius-medium);
  border: 1px solid var(--yt-border-strong);
  padding: 1.4rem;
  display: grid;
  gap: 1.3rem;
  position: sticky;
  top: calc(80px + 1.5rem);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-section::-webkit-scrollbar {
  width: 8px;
}

.sidebar-section::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.sidebar-title {
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.offer-tile {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  border-radius: var(--radius-small);
  text-decoration: none;
  color: inherit;
}

.offer-tile:hover,
.offer-tile:focus-within {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

@media (min-width: 960px) {
  .offer-tile {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr);
    align-items: center;
    gap: 2rem;
  }

  .offer-info {
    justify-self: stretch;
  }

  .offer-thumb {
    margin-inline: 0;
    justify-self: center;
  }
}

.offer-tile:focus-visible {
  outline: 3px solid var(--yt-red);
  outline-offset: 4px;
}

.offer-tile:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.offer-thumb {
  position: relative;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: transparent;
  max-width: clamp(180px, 80%, 260px);
  margin-inline: auto;
}

.offer-thumb img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.offer-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--yt-red);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.offer-badge--alt {
  background: var(--yt-green);
  color: #0d0d0d;
}

.offer-info {
  display: grid;
  gap: 0.6rem;
}

.offer-info h3 {
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.05rem;
}

.offer-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--yt-text-muted);
  letter-spacing: 0.18em;
}

.offer-price {
  font-size: 1.35rem;
  font-weight: 700;
}

.offer-price span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--yt-text-secondary);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.offer-info ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--yt-text-secondary);
}

.offer-info ul li::before {
  content: "•";
  color: var(--yt-red);
  margin-right: 0.4rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.btn-primary::before,
.btn-outline::before {
  content: "🛒";
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--yt-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--yt-red-dark);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--yt-text-primary);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-note {
  font-size: 0.85rem;
  color: var(--yt-text-secondary);
  border-radius: var(--radius-small);
  background: rgba(255, 0, 0, 0.12);
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 0, 0, 0.18);
}

.yt-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  padding: 2rem 1.5rem 2.5rem;
  margin-top: 4rem;
}

.yt-footer__inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
  color: var(--yt-text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 1200px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .sidebar-section {
    grid-template-columns: 1fr;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 920px) {
  .yt-header__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .yt-search {
    order: 3;
    width: 100%;
  }

  .watch-layout {
    padding: 0 1rem;
  }

  .channel-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-bar__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .watch-layout {
    margin: 1rem auto 2rem;
  }

  .player-frame {
    padding-bottom: 56.4%;
  }

  .channel-avatar {
    width: 44px;
    height: 44px;
  }

  .video-description__inner {
    font-size: 0.92rem;
  }

  .guarantee-panel,
  .references-panel,
  .comments-panel {
    padding: 1.3rem;
  }

  .offer-price {
    font-size: 1.15rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }
}
