:root {
  --bg: #0f0f0f;
  --panel: #181818;
  --panel-2: #212121;
  --panel-3: #272727;
  --text: #f1f1f1;
  --muted: #aaa;
  --line: #303030;
  --yt: #ff0033;
  --blue: #3ea6ff;
  --topbar: 56px;
  --sidebar: 248px;
  --radius: 14px;
}

* {
  box-sizing: border-box
}

html {
  background: var(--bg)
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden
}

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

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar);
  z-index: 60;
  display: grid;
  grid-template-columns: 260px minmax(250px, 620px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0
}

.hamburger {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 9px;
  background: #fff;
  display: block
}

.hamburger:hover {
  background: #272727
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #26d5f5;
  color: #0b0b0b;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.055em;
  white-space: nowrap
}

.brand small {
  font-size: 10px;
  color: #d9d9d9;
  align-self: flex-start;
  margin-top: 9px;
  letter-spacing: .02em
}

.searchbar {
  justify-self: center;
  width: 100%;
  height: 40px;
  display: flex
}

.searchbar input {
  height: 40px;
  min-width: 0;
  flex: 1;
  background: #121212;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  color: var(--text);
  outline: 0;
  padding: 0 18px;
  font-size: 16px
}

.searchbar input:focus {
  border-color: #3f6cb5
}

.searchbar button {
  width: 64px;
  border: 1px solid var(--line);
  border-radius: 0 999px 999px 0;
  background: #222;
  color: #fff;
  font-size: 24px;
  line-height: 1
}

.searchbar button:hover {
  background: #2b2b2b
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0
}

.create-btn,
.login-btn,
.logout-btn {
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 800
}

.create-btn {
  background: #222;
  color: #fff;
  gap: 6px
}

.create-btn:hover,
.logout-btn:hover {
  background: #303030
}

.login-btn {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent
}

.logout-btn {
  background: #222
}

.bell {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff
}

.bell:hover,
.bell:focus-visible {
  background: #222
}

.bell b {
  position: absolute;
  top: 2px;
  right: 0;
  background: #ff0033;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px
}

.page-heading {
  width: min(900px, 100%);
  margin: 12px auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.page-heading h1 {
  margin: 0;
  font-size: 28px
}

.page-heading p {
  margin: 5px 0 0;
  color: var(--muted)
}

.notification-page-list {
  width: min(900px, 100%);
  margin: 0 auto 54px;
  display: grid;
  gap: 10px
}

.notification-item {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  transition: background .14s ease, border-color .14s ease
}

.notification-item:hover,
.notification-item:focus-visible {
  background: #202020;
  border-color: rgba(255, 255, 255, .16)
}

.notification-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: #3ea6ff;
  box-shadow: 0 0 0 4px rgba(62, 166, 255, .12)
}

.notification-like .notification-dot {
  background: #ff4f7a;
  box-shadow: 0 0 0 4px rgba(255, 79, 122, .13)
}

.notification-admin .notification-dot {
  background: #f5c451;
  box-shadow: 0 0 0 4px rgba(245, 196, 81, .13)
}

.notification-item strong {
  display: block;
  font-size: 14px
}

.notification-item small {
  display: block;
  margin-top: 2px;
  color: #8f8f8f;
  font-size: 12px
}

.notification-item p {
  margin: 7px 0 0;
  color: #dedede;
  font-size: 14px;
  line-height: 1.35
}

.empty-state.compact {
  margin-top: 24px
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d4ff, #4058ff, #ff0033);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .1) inset
}

.app-shell {
  min-height: 100vh
}

.sidebar {
  position: fixed;
  top: var(--topbar);
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  z-index: 40;
  background: #0f0f0f;
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding: 12px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent
}

.main-content {
  margin-left: var(--sidebar);
  min-height: 100vh;
  padding: 72px 28px 28px
}

.side-nav,
.side-games {
  display: grid;
  gap: 4px
}

.side-link,
.game-link {
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  color: #f1f1f1;
  font-size: 14px
}

.side-link span {
  width: 24px;
  text-align: center;
  font-size: 20px
}

.side-link strong,
.game-link strong {
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.side-link:hover,
.game-link:hover {
  background: #222
}

.side-link.active,
.game-link.active {
  background: #272727
}

.side-link.active span {
  color: #fff;
  background: var(--yt);
  border-radius: 8px;
  font-size: 14px;
  height: 24px;
  display: grid;
  place-items: center
}

.side-link[aria-disabled="true"] {
  opacity: .62;
  cursor: not-allowed
}

.side-line {
  height: 1px;
  background: var(--line);
  margin: 14px 0
}

.side-heading {
  margin: 0 8px 8px;
  font-size: 16px
}

.game-link {
  gap: 12px
}

.game-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #202020;
  display: grid;
  place-items: center;
  flex: 0 0 auto
}

.game-link.active .game-dot {
  background: #fff;
  color: #111
}

.shorts-index {
  height: 100vh;
  overflow: hidden
}

.shorts-index .main-content {
  height: 100vh;
  overflow: hidden;
  padding-top: 66px;
  padding-bottom: 0
}

.top-game-tabs {
  position: relative;
  z-index: 30;
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 8px 0 10px;
  margin: 0 0 2px;
  background: #0f0f0f;
  scrollbar-width: none
}

.top-game-tabs::-webkit-scrollbar {
  display: none
}

.filter-chip {
  height: 34px;
  border-radius: 9px;
  background: #272727;
  color: #f1f1f1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  border: 0
}

.filter-chip:hover {
  background: #333
}

.filter-chip.active {
  background: #fff;
  color: #0f0f0f
}

.filter-chip.active:hover {
  background: #fff
}

.shorts-feed {
  height: calc(100vh - var(--topbar) - 54px);
  display: grid;
  justify-items: center;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: none
}

.shorts-feed::-webkit-scrollbar {
  display: none
}

.short-card {
  width: min(560px, 100%);
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 450px) 78px;
  align-items: end;
  justify-content: center;
  gap: 16px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 10px 0 18px
}

.short-card.single {
  width: min(570px, 100%);
  height: min(780px, calc(100vh - 98px));
  min-height: 620px;
  padding: 0
}

.player-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .55)
}

.player-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18)
}

.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000
}

.video-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .88) 100%);
  pointer-events: none
}

.top-game-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: 12px;
  font-weight: 900
}

.preview-pill {
  position: absolute;
  z-index: 7;
  top: 52px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0f0f0f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  touch-action: manipulation
}

.short-caption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8)
}

.short-caption h1,
.short-caption h2 {
  margin: 12px 0 6px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -.02em
}

.short-caption p {
  margin: 0 0 10px;
  color: #eee;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.creator-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0
}

.creator-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #00d4ff;
  color: #001116;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto
}

.creator-line strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.subscribe-pill {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f0f0f;
  padding: 8px 13px;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap
}

.sound-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 0;
  color: #f1f1f1;
  font-size: 14px
}

.short-actions {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 12px;
  padding-bottom: 4px
}

.action {
  width: 72px;
  border: 0;
  background: transparent;
  color: #f1f1f1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-weight: 800;
  font-size: 12px
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #272727;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  transition: .15s
}

.action:hover .action-icon {
  background: #3a3a3a
}

.like-btn.active .action-icon {
  background: #fff;
  color: #111
}

.action span:last-child {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.thumb-mini {
  background-size: cover;
  background-position: center;
  border: 2px solid #3a3a3a
}

.shorts-scroll-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 18px
}

.shorts-scroll-nav button {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: #272727;
  color: #fff;
  font-size: 30px;
  line-height: 1
}

.shorts-scroll-nav button:hover {
  background: #3a3a3a
}

.empty-state {
  width: min(620px, 100%);
  margin: 90px auto;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  text-align: center
}

.empty-state p {
  color: var(--muted)
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.btn-primary {
  background: #fff;
  color: #0f0f0f
}

.btn-primary:hover {
  background: #e7e7e7
}

.btn-danger {
  background: rgba(255, 0, 51, .16);
  color: #ffd7df;
  border: 1px solid rgba(255, 0, 51, .38)
}

.btn-ghost {
  background: #222;
  color: #fff;
  border: 1px solid var(--line)
}

.btn-full {
  width: 100%
}

.form-card,
.table-card,
.comments-panel {
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .32)
}

.form-card {
  width: min(720px, 100%);
  margin: 20px auto
}

.form-card.small {
  width: min(460px, 100%)
}

.form-card h1 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 8px
}

.form-card p,
.comments-head span {
  color: var(--muted)
}

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

.stack-form.compact {
  grid-template-columns: 1fr 120px auto;
  align-items: end
}

