:root {
  --bg: #0b0f14;
  --panel: rgba(16, 18, 34, 0.92);
  --panel-2: rgba(22, 26, 48, 0.92);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef3ff;
  --muted: #a2acbf;
  --accent: #00ffa8;
  --accent-2: #ff2b2b;
  --accent-3: #b44cff;
  --neon-red: #ff2b2b;
  --neon-green: #00ffa8;
  --neon-purple: #b44cff;
  --glow-red: rgba(255, 43, 43, 0.42);
  --glow-green: rgba(0, 255, 168, 0.34);
  --glow-purple: rgba(180, 76, 255, 0.36);
  --danger: #ff5a6a;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  --r: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Noto Sans,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1100px 620px at 12% 14%, rgba(255, 43, 43, 0.16), transparent 55%),
    radial-gradient(980px 560px at 84% 12%, rgba(0, 255, 168, 0.14), transparent 60%),
    radial-gradient(1200px 760px at 62% 86%, rgba(180, 76, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #060611, #0b0f14);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 420px at 50% 0%, rgba(0, 255, 168, 0.08), transparent 60%),
    radial-gradient(760px 420px at 15% 70%, rgba(255, 43, 43, 0.08), transparent 62%),
    radial-gradient(900px 520px at 85% 75%, rgba(180, 76, 255, 0.08), transparent 62%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.022),
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: haze 10s ease-in-out infinite alternate;
}

@keyframes haze {
  from {
    filter: saturate(1.05) brightness(1);
    transform: translate3d(0, 0, 0);
  }
  to {
    filter: saturate(1.25) brightness(1.05);
    transform: translate3d(0, -6px, 0);
  }
}

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 18px;
  width: min(1600px, calc(100% - 40px));
  margin: 18px auto 0;
}

.content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(rgba(16, 18, 34, 0.88), rgba(16, 18, 34, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 43, 0.8), rgba(0, 255, 168, 0.55), rgba(180, 76, 255, 0.8))
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48), 0 0 22px rgba(255, 43, 43, 0.12),
    0 0 22px rgba(180, 76, 255, 0.1);
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(480px 260px at 10% 10%, rgba(255, 43, 43, 0.34), transparent 60%),
    radial-gradient(520px 260px at 70% 0%, rgba(0, 255, 168, 0.22), transparent 60%),
    radial-gradient(520px 280px at 90% 80%, rgba(180, 76, 255, 0.26), transparent 65%);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar__section {
  display: grid;
  gap: 6px;
}

.sidebar__title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 10px 8px 4px;
}

.sidebar__item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 20, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 168, 0.06);
}

.sidebar__item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 255, 168, 0.16);
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.14), 0 0 16px rgba(0, 255, 168, 0.08),
    0 0 14px rgba(180, 76, 255, 0.08);
}

.sidebar__item--active {
  border-color: rgba(255, 43, 43, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 43, 43, 0.12), 0 0 18px rgba(255, 43, 43, 0.1),
    0 0 16px rgba(180, 76, 255, 0.08);
}

.sidebar__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 168, 1), rgba(180, 76, 255, 0.6));
  box-shadow: 0 0 0 6px rgba(0, 255, 168, 0.12), 0 0 16px rgba(180, 76, 255, 0.16);
}

.sidebar__hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 168, 0.3), rgba(180, 76, 255, 0.26),
      transparent);
  margin: 12px 0;
}

.sidebar__footer {
  margin-top: 12px;
  display: flex;
}

.sidebar__pill {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #061013;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 255, 168, 1), rgba(180, 76, 255, 0.84));
  border: 1px solid rgba(0, 255, 168, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 255, 168, 0.2);
}

.sidebar__pill:hover {
  filter: brightness(1.05);
}

.topics {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: auto hidden;
  padding: 10px 6px 12px;
  margin: 0 0 12px;
  scrollbar-width: thin;
}

.topics::-webkit-scrollbar {
  height: 10px;
}

.topics::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.topic {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 26, 48, 0.68);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(180, 76, 255, 0.08);
}

.topic:hover {
  border-color: rgba(0, 255, 168, 0.18);
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.14), 0 0 14px rgba(0, 255, 168, 0.08),
    0 0 14px rgba(180, 76, 255, 0.08);
}

