* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #070709;
  color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
  color: inherit;
}

.screen {
  min-height: 100vh;
  background: #070709;
  padding: 28px 20px 48px;
}

.gate {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  gap: 12px;
  padding-top: 28px;
}

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand auth"
    "switcher search";
  gap: 22px 36px;
  align-items: center;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-area: brand;
}

.switcher {
  grid-area: switcher;
}

.search {
  grid-area: search;
  justify-self: end;
}

.kicker {
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.title {
  margin: 0;
  color: #fafafa;
  font-size: 32px;
  font-weight: 700;
}

.body {
  margin: 0;
  color: #d4d4d8;
  font-size: 16px;
  line-height: 22px;
}

.empty {
  padding: 8px 0 16px;
}

.enter {
  margin-top: 8px;
  background: #e11d48;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.enter-text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.switcher {
  display: flex;
  gap: 12px;
}

.chip {
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: transparent;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.chip.on {
  background: #fafafa;
  border-color: #fafafa;
  color: #09090b;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
}

.categories-label {
  flex-basis: 100%;
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 28px 0 0;
}

.pager-top {
  margin: 0 0 8px;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-btn {
  min-width: 40px;
  border: 1px solid #3f3f46;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.page-btn.on {
  background: #fafafa;
  border-color: #fafafa;
  color: #09090b;
}

.search {
  display: flex;
  gap: 12px;
  width: min(100%, 420px);
}

.search input {
  flex: 1;
  min-width: 0;
  background: #141418;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 10px 12px;
}

.search-go {
  background: #e11d48;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.player {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.player-frame {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.player-overlay-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.player-stage:hover .player-overlay-tools,
.player-stage:focus-within .player-overlay-tools {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .player-overlay-tools {
    opacity: 1;
    pointer-events: auto;
  }
}

.player-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.player-flash.active {
  animation: shutter-flash 0.35s ease-out;
}

@keyframes shutter-flash {
  0% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
  }
}

.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.player-title {
  margin: 0;
  flex: 1 1 240px;
  min-width: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.screenshot-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #3f3f46;
  background: #141418;
  color: #fafafa;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.screenshot-btn:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.screenshot-overlay-btn {
  background: rgba(9, 9, 11, 0.78);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}

.screenshot-icon {
  flex: none;
  display: block;
}

.player-quality {
  font: inherit;
  color: #fafafa;
  background: #141418;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.close {
  border: 1px solid #3f3f46;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 24px auto;
  border: 3px solid #3f3f46;
  border-top-color: #f4f4f5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  margin: 0 0 16px;
  color: #fda4af;
}

.row {
  margin-top: 28px;
}

.row-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.day-note {
  margin: 0 0 16px;
  color: #a1a1aa;
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #141418;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.card-meta {
  color: #a1a1aa;
  font-size: 12px;
}

.credit {
  margin: 28px 0 0;
  color: #71717a;
  font-size: 12px;
}

.auth-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  grid-area: auth;
}

.who {
  font-weight: 700;
}

.text-btn {
  border: 1px solid #3f3f46;
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.text-btn.on {
  background: #fafafa;
  color: #09090b;
  border-color: #fafafa;
}

.text-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.vote.on {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.vote.on .vote-count {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.auth,
.report,
.add-playlist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-panel {
  padding: 20px;
  border: 1px solid #27272a;
  border-radius: 16px;
  background: #101014;
}

.community .auth-slot {
  justify-content: flex-start;
  gap: 16px 12px;
}

.auth-panel .auth-slot {
  row-gap: 18px;
}

.auth {
  width: 100%;
  padding: 4px 0 0;
  border-radius: 12px;
  background: transparent;
}

.auth-title {
  flex-basis: 100%;
  margin: 0;
  font-weight: 700;
}

.auth .error {
  flex-basis: 100%;
  margin: 4px 0 0;
}

.auth input,
.report select,
.add-playlist input {
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 10px 12px;
}

.community {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 12px;
}

.votes,
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

.vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3f3f46;
  background: #141418;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.vote-count {
  min-width: 1.25em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #09090b;
  text-align: center;
}

.watched {
  margin: 0;
  color: #e4e4e7;
  font-weight: 700;
}

.autoplay {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.up-next,
.notice,
.community .error {
  margin: 0;
  color: #d4d4d8;
}

.community .error {
  color: #fda4af;
}

.scenes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shots {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.shot {
  flex: 0 0 148px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #141418;
  cursor: pointer;
  position: relative;
}

.shot.on {
  border-color: #e11d48;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-time {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.playlists,
.comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.playlist-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 180px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #141418;
  cursor: pointer;
  text-align: left;
}

.playlist-count {
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 700;
}

.playlist-name {
  font-size: 16px;
  font-weight: 700;
}

.playlist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.playlist-head .row-title,
.playlist-head .body {
  margin: 0;
}

.comment-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
}

.comment-form textarea {
  width: 100%;
  min-height: 84px;
  background: #141418;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
}

.comment {
  max-width: 640px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #141418;
}

.comment-user {
  margin: 0 0 4px;
  font-weight: 700;
}

.comment-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.4;
}

.ad-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
  margin: 0 0 32px;
}

.ad-unit {
  flex: 1 1 334px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #27272a;
  border-radius: 16px;
  background: #101014;
}

.ad-studio {
  flex: none;
  width: min(100%, 420px);
}

.ad-kicker {
  margin: 0;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ad-title {
  margin: 0;
  font-size: 18px;
}

.ad-note,
.ad-link {
  margin: 0;
  color: #d4d4d8;
  line-height: 22px;
}

.ad-link {
  color: #fff;
  font-weight: 700;
}

.ad-unit-promo {
  border: 1px dashed #3f3f46;
  background: #131318;
  justify-content: space-between;
}

.ad-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ad-btn:hover {
  background: #fb7185;
  color: #fff;
}

.ad-frame {
  display: block;
  width: min(100%, var(--ad-width, 300px));
  height: var(--ad-height, 250px);
  border: 0;
  background: #09090b;
}

.ad-frame-wide {
  width: 100%;
  height: 360px;
}

.cam-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
}

.cam-card {
  flex: 0 0 168px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.cam-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #141418;
}

.cam-name {
  font-weight: 700;
}

.cam-meta {
  color: #a1a1aa;
  font-size: 13px;
}

@media (max-width: 720px) {
  .screen {
    padding: 20px 16px 40px;
  }

  .title {
    font-size: 28px;
  }

  .header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "auth"
      "switcher"
      "search";
    gap: 18px;
  }

  .auth-slot,
  .community .auth-slot {
    justify-content: flex-start;
  }

  .search {
    justify-self: stretch;
    width: 100%;
  }

  .ad-unit {
    flex-basis: 100%;
  }

  .categories {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .categories-label {
    flex-basis: auto;
  }

  .categories .chip {
    flex: 0 0 auto;
  }

  .cookie-note {
    align-items: stretch;
    flex-direction: column;
  }
}

.gate-screen {
  min-height: 0;
}

.legal-inline a,
.legal-copy a,
.cookie-note a,
.site-footer a {
  color: #fda4af;
}

.site-footer {
  border-top: 1px solid #27272a;
  padding: 28px 20px 36px;
  background: #070709;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fafafa;
}

.footer-note {
  max-width: 1100px;
  margin: 16px auto 0;
  color: #71717a;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-note {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #27272a;
  background: #18181b;
}

.cookie-note[hidden] {
  display: none;
}

.cookie-note p {
  margin: 0;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.45;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.legal-meta {
  margin: 8px 0 0;
  color: #a1a1aa;
  font-size: 13px;
}

.legal-copy h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal-copy p,
.legal-copy li {
  color: #d4d4d8;
  font-size: 16px;
  line-height: 1.55;
}

.legal-copy ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal .kicker a {
  color: #a1a1aa;
  text-decoration: none;
}