.stack-form label {
  display: grid;
  gap: 7px;
  color: #f1f1f1;
  font-weight: 800
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #121212;
  color: #f1f1f1;
  border-radius: 12px;
  padding: 13px 14px;
  outline: 0
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.comment-form textarea:focus {
  border-color: var(--blue)
}

.stack-form textarea {
  min-height: 110px;
  resize: vertical
}

.alert {
  background: rgba(255, 0, 51, .12);
  border: 1px solid rgba(255, 0, 51, .35);
  color: #ffd8df;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 10px 0
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(360px, 570px) minmax(320px, 520px);
  gap: 28px;
  align-items: start;
  justify-content: center
}

.watch-page .short-card {
  height: min(780px, calc(100vh - 98px));
  min-height: 620px
}

.comments-panel {
  min-height: 520px
}

.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.comments-head h2 {
  margin: 0
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 16px
}

.comment-form textarea {
  min-height: 95px;
  resize: vertical
}

.comments-list {
  display: grid;
  gap: 12px;
  margin-top: 18px
}

.comment {
  padding: 14px;
  border-radius: 14px;
  background: #222;
  border: 1px solid var(--line)
}

.comment p {
  margin: 6px 0 0;
  color: #ddd
}

.comment strong {
  color: #fff
}

.library-page .main-content {
  padding-top: 86px
}

.playlist-sidebar {
  max-width: 1100px;
  margin: 0 auto 20px;
}

.playlist-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.playlist-item {
  background: #181818;
  border: 1px solid #303030;
  border-radius: 14px;
  padding: 12px 16px;
  color: #f1f1f1;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  transition: .15s;
}

.playlist-item:hover {
  background: #272727;
  border-color: #444;
}

.playlist-item.active {
  background: #fff;
  color: #0f0f0f;
  border-color: #fff;
}

.playlist-content {
  max-width: 1100px;
  margin: 0 auto;
}

.playlist-title {
  font-size: 24px;
  margin: 0 0 16px;
  font-weight: 900;
}

.library-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  max-width: 1100px;
  margin: 0 auto 22px
}

.library-hero.compact {
  display: block
}

.library-hero h1 {
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: -.04em
}

.library-hero p {
  margin: 0;
  color: var(--muted)
}

.channel-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d4ff, #4058ff, #ff0033);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  flex: 0 0 auto
}

.library-hero .btn {
  margin-left: auto
}

.video-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px
}

.video-card {
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: .15s;
  min-width: 0
}

.video-card:hover {
  background: #202020;
  transform: translateY(-1px)
}

.video-thumb {
  display: block;
  aspect-ratio: 16/9;
  background: #000 center/cover no-repeat;
  position: relative
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 38px;
  text-shadow: 0 8px 24px #000;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45))
}

.video-thumb span {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900
}

.video-card-body {
  padding: 13px
}

.video-card-body h2 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.video-card-body p {
  margin: 5px 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.35
}

.status-pill {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #2a2a2a;
  color: #ddd;
  font-size: 12px;
  font-weight: 800
}

.status-pill.approved {
  background: rgba(51, 180, 90, .18);
  color: #b6ffc8
}

.status-pill.pending {
  background: rgba(255, 204, 0, .15);
  color: #ffe992
}

.status-pill.rejected {
  background: rgba(255, 0, 51, .16);
  color: #ffd1d9
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start
}

.table-card {
  overflow: auto
}

.table-card table {
  width: 100%;
  border-collapse: collapse
}

.table-card th,
.table-card td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle
}

.footer {
  margin: 34px auto 0;
  text-align: center;
  color: #8d8d8d;
  padding: 18px 16px;
  font-size: 13px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.footer-links a {
  color: #aaa;
  font-weight: 800;
}

.footer-links a:hover {
  color: #fff;
}

.legal-card {
  width: min(900px, 100%);
  margin: 0 auto 42px;
  padding: 28px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
}

.legal-card h1 {
  margin: 4px 0 6px;
  font-size: 34px;
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.legal-card p {
  color: #d9d9d9;
  line-height: 1.55;
}

.legal-updated {
  margin-top: 0;
  color: #aaa !important;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon {
  width: 22px;
  height: 22px;
}

.footer-text {
  margin: 0;
  font-size: 12px;
}

.mobile-nav {
  display: none;
}

.mobile-nav-svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 620px) {
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background: #0f0f0f;
    border-top: 1px solid #303030;
    z-index: 40;
  }

  .footer-content {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #8d8d8d;
    transition: 0.15s;
    padding: 8px 16px;
    border-radius: 12px;
  }

  .mobile-nav-item:hover {
    color: #fff;
    background: #272727;
  }

  .mobile-nav-item.active {
    color: #fff;
    background: #272727;
  }

  .mobile-nav-guest {
    justify-content: center;
    padding-inline: 14px;
  }

  .mobile-login-link {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 112px;
    min-height: 44px;
    color: #fff;
    background: #272727;
    font-weight: 800;
  }

  .mobile-login-link:hover,
  .mobile-login-link.active {
    color: #fff;
    background: #333;
  }

  .mobile-login-link .nav-icon {
    display: flex;
  }

  .mobile-login-link .mobile-nav-svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-item .nav-icon {
    font-size: 24px;
  }

  .main-content {
    padding-bottom: 80px;
  }
}

.shorts-index .footer {
  display: none
}

@media (max-width:1180px) {
  :root {
    --sidebar: 82px
  }

  .topbar {
    grid-template-columns: 210px minmax(180px, 1fr) auto
  }

  .sidebar {
    width: var(--sidebar);
    padding-left: 6px;
    padding-right: 6px
  }

  .main-content {
    margin-left: var(--sidebar)
  }

  .side-heading,
  .side-link strong,
  .game-link strong {
    display: none
  }

  .side-link,
  .game-link {
    justify-content: center;
    padding: 0
  }

  .side-link {
    gap: 0
  }

  .side-link span {
    width: auto
  }

  .game-dot {
    margin: 0
  }

  .side-line {
    margin: 12px 4px
  }
}

@media (max-width:900px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
    gap: 10px
  }

  .brand-name,
  .brand small {
    display: none
  }

  .searchbar {
    max-width: none
  }

  .logout-btn,
  .bell {
    display: none
  }

  .sidebar {
    width: 240px;
    transform: translateX(-104%);
    transition: .18s ease
  }

  .sidebar .side-heading,
  .sidebar .side-link strong,
  .sidebar .game-link strong {
    display: block
  }

  .sidebar .side-link,
  .sidebar .game-link {
    justify-content: flex-start;
    padding: 0 12px
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 80px rgba(0, 0, 0, .55)
  }

  .main-content {
    margin-left: 0;
    padding-left: 14px;
    padding-right: 14px
  }

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

  .comments-panel {
    min-height: auto
  }

  .stack-form.compact {
    grid-template-columns: 1fr
  }

  .shorts-scroll-nav {
    display: none
  }

  .library-hero {
    margin-left: 0;
    margin-right: 0
  }

  .video-grid {
    max-width: none
  }
}

@media (max-width:620px) {
  .searchbar {
    display: none
  }

  .topbar {
    grid-template-columns: auto auto 1fr
  }

  .top-actions {
    justify-content: flex-end
  }

  .create-btn span {
    display: none
  }

  .create-btn {
    width: 40px;
    padding: 0
  }

  .shorts-index .main-content {
    padding-top: 60px
  }

  .top-game-tabs {
    padding: 6px 0 8px
  }

  .shorts-feed {
    height: calc(100vh - var(--topbar) - 46px)
  }

  .short-card {
    grid-template-columns: minmax(0, 1fr) 58px;
    width: 100%;
    gap: 8px;
    padding: 6px 0 8px
  }

  .player-wrap {
    border-radius: 10px
  }

  .short-actions {
    gap: 8px
  }

  .action {
    width: 56px;
    font-size: 10px
  }

  .action-icon {
    width: 46px;
    height: 46px;
    font-size: 19px
  }

  .short-caption {
    padding: 14px
  }

  .short-caption h1,
  .short-caption h2 {
    font-size: 17px
  }

  .subscribe-pill {
    padding: 7px 10px;
    font-size: 12px
  }

  .creator-avatar {
    width: 30px;
    height: 30px
  }

  .filter-chip {
    height: 34px;
    font-size: 13px
  }

  .form-card,
  .empty-state,
  .table-card,
  .comments-panel {
    padding: 18px
  }

  .form-card h1 {
    font-size: 28px
  }

  .library-page .main-content {
    padding-top: 72px
  }

  .library-hero {
    align-items: flex-start;
    display: grid
  }

  .library-hero .btn {
    margin-left: 0
  }

  .channel-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px
  }

  .library-hero h1 {
    font-size: 28px
  }
}

@media (max-width:420px) {
  .main-content {
    padding-left: 8px;
    padding-right: 8px
  }

  .short-card {
    grid-template-columns: minmax(0, 1fr) 50px
  }

  .action {
    width: 50px
  }

  .action-icon {
    width: 42px;
    height: 42px
  }

  .top-game-badge {
    top: 10px;
    left: 10px;
    font-size: 11px
  }

  .sound-pill {
    display: none
  }

  .brand-mark {
    width: 32px;
    height: 32px
  }

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

/* Ajuste Shorts: um vídeo por vez, sem lista empilhada e sem categorias no topo */
.shorts-index .top-game-tabs {
  display: none !important
}

.shorts-index .main-content {
  height: 100dvh !important;
  overflow: hidden !important;
  padding: var(--topbar) 28px 0 !important;
  display: grid !important;
  place-items: center !important;
}

.shorts-index .shorts-feed {
  width: 100% !important;
  height: calc(100dvh - var(--topbar)) !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  gap: 0 !important;
  scroll-snap-type: none !important;
}

.shorts-index .short-card {
  display: none !important;
  width: min(620px, 100%) !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: auto 78px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 16px 0 !important;
  scroll-snap-align: none !important;
}

.shorts-index .short-card.is-active {
  display: grid !important
}

.shorts-index .player-wrap {
  width: min(420px, 48dvh, calc(100vw - var(--sidebar) - 185px)) !important;
  height: auto !important;
  aspect-ratio: 9/16 !important;
  max-height: calc(100dvh - var(--topbar) - 32px) !important;
  border-radius: 15px !important;
}

.shorts-index .player-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  display: block !important
}