.topic[aria-current="true"] {
  background: linear-gradient(180deg, rgba(255, 43, 43, 0.2), rgba(180, 76, 255, 0.14));
  border-color: rgba(255, 43, 43, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 43, 43, 0.14), 0 0 18px rgba(255, 43, 43, 0.14),
    0 0 18px rgba(180, 76, 255, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 560px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 43, 43, 0), rgba(255, 43, 43, 0.55),
      rgba(0, 255, 168, 0.55), rgba(180, 76, 255, 0.55), rgba(255, 43, 43, 0));
  filter: blur(0.2px);
  opacity: 0.9;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__right {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(255, 43, 43, 0.18), 0 0 18px rgba(180, 76, 255, 0.18);
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 0 14px rgba(255, 43, 43, 0.22), 0 0 18px rgba(180, 76, 255, 0.18);
}

.brand__badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 255, 168, 0.08), rgba(180, 76, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.12);
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search__input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.74);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 168, 0.06);
}

.search__input:focus {
  border-color: rgba(0, 255, 168, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 255, 168, 0.16), 0 0 0 8px rgba(180, 76, 255, 0.08);
}

.search__btn {
  height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 43, 43, 0.92), rgba(180, 76, 255, 0.72));
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 43, 43, 0.14);
}

.search__btn:hover {
  background: linear-gradient(180deg, rgba(255, 43, 43, 1), rgba(180, 76, 255, 0.88));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36), 0 0 18px rgba(255, 43, 43, 0.22),
    0 0 18px rgba(180, 76, 255, 0.18);
}

.ghost {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(180, 76, 255, 0.06);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.12);
}

.layout {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
}

.panel,
.side__card {
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 43, 0.6), rgba(0, 255, 168, 0.45), rgba(180, 76, 255, 0.6))
      border-box;
  border: 1px solid transparent;
  border-radius: var(--r);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.side__card {
  position: relative;
  overflow: hidden;
}

.side__card::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(420px 200px at 0% 30%, rgba(0, 255, 168, 0.18), transparent 60%),
    radial-gradient(420px 220px at 90% 10%, rgba(255, 43, 43, 0.18), transparent 60%),
    radial-gradient(420px 220px at 80% 90%, rgba(180, 76, 255, 0.18), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.side__card > * {
  position: relative;
  z-index: 1;
}

.panel {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(520px 240px at 10% 20%, rgba(255, 43, 43, 0.22), transparent 60%),
    radial-gradient(520px 260px at 70% 0%, rgba(0, 255, 168, 0.18), transparent 60%),
    radial-gradient(520px 240px at 90% 80%, rgba(180, 76, 255, 0.18), transparent 65%);
  filter: blur(2px);
  opacity: 0.8;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 26, 48, 0.72);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.08);
}

.chip:hover {
  background: rgba(22, 26, 48, 0.96);
  border-color: rgba(180, 76, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(180, 76, 255, 0.18), 0 0 16px rgba(180, 76, 255, 0.12);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 35, 50, 0.6);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(26, 35, 50, 0.88);
  border-color: rgba(0, 255, 168, 0.18);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(180, 76, 255, 0.14),
    0 0 26px rgba(0, 255, 168, 0.08);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: rgba(11, 15, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.38) 72%,
    rgba(0, 0, 0, 0.62)
  );
  pointer-events: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.25s ease;
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.thumb__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.62);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.12);
}

.card__title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.card__by {
  display: grid;
  gap: 2px;
}

.card__channel {
  font-size: 12px;
  color: var(--muted);
}

.card__stats {
  font-size: 12px;
  color: var(--muted);
}

.badge {
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 43, 43, 0.16), rgba(180, 76, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(255, 43, 43, 0.12), 0 0 14px rgba(255, 43, 43, 0.12),
    0 0 14px rgba(180, 76, 255, 0.1);
}

.side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.side__card {
  padding: 16px;
}

.list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.list li::before {
  content: "•";
  color: var(--accent);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty {
  margin-top: 16px;
}

.empty__card {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(11, 15, 20, 0.35);
}

.footer {
  width: min(1200px, calc(100% - 48px));
  margin: 20px auto 26px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
}

.footer__link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(0, 255, 168, 0.08), rgba(180, 76, 255, 0.06));
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.08);
}

