:root {
  --black: #000;
  --surface: #0a0a0a;
  --surface-2: #111;
  --line: #252525;
  --text: #f3f3f3;
  --muted: #9a9a9a;
  --accent: #f89b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background: #000;
}

body.has-site-gate {
  overflow: hidden;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #000;
  border-bottom: 1px solid #171717;
}

.topbar::before {
  content: "";
  display: block;
  height: 1px;
  background: #4f2fb4;
}

.utility-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 1rem;
  border-bottom: 1px solid #131313;
  background: #050505;
  overflow-x: auto;
}

.utility-strip a {
  white-space: nowrap;
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.15rem;
  border-bottom: 1px solid transparent;
}

.utility-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #7f7f7f;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
}

.utility-strip a:hover {
  color: #f3f3f3;
  border-bottom-color: #f89b1b;
}

.utility-strip a.is-active {
  color: #fff;
  border-bottom-color: #f89b1b;
}

.utility-strip .utility-new-link {
  color: #000;
  background: #f89b1b;
  border: 1px solid #f0b96d;
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.utility-strip .utility-new-link:hover {
  color: #000;
  border-bottom-color: transparent;
  background: #ffb54d;
}

.utility-strip .utility-new-countdown {
  color: #ffd9ab;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.52rem 1rem 0.5rem;
  border-bottom: 1px solid #161616;
  max-width: 1360px;
  margin: 0 auto;
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.icon-btn {
  height: 28px;
  width: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #f89b1b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.logo {
  text-decoration: none;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
}

.logo-main {
  color: #fff;
}

.logo-hub {
  background: var(--accent);
  color: #000;
  border-radius: 4px;
  padding: 0.03em 0.2em;
  margin-left: 0.06rem;
}

.search {
  display: flex;
  height: 42px;
  max-width: 610px;
  justify-self: center;
  width: 100%;
  align-items: center;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  background: #202125;
  padding: 0 0.75rem;
}

.search-icon {
  color: #e5e5e5;
  font-size: 1.3rem;
  margin-right: 0.45rem;
}

.search input {
  width: 100%;
  border: 0;
  padding: 0;
  color: #f0f0f0;
  background: transparent;
  font-size: 0.98rem;
}

.search input::placeholder {
  color: #b0b0b0;
}

.search button {
  display: none;
}

.upload-btn,
.join-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.upload-btn {
  color: #170e00;
  background: linear-gradient(120deg, #f89b1b, #ffc877);
}

.join-btn {
  color: #f1f1f1;
  background: #171719;
  border: 1px solid #2b2b2b;
}

.header-action {
  border: 0;
  background: transparent;
  color: #e4e4e4;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #2d2d2d;
  background: #111214;
  color: #dbdbdb;
  text-decoration: none;
  font-size: 1rem;
}

.channel-strip {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 0.6rem 1rem 0;
  background: #000;
  border-bottom: 1px solid #1c1c1c;
  max-width: 1360px;
  margin: 0 auto;
}

.channel-strip a {
  text-decoration: none;
  white-space: nowrap;
  color: #f0f0f0;
  font-weight: 700;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  padding: 0 0.35rem 0.7rem;
  border-bottom: 2px solid transparent;
}

.channel-strip a.is-active {
  border-bottom-color: var(--accent);
  color: #fff;
}

.channel-popout {
  position: fixed;
  z-index: 70;
  width: min(340px, calc(100vw - 1rem));
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  background: #0c0c0c;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.58);
  padding: 0.75rem;
}

.channel-popout[hidden] {
  display: none;
}

.channel-popout h3 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
}

.channel-popout p {
  margin: 0.22rem 0 0.55rem;
  color: #b8b8b8;
  font-size: 0.82rem;
}

.channel-popout-links {
  display: grid;
  gap: 0.4rem;
}

.channel-popout-link {
  border: 1px solid #2f2f2f;
  background: #131313;
  border-radius: 8px;
  text-decoration: none;
  color: #ededed;
  padding: 0.44rem 0.52rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.channel-popout-link:hover {
  border-color: #f89b1b;
}

.layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}

.layout.layout-expanded {
  grid-template-columns: 1fr;
}

.content {
  min-width: 0;
}

.sidebar {
  background: #070707;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  height: fit-content;
  position: sticky;
  top: 122px;
}

.sidebar h2 {
  margin: 0 0 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

.sidebar.is-collapsed {
  display: none;
}

.sidebar-link {
  display: block;
  text-decoration: none;
  color: #d2d2d2;
  border-radius: 7px;
  padding: 0.44rem 0.5rem;
  font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: #191919;
  color: #fff;
}

.hero {
  background: linear-gradient(120deg, #0d0d0d 35%, #2e1d09);
  border: 1px solid #4a3011;
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.4rem, 3.2vw, 2.35rem);
  max-width: 18ch;
  line-height: 1.1;
}

.hero p {
  margin: 0.4rem 0 0;
  color: #d8d8d8;
}

.hero-tag {
  align-self: flex-start;
  background: #2a1d10;
  border: 1px solid #714b19;
  color: #ffcd86;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}

.controls {
  margin-top: 0.8rem;
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid #313131;
  background: #141414;
  color: #ddd;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #000;
  background: var(--accent);
  border-color: #f0a43a;
}

.sort-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbcbcb;
  font-weight: 600;
}

.sort-box select {
  border: 1px solid #333;
  background: #141414;
  color: #efefef;
  border-radius: 8px;
  padding: 0.34rem 0.55rem;
}

.control-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.secondary-btn {
  border: 1px solid #3a3a3a;
  background: #151515;
  color: #f1f1f1;
  border-radius: 8px;
  padding: 0.36rem 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn:hover {
  border-color: #f89b1b;
}

.secondary-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.control-status {
  color: #b7b7b7;
  font-size: 0.82rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  background: #090909;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 140ms ease, transform 140ms ease;
}

.card:hover {
  border-color: #4b3519;
  transform: translateY(-2px);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge,
.duration {
  position: absolute;
  bottom: 0.48rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.88);
  font-size: 0.75rem;
}

.play-badge {
  left: 0.48rem;
  padding: 0.16rem 0.45rem;
  font-weight: 800;
}

.duration {
  right: 0.48rem;
  padding: 0.13rem 0.38rem;
  font-weight: 700;
}

.meta {
  padding: 0.65rem 0.68rem 0.82rem;
}

.title {
  margin: 0;
  font-size: 1rem;
}

.channel {
  margin: 0.35rem 0 0;
  color: #d4ae73;
  font-size: 0.88rem;
  font-weight: 600;
}

.stats {
  margin: 0.24rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  background: #151515;
  color: #cfcfcf;
  font-size: 0.72rem;
  padding: 0.14rem 0.43rem;
}

.empty-state {
  padding: 1.3rem;
  border-radius: 12px;
  background: #090909;
  border: 1px solid #262626;
  color: #c9c9c9;
  font-weight: 600;
}

.live-section {
  margin-top: 1rem;
}

.live-head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.live-head p {
  margin: 0.25rem 0 0.7rem;
  color: #b0b0b0;
}

.live-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.live-card {
  border: 1px solid #2a2a2a;
  background: #080808;
  border-radius: 12px;
  overflow: hidden;
}

.live-card iframe,
.live-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border: 0;
}

.live-card video {
  object-fit: cover;
}

.live-meta {
  padding: 0.65rem;
}

.live-pill {
  display: inline-block;
  margin: 0;
  background: #cf1b1b;
  color: #fff;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
}

.live-meta h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.live-meta p {
  margin: 0.24rem 0 0;
  color: #b0b0b0;
}

.live-open-btn {
  margin-top: 0.58rem;
  border: 1px solid #f0a43a;
  background: #f89b1b;
  color: #000;
  border-radius: 8px;
  padding: 0.33rem 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.live-actions {
  margin-top: 0.58rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.live-source-link {
  border: 1px solid #383838;
  background: #141414;
  color: #ececec;
  border-radius: 8px;
  padding: 0.33rem 0.62rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.watch-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 1rem;
}

.watch-layout.side-collapsed {
  grid-template-columns: 1fr;
}

.watch-main,
.watch-side {
  min-width: 0;
}

.watch-side.is-collapsed {
  display: none;
}

.player-shell {
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.player-head {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.48rem 0.58rem;
  background: linear-gradient(180deg, #161616, #0f0f0f);
  border-bottom: 1px solid #2d2d2d;
}

.player-pill {
  border: 1px solid #404040;
  background: #1a1a1a;
  color: #d8d8d8;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-pill-live {
  background: #f89b1b;
  border-color: #f2b157;
  color: #000;
}

.player-stage {
  position: relative;
  background: #000;
}

.player-shell video,
.player-shell iframe {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #000;
  border: 0;
}

#watchEmbed {
  display: none;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.player-big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid #f4b566;
  background: rgba(248, 155, 27, 0.95);
  color: #000;
  font-size: 1.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

.player-big-play.is-hidden {
  display: none;
}

.player-toolbar {
  display: grid;
  gap: 0.45rem;
  padding: 0.48rem 0.58rem;
  background: linear-gradient(180deg, #0d0d0d, #080808);
  border-top: 1px solid #242424;
}

.player-seek-row {
  display: block;
}

.seek-input {
  width: 100%;
  accent-color: #f89b1b;
}

.player-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.player-toolbar-left,
.player-toolbar-right {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-btn {
  border: 1px solid #3a3a3a;
  background: #151515;
  color: #ececec;
  border-radius: 6px;
  padding: 0.22rem 0.48rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.toolbar-btn.is-accent {
  background: #f89b1b;
  color: #000;
  border-color: #f0b96d;
}

.player-time {
  font-size: 0.78rem;
  color: #d8d8d8;
  font-weight: 700;
}

.volume-input {
  width: 90px;
  accent-color: #f89b1b;
}

.speed-select {
  border: 1px solid #3a3a3a;
  background: #151515;
  color: #eaeaea;
  border-radius: 6px;
  padding: 0.18rem 0.34rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.watch-meta {
  margin-top: 0.8rem;
  border: 1px solid #232323;
  background: #090909;
  border-radius: 12px;
  padding: 0.9rem;
}

.watch-meta h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
}

.watch-stats {
  margin-top: 0.34rem;
  color: #b6b6b6;
  font-size: 0.95rem;
}

.engagement {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vote-btn {
  border: 1px solid #353535;
  background: #141414;
  color: #e8e8e8;
  border-radius: 999px;
  padding: 0.36rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.vote-btn.is-active {
  background: #f89b1b;
  color: #000;
  border-color: #f0ad4e;
}

.comment-box {
  margin-top: 0.85rem;
  border: 1px solid #232323;
  background: #090909;
  border-radius: 12px;
  padding: 0.85rem;
}

.comment-box h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.comment {
  padding: 0.55rem 0;
  border-top: 1px solid #1f1f1f;
}

.comment:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.comment-name {
  margin: 0;
  font-weight: 700;
}

.comment-text {
  margin: 0.15rem 0 0;
  color: #cecece;
}

.watch-side .side-title {
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.related-list {
  display: grid;
  gap: 0.7rem;
}

.related-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.55rem;
  text-decoration: none;
  border: 1px solid #262626;
  background: #090909;
  border-radius: 10px;
  overflow: hidden;
}

.related-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.related-live-thumb {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7a1414, #1a0b0b);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.related-copy {
  padding: 0.4rem 0.5rem 0.5rem 0;
}

.related-copy h3 {
  margin: 0;
  font-size: 0.92rem;
}

.related-copy p {
  margin: 0.24rem 0 0;
  font-size: 0.82rem;
  color: #afafaf;
}

.footer {
  margin-top: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: #9e9e9e;
  text-align: center;
  font-size: 0.84rem;
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  place-items: center;
  padding: 0.7rem;
}

.site-gate.is-visible {
  display: grid;
}

.site-gate-card {
  width: min(680px, 92vw);
  border: 1px solid #313131;
  background: #040404;
  padding: 0.9rem 0.9rem 1rem;
  text-align: center;
}

.site-gate-logo {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 4.3vw, 2.5rem);
  font-weight: 800;
}

.site-gate-logo span {
  color: #fff;
}

.site-gate-logo strong {
  background: #f89b1b;
  color: #000;
  border-radius: 8px;
  padding: 0 0.2em;
}

.site-gate h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.2rem, 3.3vw, 2.05rem);
  line-height: 1.05;
}

.site-gate-note {
  margin: 0.65rem auto 0;
  border: 1px solid #f89b1b;
  border-radius: 6px;
  width: fit-content;
  padding: 0.24rem 0.72rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-gate-copy {
  margin: 0.6rem auto 0;
  max-width: 58ch;
  font-size: clamp(0.88rem, 1.75vw, 1.02rem);
  color: #e3e3e3;
}

.site-gate-actions {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.site-gate-actions button {
  border: 2px solid #f89b1b;
  background: #1d1d1f;
  color: #f7f7f7;
  font-size: clamp(0.88rem, 1.38vw, 1rem);
  font-weight: 800;
  border-radius: 6px;
  padding: 0.58rem 0.68rem;
  cursor: pointer;
}

.site-gate-small {
  margin: 0.72rem 0 0;
  color: #cccccc;
  font-size: 0.86rem;
}

.utility-page {
  max-width: 1040px;
  margin: 1.25rem auto;
  padding: 0 1rem;
}

.utility-page h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.05;
}

.utility-page p {
  margin: 0.55rem 0 0;
  color: #cfcfcf;
  max-width: 72ch;
  line-height: 1.45;
}

.utility-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.utility-card {
  background: linear-gradient(180deg, #111, #0c0c0c);
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.utility-card h2 {
  margin: 0;
  font-size: 1.04rem;
}

.utility-card p {
  margin-top: 0.42rem;
  color: #d0d0d0;
}

.utility-list {
  margin: 0.68rem 0 0;
  padding-left: 1rem;
  color: #d3d3d3;
  line-height: 1.4;
}

.utility-list li + li {
  margin-top: 0.36rem;
}

.utility-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.48rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.7rem;
  border-top: 1px solid #222;
}

.utility-page > .utility-actions::before {
  content: "Snelle links:";
  color: #a9a9a9;
  font-size: 0.84rem;
  font-weight: 700;
  margin-right: 0.2rem;
}

.utility-card .utility-actions {
  margin-top: 0.65rem;
  padding-top: 0;
  border-top: 0;
}

.utility-card-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #e8e8e8;
  background: #121212;
  border: 1px solid #303030;
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.utility-card-link:hover {
  border-color: #f89b1b;
  color: #fff;
  background: #17120d;
}

.utility-notice-section {
  margin-top: 1rem;
}

.shop-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.9rem;
  align-items: start;
}

.shop-main,
.shop-cart {
  min-width: 0;
}

.shop-toolbar {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.shop-filter-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.shop-filter {
  border: 1px solid #343434;
  background: #141414;
  color: #e2e2e2;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-filter.is-active {
  color: #000;
  background: var(--accent);
  border-color: #f0b96d;
}

.shop-search {
  display: inline-grid;
  gap: 0.3rem;
  width: min(340px, 100%);
  color: #bdbdbd;
  font-size: 0.85rem;
  font-weight: 700;
}

.shop-search input {
  border: 1px solid #333;
  background: #121212;
  color: #eee;
  border-radius: 8px;
  padding: 0.48rem 0.58rem;
}

.shop-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.shop-source-note {
  margin: 0 0 0.75rem;
  color: #bbbbbb;
  font-size: 0.84rem;
}

.shop-source-note code {
  color: #f0f0f0;
  background: #121212;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
}

.shop-product-card {
  border: 1px solid #2d2d2d;
  background: #0f0f0f;
  border-radius: 12px;
  padding: 0.78rem;
  position: relative;
}

.shop-product-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
  margin-bottom: 0.62rem;
  border: 1px solid #2c2c2c;
  background: radial-gradient(circle at top, #161616, #0a0a0a);
}

.shop-new-badge {
  position: absolute;
  top: 1.16rem;
  left: 1.16rem;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  background: #f89b1b;
  color: #000;
  border: 1px solid #f0b96d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shop-limited-badge {
  position: absolute;
  top: 1.16rem;
  right: 1.16rem;
  border-radius: 999px;
  padding: 0.14rem 0.48rem;
  background: #2a1212;
  color: #ffc4c4;
  border: 1px solid #8d3737;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shop-countdown {
  margin-top: 0.44rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #8d3737;
  background: #1a0f0f;
  color: #ffd3d3;
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.shop-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}

.shop-product-card h3 {
  margin: 0;
  font-size: 1rem;
}

.shop-product-category {
  margin: 0.22rem 0 0;
  color: #b3b3b3;
  font-size: 0.8rem;
}

.shop-product-price {
  color: #ffd08e;
  font-weight: 800;
  white-space: nowrap;
}

.shop-product-card p {
  margin: 0.55rem 0 0;
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.35;
}

.shop-product-card button {
  margin-top: 0.6rem;
  border: 1px solid #f0b96d;
  background: #f89b1b;
  color: #000;
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.shop-cart {
  border: 1px solid #2b2b2b;
  background: #0d0d0d;
  border-radius: 12px;
  padding: 0.85rem;
  position: sticky;
  top: 132px;
}

.shop-cart h2 {
  margin: 0;
  font-size: 1.2rem;
}

.shop-cart-sub {
  margin: 0.3rem 0 0.65rem;
  color: #b5b5b5;
  font-size: 0.84rem;
}

.shop-cart-list {
  display: grid;
  gap: 0.52rem;
  max-height: 320px;
  overflow: auto;
}

.shop-cart-item {
  border: 1px solid #2d2d2d;
  background: #141414;
  border-radius: 10px;
  padding: 0.55rem;
}

.shop-cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-cart-item-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.shop-cart-item-title span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-cart-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #101010;
  border-radius: 7px;
  border: 1px solid #333;
  flex: 0 0 auto;
}

.shop-cart-item-controls {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shop-cart-item-controls button {
  width: 26px;
  height: 26px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #e8e8e8;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.shop-cart-item-controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.shop-cart-empty {
  border: 1px dashed #353535;
  border-radius: 10px;
  padding: 0.7rem;
  color: #b5b5b5;
  font-size: 0.88rem;
}

.shop-cart-totals {
  margin-top: 0.7rem;
  border-top: 1px solid #272727;
  padding-top: 0.65rem;
}

.shop-cart-totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: #dbdbdb;
  font-size: 0.9rem;
}

.shop-cart-totals p + p {
  margin-top: 0.35rem;
}

.shop-grand-total {
  font-weight: 800;
  color: #fff;
  font-size: 0.98rem;
}

.shop-checkout-btn {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid #f0b96d;
  background: #f89b1b;
  color: #000;
  border-radius: 8px;
  padding: 0.52rem 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.shop-checkout-note {
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  color: #bfbfbf;
  font-size: 0.84rem;
}

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

  .sidebar {
    position: static;
  }

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

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-cart {
    position: static;
  }
}

@media (max-width: 820px) {
  .utility-strip {
    justify-content: flex-start;
  }

  .main-strip {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .channel-strip {
    gap: 1rem;
  }

  .related-item {
    grid-template-columns: 1fr;
  }

  .player-toolbar {
    gap: 0.55rem;
  }

  .player-controls-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .volume-input {
    width: 130px;
  }

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