.shorts-index .short-actions {
  align-content: center !important;
  padding-bottom: 0 !important
}

.shorts-index .empty-state {
  margin: 0 auto !important
}

@media (max-width:900px) {
  .shorts-index .main-content {
    padding: var(--topbar) 14px 0 !important
  }

  .shorts-index .player-wrap {
    width: min(420px, 50dvh, calc(100vw - 110px)) !important
  }
}

@media (max-width:620px) {
  .shorts-index .main-content {
    padding: var(--topbar) 6px 0 !important
  }

  .shorts-index .short-card {
    grid-template-columns: minmax(0, 1fr) 56px !important;
    gap: 6px !important;
    padding: 8px 0 !important
  }

  .shorts-index .player-wrap {
    width: min(calc(100vw - 70px), 44dvh) !important;
    border-radius: 12px !important
  }

  .shorts-index .short-actions {
    gap: 9px !important
  }
}

@media (max-width:420px) {
  .shorts-index .short-card {
    grid-template-columns: minmax(0, 1fr) 48px !important
  }

  .shorts-index .player-wrap {
    width: calc(100vw - 62px) !important
  }
}

/* Mobile Shorts fullscreen: player ocupa a tela e ações ficam fixas na direita */
@media (max-width:620px) {
  :root {
    --topbar: 56px
  }

  body.shorts-index {
    background: #0f0f0f;
    overscroll-behavior: none
  }

  .shorts-index .topbar {
    height: var(--topbar) !important;
    grid-template-columns: 42px 44px 1fr !important;
    gap: 8px !important;
    padding: 0 10px !important;
    background: #0f0f0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  }

  .shorts-index .hamburger {
    width: 40px;
    height: 40px
  }

  .shorts-index .brand {
    gap: 0 !important
  }

  .shorts-index .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    font-size: 16px !important
  }

  .shorts-index .top-actions {
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 0
  }

  .shorts-index .create-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background: #202020 !important;
    font-size: 20px !important
  }

  .shorts-index .create-btn:hover {
    background: #2c2c2c !important
  }

  .shorts-index .user-avatar {
    width: 36px !important;
    height: 36px !important
  }

  .shorts-index .main-content {
    margin-left: 0 !important;
    width: 100dvw !important;
    height: 100dvh !important;
    padding: var(--topbar) 0 0 !important;
    overflow: hidden !important;
    display: block !important;
  }

  .shorts-index .shorts-feed {
    width: 100dvw !important;
    height: calc(100dvh - var(--topbar)) !important;
    display: block !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .shorts-index .short-card {
    position: relative !important;
    display: none !important;
    width: 100dvw !important;
    height: calc(100dvh - var(--topbar)) !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .shorts-index .short-card.is-active {
    display: block !important
  }

  .shorts-index .player-wrap {
    width: 100dvw !important;
    height: calc(100dvh - var(--topbar)) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .shorts-index .player-wrap::after {
    box-shadow: none !important;
    border-radius: 0 !important
  }

  .shorts-index .player-wrap iframe {
    width: 100% !important;
    height: 100% !important
  }

  .shorts-index .video-gradient {
    height: 48% !important
  }

  .shorts-index .top-game-badge {
    top: 12px !important;
    left: 12px !important;
    max-width: calc(100dvw - 82px) !important;
    font-size: 11px !important;
    padding: 6px 9px !important;
  }

  .shorts-index .short-caption {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 12px 68px calc(18px + env(safe-area-inset-bottom, 0px)) 12px !important;
  }

  .shorts-index .creator-line {
    gap: 7px !important;
    min-width: 0 !important
  }

  .shorts-index .creator-line strong {
    font-size: 14px !important;
    max-width: 116px !important
  }

  .shorts-index .creator-avatar {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important
  }

  .shorts-index .subscribe-pill {
    padding: 7px 10px !important;
    font-size: 12px !important;
    max-width: 116px !important;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .shorts-index .short-caption h2 {
    font-size: 18px !important;
    line-height: 1.15 !important;
    margin: 9px 0 4px !important
  }

  .shorts-index .short-caption p {
    font-size: 13px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 5px !important
  }

  .shorts-index .sound-pill {
    display: flex !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    max-width: calc(100dvw - 84px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
  }

  .shorts-index .short-actions {
    position: fixed !important;
    z-index: 80 !important;
    right: 8px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    width: 48px !important;
    align-content: end !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  .shorts-index .action {
    width: 48px !important;
    gap: 4px !important;
    font-size: 10px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .9)
  }

  .shorts-index .action-icon {
    width: 46px !important;
    height: 46px !important;
    font-size: 19px !important;
    background: rgba(33, 33, 33, .92) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35) !important;
    backdrop-filter: blur(8px) !important;
  }

  .shorts-index .like-btn.active .action-icon {
    background: #fff !important;
    color: #111 !important
  }

  .shorts-index .action span:last-child {
    max-width: 48px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #fff !important
  }

  .shorts-index .share-btn span:last-child {
    font-size: 0 !important
  }

  .shorts-index .share-btn span:last-child::after {
    content: 'Compart.';
    font-size: 10px !important
  }

  .shorts-index .thumb-mini {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important
  }

  .shorts-index .sidebar {
    top: var(--topbar) !important;
    height: calc(100dvh - var(--topbar)) !important;
    z-index: 100 !important
  }
}

@media (max-width:380px) {
  .shorts-index .short-actions {
    right: 6px !important;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px !important
  }

  .shorts-index .action-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important
  }

  .shorts-index .action {
    width: 44px !important
  }

  .shorts-index .short-caption {
    padding-right: 60px !important
  }

  .shorts-index .subscribe-pill {
    max-width: 98px !important
  }
}

/* Comentários em modal/bottom sheet + sensação de app nativo */
html.native-feel {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent
}

body.shorts-index,
body.comments-open,
body.notification-open {
  overscroll-behavior: none
}

body.comments-open,
body.notification-open {
  overflow: hidden !important
}

.shorts-index .short-card {
  transition: transform .16s ease, opacity .16s ease
}

.shorts-index .short-card.is-dragging {
  transition: none !important;
  will-change: transform, opacity
}

.shorts-index .short-card.is-leaving-up {
  transform: translate3d(0, -42px, 0) scale(.985);
  opacity: .72
}

.shorts-index .short-card.is-leaving-down {
  transform: translate3d(0, 42px, 0) scale(.985);
  opacity: .72
}

.comment-btn {
  appearance: none
}

.notification-modal,
.playlist-modal,
.comments-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px 40px;
  color: var(--text);
}

.notification-modal[aria-hidden="false"],
.playlist-modal[aria-hidden="false"],
.comments-modal[aria-hidden="false"] {
  display: flex;
}

.notification-backdrop,
.playlist-backdrop,
.comments-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .64);
  backdrop-filter: blur(7px);
}

.notification-sheet,
.playlist-sheet,
.comments-sheet {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 44px));
  max-height: min(720px, calc(100dvh - 44px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
  overflow: hidden;
}

.notification-sheet {
  grid-template-rows: auto minmax(160px, 1fr) auto
}

.notification-list {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent
}

.notification-footer {
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: flex-end
}

.notification-footer a {
  color: #3ea6ff;
  font-weight: 800;
  font-size: 14px
}

.playlist-choice-list {
  min-height: 0;
  overflow: auto;
  padding: 18px 24px 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.playlist-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #202020;
  border: 1px solid #303030;
  border-radius: 14px;
  cursor: pointer;
  transition: .15s;
}

.playlist-choice:hover {
  background: #272727;
  border-color: #444;
}

.playlist-choice.active {
  border-color: #3ea6ff;
  background: rgba(62, 166, 255, .15);
}

.playlist-choice span {
  font-weight: 800;
}

.playlist-choice small {
  color: #aaa;
  font-size: 12px;
}

.playlist-create-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #181818;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.playlist-create-form input {
  height: 42px;
  border: 1px solid #303030;
  background: #121212;
  color: #fff;
  border-radius: 18px;
  padding: 0 14px;
  outline: 0;
}

.playlist-create-form input:focus {
  border-color: #3ea6ff;
}

.playlist-create-form button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f0f0f;
  font-weight: 900;
  padding: 0 15px;
}

.comments-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--text)
}

.comments-modal[aria-hidden="false"] {
  display: flex
}

.comments-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .64);
  backdrop-filter: blur(7px)
}

.comments-sheet {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 46px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
  overflow: hidden
}

.comments-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.comments-sheet-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.02em
}

.comments-sheet-head p {
  margin: 3px 0 0;
  color: #aaa;
  font-size: 13px;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.comments-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #272727;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center
}

