:root {
  --bg: #090a0d;
  --bg-raised: #11131a;
  --surface: #151821;
  --surface-soft: #1b1f2a;
  --border: #282d39;
  --text: #f7f8fb;
  --muted: #9ba3b2;
  --muted-2: #6e7686;
  --accent: #f04a36;
  --accent-2: #ff7c3a;
  --tag: #53c9ff;
  --tag-hover: #98e1ff;
  --ok: #67d99d;
  --shadow: 0 18px 55px rgb(0 0 0 / 44%);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgb(240 74 54 / 12%), transparent 26rem),
    linear-gradient(180deg, #0c0e13 0%, var(--bg) 42rem);
  color: var(--text);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5fd4ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 12px;
  color: #061016;
  font-weight: 800;
  background: #5fd4ff;
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  width: min(1480px, 100%);
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin: 24px;
  padding: 20px;
  color: var(--muted);
  background: rgb(17 19 26 / 76%);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin-top: 6px;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.site-footer a {
  color: #d9dde7;
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--tag-hover);
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr) max-content;
  align-items: center;
  gap: 18px;
  padding: 16px 24px 12px;
  background: rgb(9 10 13 / 88%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 148px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 148px;
  height: 34px;
}

.search {
  display: grid;
  grid-template-columns: 1fr 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1118;
}