.footer__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 255, 168, 0.16), 0 0 16px rgba(255, 43, 43, 0.14),
    0 0 16px rgba(180, 76, 255, 0.12);
}

.watch {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.watch__main {
  display: grid;
  gap: 14px;
}

.watch__side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.back {
  color: var(--muted);
  text-decoration: none;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.player {
  position: relative;
  border-radius: var(--r);
  background: linear-gradient(rgba(11, 15, 20, 0.55), rgba(11, 15, 20, 0.55)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 43, 0.65), rgba(0, 255, 168, 0.45), rgba(180, 76, 255, 0.65))
      border-box;
  border: 1px solid transparent;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46), 0 0 22px rgba(0, 255, 168, 0.08);
}

.player__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.player__overlayCard {
  width: min(420px, 92%);
  background: rgba(18, 24, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.meta {
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 43, 0.6), rgba(0, 255, 168, 0.45), rgba(180, 76, 255, 0.6))
      border-box;
  border: 1px solid transparent;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.meta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta__byline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 43, 43, 0.9), rgba(180, 76, 255, 0.7),
      rgba(0, 255, 168, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.meta__channel {
  font-weight: 650;
}

.desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.like {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(26, 35, 50, 0.8);
  color: var(--text);
}

.like[aria-pressed="true"] {
  border-color: rgba(0, 255, 168, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 255, 168, 0.16), 0 0 0 8px rgba(180, 76, 255, 0.08);
}

.like:hover {
  background: rgba(26, 35, 50, 1);
}

.like__count {
  font-size: 12px;
  color: var(--muted);
}

.comments {
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(255, 43, 43, 0.6), rgba(0, 255, 168, 0.45), rgba(180, 76, 255, 0.6))
      border-box;
  border: 1px solid transparent;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.comments__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.composer {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 20, 0.35);
}

.composer__row {
  display: flex;
  gap: 10px;
}

.input {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 38, 0.7);
  color: var(--text);
  outline: none;
  width: 100%;
}

.input:focus,
.textarea:focus {
  border-color: rgba(0, 255, 168, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 255, 168, 0.16), 0 0 0 8px rgba(180, 76, 255, 0.08);
}

.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 38, 0.7);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 86px;
}

.composer__actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 168, 0.75);
  background: linear-gradient(180deg, rgba(0, 255, 168, 0.92), rgba(180, 76, 255, 0.72));
  color: #061013;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: linear-gradient(180deg, rgba(0, 255, 168, 1), rgba(180, 76, 255, 0.86));
}

.commentList {
  display: grid;
  gap: 10px;
}

.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 35, 50, 0.55);
}

.comment__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment__name {
  font-weight: 650;
}

.comment__time {
  font-size: 12px;
  color: var(--muted);
}

.comment__text {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment__actions {
  display: flex;
  justify-content: flex-end;
}

.danger {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 106, 0.55);
  background: rgba(255, 90, 106, 0.12);
  color: var(--text);
  cursor: pointer;
}

.danger:hover {
  background: rgba(255, 90, 106, 0.2);
}

.upnext {
  display: grid;
  gap: 10px;
}

.upnext__item {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 35, 50, 0.55);
  transition: transform 0.16s ease, background 0.16s ease;
}

.upnext__item:hover {
  transform: translateY(-1px);
  background: rgba(26, 35, 50, 0.82);
}

.upnext__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(11, 15, 20, 0.35);
}

.upnext__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h1 {
  font-size: 20px;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 0 22px rgba(0, 255, 168, 0.12), 0 0 16px rgba(180, 76, 255, 0.1);
}

.h2 {
  font-size: 15px;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(255, 43, 43, 0.14);
}

.muted {
  color: var(--muted);
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1060px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .watch {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shell {
    width: min(1720px, calc(100% - 64px));
    gap: 22px;
  }

  .sidebar {
    top: 86px;
  }

  .topbar {
    padding: 16px 22px;
  }

  .panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .thumb img {
    transition: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar__right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