.comments-close:hover {
  background: #3a3a3a
}

.comments-sheet-list {
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent
}

.sheet-comment {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start
}

.sheet-comment strong {
  font-size: 13px;
  color: #fff
}

.sheet-comment p {
  margin: 4px 0 0;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word
}

.creator-avatar.small {
  width: 32px;
  height: 32px;
  font-size: 13px;
  flex: 0 0 32px
}

.comment-loading,
.comment-empty {
  padding: 24px 10px;
  color: #aaa;
  text-align: center;
  font-size: 14px
}

.comments-sheet-form {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #181818;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

.comments-sheet-form textarea {
  min-height: 42px;
  max-height: 120px;
  resize: none;
  border: 1px solid #303030;
  background: #121212;
  color: #fff;
  border-radius: 18px;
  padding: 11px 13px;
  outline: 0;
  line-height: 1.3
}

.comments-sheet-form textarea:focus {
  border-color: #555
}

.comments-sheet-form button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f0f0f;
  font-weight: 900;
  padding: 0 15px
}

.comments-sheet-form button:disabled {
  opacity: .55;
  cursor: wait
}

.comments-login-box {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

@media (max-width:620px) {

  .notification-modal,
  .playlist-modal,
  .comments-modal {
    align-items: end;
    justify-content: stretch;
    padding: 0;
    touch-action: none;
  }

  .notification-sheet,
  .playlist-sheet,
  .comments-sheet {
    width: 100dvw;
    max-height: 72dvh;
    border-radius: 10px;
    margin: 5px;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, .75);
    animation: sheetUp .18s ease-out;
  }

  .notification-sheet::before,
  .playlist-sheet::before,
  .comments-sheet::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: #4a4a4a;
  }

  .notification-backdrop,
  .comments-backdrop {
    background: rgba(0, 0, 0, .48);
  }
}

.comments-sheet-head {
  padding: 22px 14px 12px
}

.comments-sheet-head h2 {
  font-size: 18px
}

.comments-sheet-head p {
  max-width: 250px
}

.comments-close {
  width: 36px;
  height: 36px;
  font-size: 24px
}

.comments-sheet-list {
  padding: 12px 14px 16px
}

.sheet-comment {
  grid-template-columns: 32px 1fr
}

.sheet-comment p {
  font-size: 14px
}

.comments-sheet-form {
  grid-template-columns: 30px 1fr auto;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 8px
}

.comments-sheet-form button {
  padding: 0 12px
}

.comments-sheet-form textarea {
  border-radius: 16px
}

.shorts-index .short-card {
  touch-action: none
}

.shorts-index .player-wrap {
  background: #000
}

.shorts-index .short-caption {
  pointer-events: none
}

.shorts-index .short-caption .subscribe-pill {
  pointer-events: auto
}

.shorts-index .short-actions {
  pointer-events: auto
}

@keyframes sheetUp {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

.video-gesture-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  color: transparent;
  padding: 0;
  margin: 0;
  touch-action: none;
  cursor: pointer
}

.video-gesture-layer:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px
}

.top-game-badge,
.short-caption {
  z-index: 5
}

@media (min-width:621px) {
  .video-gesture-layer {
    display: none
  }
}


/* Patch vNative: header mobile alinhado, sidebar legível, admin completo */
@media (max-width:620px) {
  .shorts-index .topbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  .shorts-index .topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .shorts-index .brand {
    display: inline-flex !important;
    flex: 0 0 auto !important
  }

  .shorts-index .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important
  }

  .shorts-index .searchbar {
    display: none !important
  }

  .shorts-index .top-actions {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    position: static !important;
  }

  .shorts-index .create-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    padding: 0 !important
  }

  .shorts-index .user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important
  }

  .shorts-index .login-btn {
    height: 36px !important;
    padding: 0 12px !important
  }
}

@media (max-width:360px) {
  .shorts-index .brand {
    display: none !important
  }

  .shorts-index .topbar-left {
    flex-basis: 46px !important;
    flex-grow: 1 !important
  }
}

@media (max-width:900px) {
  .sidebar {
    width: 280px !important;
    padding: 12px 10px !important
  }

  .sidebar .side-nav,
  .sidebar .side-games {
    gap: 6px !important
  }

  .sidebar .side-link,
  .sidebar .game-link {
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
  }

  .sidebar .side-link span {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
  }

  .sidebar .side-link.active span {
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    font-size: 17px !important;
  }

  .sidebar .side-link strong,
  .sidebar .game-link strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1 !important;
    min-width: 0 !important;
  }

  .sidebar .game-dot {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 16px !important;
    margin: 0 !important;
  }

  .sidebar .side-heading {
    display: block !important;
    margin: 12px 8px 8px !important;
    font-size: 16px !important
  }

  .sidebar .side-line {
    margin: 14px 4px !important
  }
}

.admin-pro {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 8px 0 28px
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(62, 166, 255, .18), transparent 38%), linear-gradient(135deg, #181818, #111);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35)
}

.admin-hero h1 {
  font-size: 38px;
  line-height: 1;
  margin: 5px 0 8px;
  letter-spacing: -.04em
}

.admin-hero p {
  margin: 0;
  color: #aaa
}

.eyebrow {
  color: #3ea6ff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em
}

.admin-alert {
  border-radius: 14px;
  padding: 13px 15px;
  margin: 0 0 16px;
  font-weight: 800
}

.admin-alert.success {
  background: rgba(47, 180, 92, .14);
  border: 1px solid rgba(47, 180, 92, .35);
  color: #baffca
}

.admin-alert.error {
  background: rgba(255, 0, 51, .14);
  border: 1px solid rgba(255, 0, 51, .35);
  color: #ffd7df
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px
}

.admin-stats article {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 18px
}

.admin-stats strong {
  display: block;
  font-size: 28px;
  letter-spacing: -.03em
}

.admin-stats span {
  color: #aaa;
  font-weight: 800
}

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

.admin-panel {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25)
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px
}

.panel-head h2 {
  margin: 0 0 5px;
  font-size: 22px;
  letter-spacing: -.03em
}

.panel-head p {
  margin: 0;
  color: #aaa;
  font-size: 14px
}

.game-create-form {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px
}

.game-create-form label {
  display: grid;
  gap: 7px;
  color: #ddd;
  font-weight: 900;
  font-size: 12px
}

.game-create-form input,
.admin-video-actions select {
  height: 42px;
  border: 1px solid #303030;
  background: #121212;
  color: #f1f1f1;
  border-radius: 12px;
  padding: 0 12px;
  outline: 0
}

.admin-game-list {
  display: grid;
  gap: 8px;
  max-height: 640px;
  overflow: auto;
  padding-right: 2px
}

.admin-game-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .06)
}

.game-dot.big {
  width: 38px;
  height: 38px;
  font-size: 18px
}

.admin-game-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.admin-game-item small {
  display: block;
  color: #aaa;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.icon-danger {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 0, 51, .14);
  color: #ffd7df;
  font-size: 22px;
  font-weight: 900
}

.icon-danger:disabled {
  opacity: .35;
  cursor: not-allowed
}

.admin-video-list {
  display: grid;
  gap: 10px
}

.admin-empty {
  padding: 28px;
  text-align: center;
  color: #aaa
}

.admin-video-row {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: #202020;
  border-radius: 16px
}

.admin-thumb {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #000 center/cover no-repeat;
  position: relative;
  overflow: hidden
}

.admin-thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .38));
  font-size: 25px
}

.admin-thumb span {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  background: rgba(0, 0, 0, .72);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900
}

.admin-video-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px
}

.admin-video-info>strong {
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.admin-video-info>small {
  color: #aaa;
  line-height: 1.35
}

.admin-video-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.inline-form {
  display: inline
}

.btn.tiny {
  height: 38px;
  padding: 0 12px;
  font-size: 12px
}

.admin-video-actions select {
  height: 38px;
  min-width: 124px
}

.admin-video-actions form {
  margin: 0
}

@media (max-width:1180px) {
  .admin-grid {
    grid-template-columns: 1fr
  }

  .admin-game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none
  }

  .videos-panel {
    min-width: 0
  }
}

@media (max-width:760px) {
  .admin-pro {
    padding-top: 0
  }

  .admin-hero {
    display: grid;
    padding: 20px
  }

  .admin-hero h1 {
    font-size: 30px
  }

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

  .game-create-form {
    grid-template-columns: 1fr
  }

  .admin-game-list {
    grid-template-columns: 1fr
  }

  .admin-video-row {
    grid-template-columns: 112px minmax(0, 1fr)
  }

  .admin-video-info>strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
  }

  .admin-video-actions {
    gap: 6px
  }

  .admin-video-actions select {
    width: 100%
  }
}

@media (max-width:460px) {
  .admin-video-row {
    grid-template-columns: 1fr
  }

  .admin-thumb {
    max-width: 220px
  }

  .admin-stats article {
    padding: 14px
  }

  .admin-stats strong {
    font-size: 24px
  }
}

/* Patch v6: layout padronizado, ícones por URL, ações mobile ajustadas */
.game-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
  line-height: 1;
  flex: 0 0 auto
}