.search input {
  min-width: 0;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

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

.search button,
.icon-button,
.segmented button,
.modal-close {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.search button {
  border-left: 1px solid var(--border);
}

.search button:hover,
.icon-button:hover,
.segmented button:hover,
.modal-close:hover {
  color: var(--text);
  background: rgb(255 255 255 / 5%);
}

.search svg,
.icon-button svg,
.segmented svg,
.modal-close svg {
  width: 20px;
  height: 20px;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.text-button {
  height: 38px;
  border-radius: 8px;
}

.icon-button {
  width: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.text-button {
  padding: 0 16px;
  color: white;
  font-size: 14px;
  font-weight: 750;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 24px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar a,
.quick-tags a,
.pagination a,
.pagination button {
  white-space: nowrap;
  border-radius: 7px;
}

.category-bar a {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #d9dde7;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .12s ease;
}

.category-bar a:hover,
.category-bar a.active {
  color: white;
  border-color: rgb(240 74 54 / 52%);
  background: rgb(240 74 54 / 14%);
}

.category-bar a:active {
  transform: translateY(1px) scale(.985);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 24px;
  padding: 24px;
}

.content-column,
.sidebar {
  min-width: 0;
}

.headline-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: 0;
}

#pageSubtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.view-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

select {
  height: 38px;
  padding: 0 34px 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
}

.segmented {
  display: inline-flex;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  width: 40px;
}

.segmented button + button {
  border-left: 1px solid var(--border);
}

.segmented button.active {
  color: white;
  background: rgb(83 201 255 / 14%);
}

.quick-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.quick-tags::-webkit-scrollbar {
  display: none;
}

.quick-tags a {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--tag);
  font-size: 13px;
  font-weight: 750;
  background: rgb(83 201 255 / 8%);
  border: 1px solid rgb(83 201 255 / 16%);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .12s ease;
}

.quick-tags a:hover,
.tag-link:hover {
  color: var(--tag-hover);
}

.quick-tags a:hover {
  background: rgb(83 201 255 / 14%);
  border-color: rgb(83 201 255 / 34%);
}

.quick-tags a:active {
  transform: translateY(1px) scale(.985);
}

.result-meta {
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 14px;
}

.video-grid.list-mode {
  grid-template-columns: 1fr;
}

.video-card {
  min-width: 0;
}

.video-grid.list-mode .video-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.thumb-link {
  display: block;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(140deg, rgb(255 255 255 / 7%), transparent 42%),
    linear-gradient(45deg, #2b3347, #10131b);
  border: 1px solid rgb(255 255 255 / 9%);
  box-shadow: 0 13px 28px rgb(0 0 0 / 24%);
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
}

.thumb::before {
  background:
    linear-gradient(90deg, transparent 0 6%, rgb(255 255 255 / 7%) 6% 8%, transparent 8% 14%, rgb(255 255 255 / 5%) 14% 15%, transparent 15%),
    radial-gradient(circle at var(--x, 70%) var(--y, 35%), var(--c1, rgb(240 74 54 / 46%)), transparent 25%),
    linear-gradient(135deg, var(--c2, #30374c), var(--c3, #11141e));
  filter: saturate(1.08);
}

.thumb::after {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0%), rgb(0 0 0 / 52%)),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 7px);
  opacity: .8;
}

.thumb:hover .play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgb(240 74 54 / 92%);
}

.dood-thumb,
.hover-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-preview {
  z-index: 2;
  opacity: 0;
  transition: opacity .16s ease;
}

.thumb:hover .hover-preview {
  opacity: 1;
}

.thumb:has(.dood-thumb)::before {
  opacity: 0;
}

.duration,
.quality {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  padding: 3px 6px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border-radius: 4px;
  background: rgb(0 0 0 / 78%);
}

.duration {
  right: 7px;
}

.quality {
  left: 7px;
  color: #10131b;
  background: var(--ok);
}

.play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  background: rgb(0 0 0 / 46%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background .18s ease;
}

.play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
  transform: translateX(1px);
}

.video-info {
  padding-top: 9px;
}

.video-info h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #f4f6fb;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-info h3 a:hover {
  color: var(--tag-hover);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.meta {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.card-tags,
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-link {
  color: var(--tag);
  font-size: 12px;
  font-weight: 760;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.entity-link {
  color: #67d99d;
  font-weight: 780;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.channel-link {
  color: #53c9ff;
}

.entity-link:hover,
.performer-link:hover {
  color: #a7f0c7;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.channel-link:hover {
  color: #9de4ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.video-info h3 .tag-link,
.video-info h3 .entity-link,
.watch-info h1 .tag-link,
.watch-info h1 .entity-link {
  font-size: inherit;
}

.sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.side-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(17 19 26 / 82%);
  box-shadow: var(--shadow);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.directory-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(17 19 26 / 82%);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}

.directory-card:hover {
  border-color: rgb(83 201 255 / 42%);
  background: rgb(27 31 42 / 92%);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgb(0 0 0 / 24%);
}

.directory-card:active {
  transform: translateY(1px) scale(.992);
}

.directory-card strong {
  color: var(--text);
  font-size: 17px;
  transition: color .16s ease;
}

.directory-card:hover strong {
  color: #9de4ff;
}

.directory-card span {
  color: var(--tag);
  font-size: 12px;
  font-weight: 800;
}

.directory-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.side-title h2,
.compact-panel h2 {
  font-size: 15px;
  line-height: 1.2;
}

.side-title span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.tag-list,
.channel-list,
.compact-panel {
  display: grid;
  gap: 9px;
}

.tag-row,
.channel-row {
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row a {
  min-width: 0;
  overflow: hidden;
  color: var(--tag);
  font-weight: 760;
  text-overflow: ellipsis;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.tag-row a:hover,
.channel-row a:hover,
.compact-panel a:hover {
  color: var(--tag-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag-row span,
.channel-row span {
  color: var(--muted-2);
  font-size: 12px;
}

.channel-row strong {
  color: var(--text);
  font-size: 13px;
}

.channel-row strong a {
  color: inherit;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.compact-panel a {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  transition: color .16s ease, border-color .16s ease;
}

.compact-panel a:hover {
  border-color: rgb(83 201 255 / 34%);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 30px 0 12px;
}

.pagination a,
.pagination button,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 0 rgb(0 0 0 / 38%), inset 0 1px 0 rgb(255 255 255 / 5%);
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .12s ease, transform .12s ease;
  user-select: none;
}

.pagination a:hover,
.pagination button:hover {
  color: white;
  background: rgb(27 31 42 / 96%);
  border-color: rgb(83 201 255 / 42%);
  box-shadow: 0 3px 0 rgb(0 0 0 / 42%), 0 10px 22px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(255 255 255 / 8%);
  transform: translateY(-1px);
}

.pagination a:active,
.pagination button:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgb(0 0 0 / 0%), inset 0 2px 4px rgb(0 0 0 / 32%);
}

.pagination .disabled,
.pagination .page-gap {
  color: rgb(150 159 178 / 58%);
  background: transparent;
  box-shadow: none;
}

.pagination .page-gap {
  border-color: transparent;
}

.pagination a.active {
  color: white;
  border-color: rgb(240 74 54 / 48%);
  background: rgb(240 74 54 / 14%);
  box-shadow: inset 0 0 0 1px rgb(240 74 54 / 18%), 0 2px 0 rgb(0 0 0 / 32%);
}

.video-modal[hidden] {
  display: none;
}

.video-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 24px;
  padding: 24px;
}

.watch-column {
  min-width: 0;
}

.watch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 18px;
  align-items: start;
}

.watch-player {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d0f15;
  box-shadow: var(--shadow);
}

.watch-player .player-art {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.player-empty {
  position: relative;
}

.player-empty p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  background: #090b10;
  border-top: 1px solid var(--border);
}

.player-notice {
  margin: 0;
  padding: 13px 16px;
  color: var(--muted);
  background: #090b10;
  border-top: 1px solid var(--border);
}

.unavailable-player .player-art {
  filter: grayscale(.65);
}

.dood-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #050609;
}

.embed-player-shell {
  position: relative;
  background: #050609;
}

.embed-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: #050609;
  border: 0;
  cursor: pointer;
}

.embed-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
}

.thumb picture,
.embed-cover picture {
  position: absolute;
  inset: 0;
  display: block;
}

.enhanced-thumb {
  filter: contrast(1.06) saturate(1.08) brightness(1.02);
}

.embed-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 8%), rgb(0 0 0 / 56%));
}