.game-icon.emoji-icon {
  font-size: 16px;
  background: transparent
}

.game-dot .game-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px
}

.game-dot.big .game-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px
}

.top-game-badge .game-icon,
.video-thumb .game-icon,
.admin-thumb .game-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 3px
}

.side-link .nav-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  flex: 0 0 28px
}

.side-link.active .nav-icon {
  background: var(--yt);
  color: #fff
}

.side-link strong,
.game-link strong {
  min-width: 0
}

.youtube-icon {
  color: #ff0000;
  background: #272727 !important
}

.youtube-icon .youtube-svg {
  width: 28px;
  height: 20px;
  display: block
}

.sound-pill {
  display: none !important
}

.action span:last-child {
  max-width: 82px
}

.share-btn span:last-child {
  font-size: 12px !important
}

.share-btn span:last-child::after {
  content: none !important
}

@media (max-width:620px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 10px !important;
    height: var(--topbar) !important;
    background: #0f0f0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important
  }

  .topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important
  }

  .hamburger {
    flex: 0 0 40px !important
  }

  .brand {
    flex: 0 0 auto !important;
    gap: 0 !important
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    font-size: 16px !important
  }

  .brand-name,
  .brand small {
    display: none !important
  }

  .searchbar {
    display: none !important
  }

  .top-actions {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    position: static !important;
    min-width: 0 !important
  }

  .create-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    background: #202020 !important;
    font-size: 19px !important
  }

  .create-btn span {
    display: none !important
  }

  .user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important
  }

  .login-btn {
    height: 36px !important;
    padding: 0 12px !important
  }
}

@media (max-width:900px) {
  .sidebar {
    width: 280px !important;
    padding: 12px 10px !important
  }

  .sidebar .side-nav,
  .sidebar .side-games {
    gap: 6px !important
  }

  .sidebar .side-link,
  .sidebar .game-link {
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 0 12px !important;
    border-radius: 12px !important
  }

  .sidebar .side-link .nav-icon,
  .sidebar .side-link span {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    font-size: 17px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    flex: 0 0 32px !important
  }

  .sidebar .side-link.active .nav-icon,
  .sidebar .side-link.active span {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    background: var(--yt) !important;
    color: #fff !important;
    font-size: 16px !important
  }

  .sidebar .side-link strong,
  .sidebar .game-link strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important
  }

  .sidebar .game-dot {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 16px !important;
    margin: 0 !important;
    flex: 0 0 32px !important
  }
}

@media (max-width:620px) {
  .shorts-index .short-actions {
    right: 7px !important;
    width: 54px !important;
    gap: 9px !important
  }

  .shorts-index .action {
    width: 54px !important;
    font-size: 10px !important
  }

  .shorts-index .action-icon {
    width: 46px !important;
    height: 46px !important
  }

  .shorts-index .action span:last-child {
    max-width: 54px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    overflow: visible !important;
    text-overflow: clip !important
  }

  .shorts-index .share-btn span:last-child {
    font-size: 10px !important
  }

  .shorts-index .share-btn span:last-child::after {
    content: none !important
  }

  .shorts-index .short-caption {
    padding-right: 72px !important
  }
}

.game-create-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important
}

.game-create-form input {
  width: 100%
}

@media (max-width:760px) {
  .game-create-form {
    grid-template-columns: 1fr !important
  }
}

.shorts-index .sound-pill,
.watch-page .sound-pill {
  display: none !important
}


/* Patch v7: desktop Shorts mais alto e setas próximas ao player */
:root {
  --footer-h: 0px;
}

body.shorts-index {
  overflow: hidden !important;
}

.shorts-index .footer {
  display: none !important;
}

.shorts-index .main-content {
  height: 100dvh !important;
  min-height: 100dvh !important;
  padding: var(--topbar) 24px var(--footer-h) !important;
  overflow: hidden !important;
}

.shorts-index .shorts-feed {
  height: calc(100dvh - var(--topbar) - var(--footer-h)) !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-items: center !important;
}

.shorts-index .short-card {
  width: min(760px, calc(100vw - var(--sidebar) - 36px)) !important;
  height: calc(100dvh - var(--topbar) - var(--footer-h)) !important;
  grid-template-columns: auto 74px 58px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 12px 0 !important;
}

.shorts-index .player-wrap {
  width: min(460px, 56.25dvh, calc(100vw - var(--sidebar) - 210px)) !important;
  max-width: 600px !important;
  height: auto !important;
  aspect-ratio: 9/16 !important;
  max-height: calc(100dvh - var(--topbar) - var(--footer-h) - 24px) !important;
  border-radius: 0px !important;
}

.short-local-nav {
  display: grid;
  gap: 14px;
  align-self: center;
  justify-self: start;
}

.short-local-nav button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #272727;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.short-local-nav button:hover {
  background: #3a3a3a
}

.shorts-index>.shorts-scroll-nav,
.shorts-scroll-nav {
  display: none !important
}

@media (min-height:920px) and (min-width:901px) {
  .shorts-index .player-wrap {
    width: min(540px, 56.25dvh, calc(100vw - var(--sidebar) - 220px)) !important;
    max-width: 540px !important
  }
}

@media (max-width:1180px) and (min-width:901px) {
  .shorts-index .short-card {
    width: min(720px, calc(100vw - var(--sidebar) - 26px)) !important;
    grid-template-columns: auto 68px 52px !important;
    gap: 12px !important
  }

  .shorts-index .player-wrap {
    width: min(480px, 56.25dvh, calc(100vw - var(--sidebar) - 170px)) !important
  }

  .short-local-nav button {
    width: 48px;
    height: 48px;
    font-size: 26px
  }
}

@media (max-width:900px) {
  .shorts-index .short-card {
    width: 100% !important;
    grid-template-columns: auto 62px !important
  }

  .short-local-nav {
    display: none !important
  }
}

@media (max-width:620px) {
  .shorts-index .main-content {
    padding: var(--topbar) 0 0 !important
  }

  .shorts-index .short-card {
    display: none !important;
    width: 100dvw !important;
    height: calc(100dvh - var(--topbar)) !important;
    grid-template-columns: none !important;
    padding: 0 !important
  }

  .shorts-index .short-card.is-active {
    display: block !important
  }

  .shorts-index .player-wrap {
    width: 100dvw !important;
    height: calc(100dvh - var(--topbar)) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important
  }
}

/* Patch v8: ícones SVG profissionais para sidebar, topbar e ações */
.nav-svg,
.top-svg,
.action-svg,
.local-nav-svg {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.top-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.35
}

.searchbar button {
  display: grid;
  place-items: center
}

.searchbar button .top-svg {
  width: 21px;
  height: 21px;
  color: #fff
}

.create-btn {
  gap: 7px
}

.create-btn .top-svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.6
}

.bell .top-svg {
  width: 20px;
  height: 20px;
  color: #fff
}

.side-link .nav-icon {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #d6d6d6 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease, border-color .14s ease !important;
}

.side-link .nav-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25
}

.side-link:hover .nav-icon {
  background: #242424 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .06) !important;
}

.side-link.active .nav-icon {
  background: var(--yt) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 7px 18px rgba(255, 0, 51, .25) !important;
}

.side-link.active .nav-svg {
  stroke-width: 2.55
}

.side-link[aria-disabled="true"] .nav-icon {
  color: #777 !important;
  background: transparent !important;
  box-shadow: none !important
}

.side-link[aria-disabled="true"] strong {
  color: #9a9a9a !important
}

.side-link:hover .nav-icon,
.game-link:hover .game-dot {
  transform: translateY(-1px)
}

.side-heading {
  color: #fff;
  letter-spacing: .01em
}

.action-icon {
  display: grid !important;
  place-items: center !important;
}

.action-svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.25
}

.like-btn.active .action-svg {
  stroke-width: 2.55
}

.share-btn .action-svg {
  transform: translate(1px, -1px)
}

.library-toggle-btn.active .action-icon {
  background: #fff;
  color: #111;
}

.library-toggle-btn.active .action-svg {
  stroke-width: 2.55;
}

@media (max-width:620px) {
  .shorts-index .library-toggle-btn.active .action-icon {
    background: #fff !important;
    color: #111 !important;
  }
}

.local-nav-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.6
}

.short-local-nav button {
  display: grid !important;
  place-items: center !important
}

@media (max-width:1180px) {
  .side-link .nav-icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important
  }

  .side-link .nav-svg {
    width: 19px;
    height: 19px
  }
}

@media (max-width:900px) {

  .sidebar .side-link .nav-icon,
  .sidebar .side-link span.nav-icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    background: #171717 !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
  }

  .sidebar .side-link:hover .nav-icon {
    background: #242424 !important;
    color: #fff !important
  }

  .sidebar .side-link.active .nav-icon {
    background: var(--yt) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(255, 0, 51, .25) !important;
    border-color: transparent !important
  }

  .sidebar .side-link .nav-svg {
    width: 18.5px;
    height: 18.5px
  }
}

@media (max-width:620px) {
  .create-btn .top-svg {
    width: 20px;
    height: 20px
  }

  .shorts-index .action-svg {
    width: 21px !important;
    height: 21px !important
  }
}

/* Patch v9: logo oficial, navegador mais alinhado, busca central e telas de login centralizadas */
.topbar {
  grid-template-columns: minmax(230px, 1fr) minmax(320px, 640px) minmax(230px, 1fr) !important;
  gap: 20px !important;
}

.logo-brand {
  height: 42px;
  min-width: 0;
  gap: 8px !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 220px;
  object-fit: contain;
  border-radius: 0;
}

.logo-brand small {
  font-size: 10px;
  color: #cfcfcf;
  align-self: center;
  margin-top: 0;
  letter-spacing: .04em;
}

.searchbar {
  max-width: 640px;
  justify-self: center !important;
}

.topbar-left {
  min-width: 0;
}

.top-actions {
  min-width: 0;
}

.sidebar {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .03);
}

.side-nav,
.side-games {
  gap: 6px;
}

.side-link,
.game-link {
  height: 44px;
  border-radius: 12px;
  gap: 14px;
  padding: 0 14px;
}

.side-link strong,
.game-link strong {
  font-size: 14px;
  line-height: 1.1;
}

.side-link.active,
.game-link.active {
  background: #282828 !important;
}

.side-link.active strong,
.game-link.active strong {
  color: #fff !important;
}

.side-heading {
  margin: 0 8px 10px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.side-line {
  margin: 16px 0 !important;
  background: rgba(255, 255, 255, .12) !important;
}

.game-dot {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  background: #202020 !important;
  border: 1px solid rgba(255, 255, 255, .05) !important;
}

.game-link.active .game-dot {
  background: #fff !important;
  color: #111 !important;
}

.page-auth .main-content {
  min-height: 100dvh !important;
  padding: var(--topbar) 24px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.page-auth .form-card.small {
  width: min(480px, 100%) !important;
  margin: 0 auto !important;
  padding: 28px !important;
  border-radius: 22px !important;
  background: #181818 !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45) !important;
}

.page-auth .form-card h1 {
  font-size: 34px !important;
  letter-spacing: -.04em;
  margin-bottom: 18px !important;
}

.page-auth .stack-form {
  gap: 16px !important;
}

.page-auth .stack-form input {
  height: 50px !important;
  border-radius: 14px !important;
  background: #101010 !important;
}

.page-auth .btn.btn-primary {
  height: 50px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

.page-auth .footer {
  margin: 28px auto 0 !important;
  padding: 0 16px !important;
}

@media (max-width:1180px) {
  .topbar {
    grid-template-columns: minmax(190px, 1fr) minmax(260px, 560px) minmax(190px, 1fr) !important;
    gap: 14px !important
  }

  .brand-logo {
    height: 32px;
    max-width: 190px
  }
}

@media (max-width:900px) {
  .topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: 0 12px !important
  }

  .brand-logo {
    height: 32px;
    max-width: 180px
  }

  .searchbar {
    max-width: none;
    justify-self: stretch !important
  }

  .page-auth .main-content {
    margin-left: 0 !important;
    padding: calc(var(--topbar) + 18px) 16px 24px !important
  }
}

@media (max-width:620px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important
  }

  .topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important
  }

  .logo-brand {
    max-width: 170px;
    overflow: hidden
  }

  .brand-logo {
    height: 30px;
    max-width: 150px
  }

  .searchbar {
    display: none !important
  }

  .page-auth .form-card.small {
    padding: 22px !important;
    border-radius: 18px !important
  }
}

@media (max-width:420px) {
  .logo-brand {
    max-width: 112px
  }

  .brand-logo {
    height: 30px;
    max-width: 100px;
    object-position: left center
  }

  .logo-brand small {
    display: none !important
  }
}

/* no Shorts mobile, mostrar só o ícone do logo para sobrar espaço nas ações */
@media (max-width:620px) {
  .shorts-index .logo-brand {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    overflow: hidden !important;
    display: block !important;
    flex: 0 0 40px !important
  }

  .shorts-index .brand-logo {
    height: 40px !important;
    width: 192px !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: left center !important;
    border-radius: 12px !important
  }

  .shorts-index .logo-brand small {
    display: none !important
  }
}


/* Patch v10: empty state centralizado + navegador mobile padronizado em todas as telas */
.shorts-index.no-videos .main-content {
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding: var(--topbar) 14px 0 !important;
  margin-left: var(--sidebar) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.shorts-index.no-videos .shorts-feed,
.shorts-index.no-videos .shorts-scroll-nav {
  display: none !important;
}

.shorts-index.no-videos .empty-state {
  width: min(430px, calc(100vw - var(--sidebar) - 42px)) !important;
  margin: 0 auto !important;
  padding: 34px 26px !important;
  border-radius: 20px !important;
  background: #181818 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42) !important;
}

.shorts-index.no-videos .empty-state h2 {
  margin: 0 0 14px !important;
  font-size: 28px !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

.shorts-index.no-videos .empty-state p {
  max-width: 340px !important;
  margin: 0 auto 22px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.shorts-index.no-videos .empty-state .btn {
  min-width: 170px !important;
  justify-content: center !important;
}

@media (max-width:900px) {
  .shorts-index.no-videos .main-content {
    margin-left: 0 !important;
    padding: var(--topbar) 12px 0 !important;
  }

  .shorts-index.no-videos .empty-state {
    width: min(430px, calc(100vw - 24px)) !important;
  }
}

@media (max-width:620px) {

  /* Mesmo header compacto do index em login, cadastro, admin, canal e demais páginas */
  .topbar {
    height: var(--topbar) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 10px !important;
    background: #0f0f0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  }

  .topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .hamburger {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
  }

  .logo-brand {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    overflow: hidden !important;
    display: block !important;
    flex: 0 0 40px !important;
  }

  .brand-logo {
    height: 40px !important;
    width: 192px !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: left center !important;
    border-radius: 12px !important;
    display: block !important;
  }

  .logo-brand small {
    display: none !important;
  }

  .searchbar {
    display: none !important;
  }

  .top-actions {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    position: static !important;
  }

  .create-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #202020 !important;
  }

  .create-btn span {
    display: none !important;
  }

  .create-btn .top-svg {
    width: 20px !important;
    height: 20px !important;
  }

  .login-btn {
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .logout-btn {
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
  }

  .bell {
    display: none !important;
  }

  .sidebar {
    top: var(--topbar) !important;
    height: calc(100dvh - var(--topbar)) !important;
    z-index: 120 !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding-top: calc(var(--topbar) + 18px) !important;
  }

  .shorts-index.no-videos .main-content {
    width: 100dvw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: var(--topbar) 12px 0 !important;
    background: #000 !important;
  }

  .shorts-index.no-videos .empty-state {
    width: min(360px, calc(100dvw - 24px)) !important;
    padding: 34px 24px !important;
    border-radius: 22px !important;
  }

  .shorts-index.no-videos .empty-state h2 {
    font-size: 25px !important;
  }

  .shorts-index.no-videos .empty-state p {
    font-size: 16px !important;
  }
}

@media (max-width:360px) {
  .login-btn {
    padding: 0 11px !important;
    font-size: 15px !important
  }

  .top-actions {
    gap: 6px !important
  }
}

/* Patch v11: menu do usuário, jogos mais fortes e canal com mais acabamento */
.user-menu {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 230;
}

.user-menu-toggle {
  border: 0;
  padding: 0;
  appearance: none;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(286px, calc(100vw - 22px));
  padding: 10px;
  border-radius: 16px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .56);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 240;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  min-width: 0;
}

.user-dropdown-head div {
  min-width: 0
}

.user-dropdown-head strong,
.user-dropdown-head small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-dropdown-head small {
  margin-top: 3px;
  color: #aaa;
  font-size: 12px;
}

.menu-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
}

.user-dropdown a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 11px;
  padding: 0 10px;
  color: #f1f1f1;
  font-weight: 800;
  font-size: 14px;
}

.user-dropdown a:hover {
  background: #272727;
}

.user-dropdown a.danger {
  color: #ffd7df;
}

.menu-svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke-width: 2.35;
}

.side-games {
  gap: 7px !important;
}

.game-link {
  min-height: 48px !important;
}

.game-dot {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  flex-basis: 36px !important;
  overflow: hidden !important;
  background: #252525 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04) !important;
}

.game-dot .game-icon {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
}

.game-dot .game-icon.emoji-icon {
  font-size: 19px !important;
  background: radial-gradient(circle at 32% 24%, #383838, #161616) !important;
}

.game-link.active .game-dot {
  background: #182236 !important;
  color: #fff !important;
  border-color: rgba(62, 166, 255, .55) !important;
  box-shadow: 0 0 0 3px rgba(62, 166, 255, .12), 0 8px 20px rgba(0, 0, 0, .32) !important;
}

.game-link.active strong {
  color: #fff !important;
}

.top-game-badge .game-icon,
.video-thumb .game-icon {
  width: 18px !important;
  height: 18px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
}

.video-thumb {
  background-size: cover !important;
  background-position: center !important;
}

.library-page .main-content {
  padding-top: 84px !important;
}

.channel-profile,
.channel-stats,
.channel-toolbar,
.channel-video-grid {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.channel-profile {
  overflow: hidden;
  border-radius: 20px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .34);
}

.channel-cover {
  height: 170px;
  background: linear-gradient(135deg, #0f0f0f 0%, #18334a 48%, #351526 100%);
  position: relative;
  overflow: hidden;
}

.channel-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, .05), #181818);
}