.embed-cover span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  text-indent: -999px;
  overflow: hidden;
  background: rgb(240 74 54 / 92%);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgb(0 0 0 / 42%);
}

.embed-cover span::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid white;
}

.embed-cover.is-hidden {
  display: none;
}

.player-fallback {
  padding: 12px 14px;
  color: var(--muted);
  background: #090b10;
}

.watch-rail {
  min-width: 0;
  padding: 14px;
  background: #10131a;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rail-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.rail-list .video-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.rail-list .video-info h3 {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.rail-list .meta {
  font-size: 12px;
}

.rail-list .card-tags {
  display: none;
}

.watch-info {
  min-width: 0;
  padding: 18px 20px 20px;
}

.detail-info {
  background: #0d0f15;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.watch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.watch-info h1 {
  max-width: 100%;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.watch-info h1 .tag-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-pill {
  border: 0;
}

.report-pill {
  color: #190805;
  background: #ff9c66;
}

.report-pill:hover {
  background: #ffbd91;
}

.watch-info p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.detail-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
}

.detail-label {
  color: #98a6bf;
  font-weight: 700;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  color: #061016;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  background: #5fd4ff;
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 18%);
  transition: color .16s ease, background .16s ease, box-shadow .12s ease, transform .12s ease;
}

.meta-pill:hover {
  color: #061016;
  background: #8be1ff;
  box-shadow: 0 8px 20px rgb(83 201 255 / 14%), inset 0 -1px 0 rgb(0 0 0 / 18%);
  transform: translateY(-1px);
}

.meta-pill:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 22%);
}

.below-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legal-page {
  padding: 24px;
}

.legal-panel {
  max-width: 860px;
}

.legal-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 74%);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d0f15;
  box-shadow: 0 26px 80px rgb(0 0 0 / 62%);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgb(0 0 0 / 52%);
}

.player-shell {
  padding: 14px;
  background: #050609;
}

.player-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 70% 30%, rgb(240 74 54 / 40%), transparent 30%),
    linear-gradient(135deg, #293247, #0f1118);
}

.player-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgb(0 0 0 / 52%)),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 5%) 0 2px, transparent 2px 16px);
}

.player-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: white;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.player-play svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
  transform: translateX(2px);
}

.modal-body {
  padding: 18px 20px 22px;
}

.modal-body h2 {
  font-size: 24px;
  line-height: 1.2;
}

.modal-body p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.admin-page {
  padding: 24px;
}

.login-page {
  display: grid;
  min-height: calc(100vh - 110px);
  place-items: center;
}

.login-card {
  width: min(420px, 100%);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.video-admin-form {
  grid-column: 1 / -1;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form h1,
.admin-form h2 {
  font-size: 22px;
  line-height: 1.2;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  color: var(--text);
  background: #0f1118;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
}

.admin-form input,
.admin-form select {
  height: 42px;
  padding: 0 12px;
}

.admin-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: rgb(83 201 255 / 58%);
  box-shadow: 0 0 0 3px rgb(83 201 255 / 12%);
}

.notice {
  margin: 12px 0;
  color: var(--tag);
  font-size: 14px;
  font-weight: 700;
}

.admin-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(17 19 26 / 72%);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(110px, .7fr) minmax(160px, 2fr);
  gap: 14px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row a,
.admin-row span:first-child {
  color: var(--text);
  font-weight: 760;
}

@media (max-width: 1240px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .video-page {
    grid-template-columns: 1fr;
  }

  .watch-hero {
    grid-template-columns: 1fr;
  }

  .watch-rail {
    order: 2;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .brand {
    grid-column: 1 / 2;
    min-width: 0;
    overflow: hidden;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .top-actions {
    grid-column: 2;
  }

  .top-actions .text-button {
    display: none;
  }

  .headline-row {
    align-items: stretch;
    flex-direction: column;
  }

  .view-tools {
    justify-content: space-between;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .related-grid,
  .admin-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .rail-list .video-card {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .admin-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 540px) {
  .topbar,
  .category-bar,
  .page-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    gap: 12px;
  }

  .brand,
  .brand-logo {
    width: 148px;
    height: 34px;
  }

  #pageSubtitle {
    max-width: calc(100vw - 28px);
    line-height: 1.45;
  }

  .video-grid,
  .video-grid.list-mode {
    grid-template-columns: 1fr;
  }

  .video-page,
  .admin-page,
  .legal-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-footer {
    margin-left: 14px;
    margin-right: 14px;
  }

  .rail-list .video-card {
    grid-template-columns: 1fr;
  }

  .watch-info {
    padding: 14px 20px 16px;
  }

  .watch-info h1 {
    font-size: 20px;
    line-height: 1.22;
  }

  .video-grid.list-mode .video-card {
    grid-template-columns: 1fr;
  }

  .view-tools {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .modal-body h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