.channel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.05);
  opacity: .42;
}

.channel-info {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 0 22px 22px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.channel-title {
  min-width: 0;
  flex: 1;
}

.channel-title span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #3ea6ff;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.channel-title h1 {
  margin: 0 0 4px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
}

.channel-title p {
  margin: 0;
  color: #cfcfcf;
}

.channel-profile .channel-avatar {
  width: 92px;
  height: 92px;
  font-size: 38px;
  box-shadow: 0 0 0 5px #181818;
  overflow: hidden;
}

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

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

.youtube-connect-card {
  width: min(640px, 100%);
}

.youtube-connected {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
}

.youtube-connected img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.youtube-connected strong,
.youtube-connected small {
  display: block;
}

.youtube-connected small {
  margin-top: 3px;
  color: #aaa;
}

.youtube-import-review {
  width: min(980px, 100%);
  margin: 18px auto 42px;
  padding: 18px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.youtube-import-form {
  display: grid;
  gap: 16px;
}

.youtube-import-list {
  display: grid;
  gap: 10px;
}

.youtube-import-item {
  display: grid;
  grid-template-columns: 28px 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
}

.youtube-import-item img {
  width: 128px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  object-fit: cover;
  background: #0f0f0f;
}

.youtube-import-check {
  display: grid;
  place-items: center;
}

.youtube-import-check input {
  width: 20px;
  height: 20px;
}

.youtube-import-info {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.youtube-import-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-import-info small {
  color: #aaa;
  font-size: 12px;
  font-weight: 800;
}

.youtube-import-info select {
  height: 40px;
  min-width: 0;
  border: 1px solid #333;
  border-radius: 8px;
  background: #121212;
  color: #fff;
  padding: 0 10px;
}

.channel-status-row,
.channel-ranking {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.channel-ranking {
  margin-top: 18px;
}

.channel-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.channel-stats article {
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .1);
}

.channel-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.channel-stats span {
  display: block;
  margin-top: 7px;
  color: #aaa;
  font-size: 13px;
  font-weight: 800;
}

.channel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 26px;
  margin-bottom: 14px;
}

.channel-toolbar h2 {
  margin: 0 0 5px;
  font-size: 24px;
  letter-spacing: -.02em;
}

.channel-toolbar p {
  margin: 0;
  color: #aaa;
}

.channel-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .1);
}

.channel-tabs span {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 900;
}

.channel-tabs .active {
  background: #fff;
  color: #0f0f0f;
}

.channel-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
}

.channel-video-grid .video-card {
  border-radius: 18px;
  background: #181818;
}

.channel-video-grid .video-thumb {
  aspect-ratio: 16/9;
}

.video-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.video-card-actions span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.video-card-actions a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #242424;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.video-card-actions a:hover {
  background: #303030;
}

.edit-video-card {
  margin-top: 0 !important;
}

.edit-video-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.edit-video-head h1 {
  margin-bottom: 6px !important;
}

.edit-video-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #000 center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
}

.edit-video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .52));
}

.edit-video-preview span {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-dashboard .admin-hero {
  background: radial-gradient(circle at top left, rgba(62, 166, 255, .2), transparent 36%), linear-gradient(135deg, #181818, #101010);
}

.creator-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.creator-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -6px 0 18px;
}

.channel-status-row {
  width: min(1120px, 100%) !important;
  margin: -6px auto 18px !important;
}

.creator-status-row article {
  padding: 14px 16px;
  border-radius: 16px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .08);
}

.creator-status-row strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.creator-status-row span {
  display: block;
  margin-top: 7px;
  color: #aaa;
  font-size: 13px;
  font-weight: 800;
}

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

.creator-rank-list {
  display: grid;
  gap: 9px;
}

.creator-rank-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .06);
}

.creator-rank-item:hover {
  background: #272727;
}

.creator-rank-item>span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111;
  color: #3ea6ff;
  font-weight: 900;
}

.creator-rank-item div {
  min-width: 0;
}

.creator-rank-item strong,
.creator-rank-item small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.creator-rank-item small {
  margin-top: 4px;
  color: #aaa;
  font-size: 12px;
}

.creator-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.creator-metric-row span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .06);
  color: #aaa;
  font-size: 12px;
  font-weight: 800;
}

.creator-metric-row strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

@media (max-width:900px) {
  .game-dot {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
  }

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

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

  .creator-stats,
  .creator-status-row,
  .creator-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width:620px) {
  .user-dropdown {
    top: calc(100% + 8px);
    right: 0;
  }

  .library-page .main-content {
    padding-top: calc(var(--topbar) + 16px) !important;
  }

  .channel-cover {
    height: 128px;
  }

  .channel-info {
    display: grid;
    align-items: start;
    gap: 12px;
    padding: 0 18px 18px;
  }

  .channel-profile .channel-avatar {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }

  .channel-title h1 {
    font-size: 31px;
  }

  .channel-profile .btn {
    width: 100%;
  }

  .channel-actions {
    display: grid;
    width: 100%;
  }

  .youtube-import-review {
    padding: 14px;
  }

  .youtube-import-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .youtube-import-item img {
    grid-column: 1 / -1;
    width: 100%;
  }

  .channel-stats {
    gap: 10px;
  }

  .channel-stats article {
    padding: 14px;
  }

  .channel-stats strong {
    font-size: 22px;
  }

  .channel-tabs {
    width: 100%;
    overflow: auto;
  }

  .channel-tabs span {
    white-space: nowrap;
  }

  .edit-video-head {
    display: grid;
  }

  .edit-video-head .btn {
    width: 100%;
  }
}

/* Patch v13: player mobile, menu inferior, playlists e anúncios */
.playlist-choice span {
  color: #fff !important;
}

.playlist-choice.active span {
  color: #fff !important;
}

.subscribe-pill.disabled {
  background: rgba(255, 255, 255, .16);
  color: #ddd;
}

.preview-pill {
  top: 116px !important;
  left: 50% !important;
  transform: translateX(-50%);
  justify-content: center;
  text-align: center;
}

.video-gesture-layer {
  inset: 88px 0 128px 0 !important;
  z-index: 4 !important;
}

.ad-short-card {
  color: #fff;
}

.ad-player-wrap {
  position: relative;
  width: min(460px, 56.25dvh, calc(100vw - var(--sidebar) - 210px));
  max-width: 600px;
  aspect-ratio: 9/16;
  max-height: calc(100dvh - var(--topbar) - var(--footer-h) - 24px);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0;
  background: #000;
  border: 0;
  overflow: hidden;
}

@media (min-height:920px) and (min-width:901px) {
  .ad-player-wrap {
    width: min(540px, 56.25dvh, calc(100vw - var(--sidebar) - 220px));
    max-width: 540px;
  }
}

@media (max-width:1180px) and (min-width:901px) {
  .ad-player-wrap {
    width: min(480px, 56.25dvh, calc(100vw - var(--sidebar) - 170px));
  }
}

.ad-player-wrap img,
.ad-image-link {
  width: 100%;
  height: 100%;
  display: block;
}

.ad-player-wrap img {
  object-fit: cover;
  border-radius: 0;
}

.ad-player-wrap strong {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 100%;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
  text-align: center;
  font-size: 18px;
}

.ad-html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
}

.ad-html::-webkit-scrollbar {
  display: none;
}

.ad-html>* {
  max-width: 100%;
  max-height: 100%;
}

.ad-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  color: #ddd;
  font-size: 11px;
  font-weight: 900;
}

.ad-audio-controls {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 132px);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}

.ad-audio-controls button {
  min-width: 56px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.ad-audio-controls input {
  width: 86px;
  accent-color: var(--blue);
}

.ad-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ad-create-form label,
.ad-html-field {
  display: grid;
  gap: 7px;
  color: #d7d7d7;
  font-size: 13px;
  font-weight: 800;
}

.ad-create-form input,
.ad-create-form textarea {
  width: 100%;
  border: 1px solid #333;
  border-radius: 8px;
  background: #121212;
  color: #fff;
  padding: 10px 12px;
}

.ad-html-field,
.ad-create-form .btn {
  grid-column: 1 / -1;
}

.ad-active-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.admin-ad-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-ad-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
}

.admin-ad-row strong,
.admin-ad-row small {
  display: block;
}

.admin-ad-row small {
  margin-top: 3px;
  color: #aaa;
}

@media (max-width:620px) {
  :root {
    --footer-h: 64px;
  }

  .shorts-index .topbar {
    z-index: 220 !important;
    overflow: visible !important;
  }

  .shorts-index .footer {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 150 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
  }

  .shorts-index .footer-content {
    display: none !important;
  }

  .shorts-index .mobile-nav {
    pointer-events: auto !important;
  }

  .shorts-index .main-content {
    padding: var(--topbar) 0 var(--footer-h) !important;
  }

  .shorts-index .shorts-feed,
  .shorts-index .short-card,
  .shorts-index .player-wrap {
    height: calc(100dvh - var(--topbar) - var(--footer-h)) !important;
  }

  .shorts-index .short-actions {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .shorts-index .short-caption {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .preview-pill {
    top: 124px !important;
    max-width: calc(100dvw - 96px) !important;
  }

  .video-gesture-layer {
    inset: 96px 64px 134px 0 !important;
  }

  .ad-player-wrap {
    width: 100dvw !important;
    height: calc(100dvh - var(--topbar) - var(--footer-h)) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border: 0 !important;
  }

  .ad-audio-controls {
    max-width: calc(100dvw - 120px);
  }

  .ad-audio-controls input {
    width: 74px;
  }

  .ad-create-form,
  .admin-ad-row {
    grid-template-columns: 1fr;
  }

  .shorts-index .sidebar,
  .sidebar {
    bottom: var(--footer-h) !important;
    height: calc(100dvh - var(--topbar) - var(--footer-h)) !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .shorts-index .side-games,
  .side-games {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Patch v16: métricas do canal em um único grid */
.channel-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  margin: 16px auto 18px !important;
}

.channel-stats article {
  min-height: 78px;
  display: grid !important;
  place-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  padding: 16px 12px !important;
}

.channel-stats strong {
  font-size: 25px !important;
}

.channel-stats span {
  margin-top: 8px !important;
}

@media (max-width:900px) {
  .channel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Patch v18: admin em abas */
.admin-tabs {
  width: min(1120px, 100%);
  margin: 14px auto 14px;
  display: flex;
  gap: 8px;
  padding: 5px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
}

.admin-tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cfcfcf;
  font-weight: 900;
}

.admin-tabs button.active {
  background: #fff;
  color: #0f0f0f;
}

.admin-tab-panels {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.admin-tab-panel {
  display: none !important;
}

.admin-tab-panel.active {
  display: block !important;
}

.admin-tab-panel .admin-game-list,
.admin-tab-panel .admin-video-list {
  max-height: min(640px, calc(100dvh - 320px));
  overflow: auto;
  padding-right: 4px;
}

.admin-tab-panel.ads-panel {
  max-width: 760px;
}

@media (max-width:620px) {
  .admin-tabs {
    border-radius: 8px;
    overflow-x: auto;
  }

  .admin-tabs button {
    min-width: 130px;
  }
}


/* Plano PRO e conexão exclusiva do YouTube */
.pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd54a, #ff8a00);
  color: #17100a;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .06em;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 8px 24px rgba(255, 153, 0, .2);
}

.pro-badge.compact {
  min-height: 20px;
  padding: 3px 7px;
  font-size: 9px;
  margin-left: 5px;
}

.pro-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-heading-row h1 {
  margin: 0;
}

.pro-locked-btn {
  border-color: rgba(255, 181, 44, .35) !important;
}

.pro-hero-card {
  width: min(1080px, 100%);
  margin: 18px auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
}

.pro-hero-copy,
.pro-feature-panel {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: #181818;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
}

.pro-hero-copy {
  background:
    radial-gradient(circle at top right, rgba(255, 153, 0, .2), transparent 34%),
    radial-gradient(circle at bottom left, rgba(62, 166, 255, .14), transparent 38%),
    #181818;
}

.pro-hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
}

.pro-hero-copy > p {
  color: #b8b8b8;
  font-size: 17px;
  line-height: 1.65;
  max-width: 700px;
}

.pro-lock-alert {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 181, 44, .35);
  background: rgba(255, 181, 44, .1);
  color: #ffe5a3;
  font-weight: 850;
}

.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pro-feature-panel h2 {
  margin: 0 0 18px;
}

.pro-feature-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.pro-feature-panel li {
  padding: 14px;
  border-radius: 15px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .08);
}

.pro-feature-panel li strong,
.pro-feature-panel li span {
  display: block;
}

.pro-feature-panel li span {
  margin-top: 4px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.45;
}

.pro-admin-note {
  margin: 18px 0 0;
  color: #ffd98b;
  font-size: 13px;
}

.admin-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-user-list {
  display: grid;
  gap: 9px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, .08);
}

.admin-user-info {
  min-width: 0;
}

.admin-user-info strong,
.admin-user-info small {
  display: block;
}

.admin-user-info small {
  color: #aaa;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-role-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(62, 166, 255, .14);
  color: #9cd3ff;
  font-size: 11px;
  font-weight: 900;
}

.user-dropdown-head strong .pro-badge {
  transform: translateY(-1px);
}

.user-dropdown .youtube-svg {
  width: 20px;
  height: 16px;
  color: #ff0000;
}

@media (max-width: 900px) {
  .pro-hero-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .pro-hero-card {
    margin-top: 6px;
  }

  .pro-hero-copy,
  .pro-feature-panel {
    border-radius: 18px;
    padding: 20px;
  }

  .pro-actions,
  .pro-actions .btn {
    width: 100%;
  }

  .admin-user-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-user-row form,
  .admin-user-row .admin-role-pill {
    grid-column: 1 / -1;
  }

  .admin-user-row form .btn,
  .admin-user-row .admin-role-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* Patch v17: cards móveis, transição suave do feed e PWA imersivo */
:root {
  --app-height: 100dvh;
}

.admin-ad-row > div:first-child {
  min-width: 0;
}

.admin-ad-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-ad-actions form {
  margin: 0;
}

.youtube-import-item {
  position: relative;
  min-width: 0;
}

/* O feed é uma pilha fixa: somente os cards animam, nunca a página. */
body.shorts-index {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: var(--app-height, 100dvh) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
}

.shorts-index .main-content {
  height: var(--app-height, 100dvh) !important;
  min-height: 0 !important;
}

.shorts-index .shorts-feed {
  position: relative !important;
  isolation: isolate;
  height: calc(var(--app-height, 100dvh) - var(--topbar) - var(--footer-h)) !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
  contain: layout paint;
}

.shorts-index .short-card {
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .22s ease !important;
  backface-visibility: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}

.shorts-index .short-card.is-transitioning {
  display: grid !important;
  pointer-events: none;
  z-index: 2;
}

.shorts-index .short-card.is-active {
  z-index: 3;
}

.shorts-index .short-card.is-entering-from-down {
  transform: translate3d(0, 8%, 0) scale(.986);
  opacity: 0;
}

.shorts-index .short-card.is-entering-from-up {
  transform: translate3d(0, -8%, 0) scale(.986);
  opacity: 0;
}

.shorts-index .short-card.is-leaving-up {
  transform: translate3d(0, -9%, 0) scale(.982);
  opacity: 0;
  z-index: 4;
}

.shorts-index .short-card.is-leaving-down {
  transform: translate3d(0, 9%, 0) scale(.982);
  opacity: 0;
  z-index: 4;
}

.shorts-index .short-card.is-dragging {
  transition: none !important;
}

.shorts-index .player-wrap {
  background-color: #000 !important;
  background-image: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .24)), var(--video-poster, none) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.shorts-index .player-wrap iframe {
  opacity: 0;
  transition: opacity .2s ease;
}

.shorts-index .player-wrap iframe.is-ready {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .shorts-index .short-card,
  .shorts-index .player-wrap iframe {
    transition-duration: .01ms !important;
  }
}

@media (max-width: 620px) {
  :root {
    --footer-h: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .admin-ad-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 13px !important;
  }

  .admin-ad-row > div:first-child {
    width: 100%;
  }

  .admin-ad-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-ad-actions form,
  .admin-ad-actions .btn {
    width: 100%;
  }

  .admin-ad-actions .btn {
    min-height: 42px;
  }

  .youtube-import-review {
    width: 100%;
    padding: 12px !important;
  }

  .youtube-import-list {
    gap: 12px;
  }

  .youtube-import-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 11px !important;
    width: 100%;
    padding: 11px !important;
  }

  .youtube-import-check {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .72);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(8px);
  }

  .youtube-import-check input {
    width: 21px;
    height: 21px;
  }

  .youtube-import-item img {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 9px !important;
  }

  .youtube-import-info {
    grid-column: 1 !important;
    width: 100%;
    padding: 0 1px 1px;
  }

  .youtube-import-info strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.3;
  }

  .youtube-import-info select {
    width: 100%;
  }

  .shorts-index .short-card.is-transitioning {
    display: block !important;
  }

  .shorts-index .shorts-feed,
  .shorts-index .short-card,
  .shorts-index .player-wrap,
  .shorts-index .ad-player-wrap {
    height: calc(var(--app-height, 100dvh) - var(--topbar) - var(--footer-h)) !important;
  }
}

/* Tela cheia instalada: ocupa também as áreas seguras sem exibir barras do navegador. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  html,
  body {
    background: #0f0f0f;
  }

  .shorts-index .topbar {
    height: calc(var(--topbar) + env(safe-area-inset-top, 0px)) !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
  }

  .shorts-index .main-content {
    padding-top: calc(var(--topbar) + env(safe-area-inset-top, 0px)) !important;
  }

  .shorts-index .shorts-feed,
  .shorts-index .short-card,
  .shorts-index .player-wrap,
  .shorts-index .ad-player-wrap {
    height: calc(var(--app-height, 100dvh) - var(--topbar) - env(safe-area-inset-top, 0px) - var(--footer-h)) !important;
  }
}
