@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Urbanist:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #040712;
  --bg-soft: #080f25;
  --panel: rgba(10, 18, 46, 0.84);
  --panel-2: rgba(13, 25, 61, 0.92);
  --text: #e7eeff;
  --muted: #9fb0d9;
  --primary: #2f6fff;
  --primary-2: #4cb5ff;
  --line: rgba(108, 139, 214, 0.3);
  --line-strong: rgba(120, 156, 243, 0.55);
  --success: #31d69d;
  --danger: #ff5a75;
  --warning: #f3b44c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 55px rgba(2, 5, 14, 0.6);
  --font-body: "Urbanist", "Segoe UI", Arial, sans-serif;
  --font-display: "Space Grotesk", "Urbanist", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 8% -12%, rgba(44, 103, 255, 0.35) 0%, rgba(44, 103, 255, 0) 40%),
    radial-gradient(circle at 100% 10%, rgba(67, 155, 255, 0.23) 0%, rgba(67, 155, 255, 0) 32%),
    linear-gradient(180deg, #070d1f 0%, #040712 44%, #03050d 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(68, 104, 188, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(68, 104, 188, 0.06) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: 0.35;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 22% 14%, rgba(95, 124, 255, 0.32), transparent 26%),
    radial-gradient(circle at 78% 86%, rgba(47, 111, 255, 0.2), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.25;
  z-index: 0;
}

a {
  color: #9ac5ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bg-shape {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 42%;
  filter: blur(76px);
  pointer-events: none;
  z-index: 0;
}

.bg-shape-a {
  left: -120px;
  top: -30px;
  background: rgba(53, 117, 255, 0.36);
}

.bg-shape-b {
  right: -120px;
  bottom: -80px;
  background: rgba(63, 146, 255, 0.29);
}

.shell,
.install-wrap {
  position: relative;
  z-index: 1;
  width: min(1260px, 94vw);
  margin: 20px auto 36px;
}

.install-wrap {
  min-height: 96vh;
  display: grid;
  align-items: center;
}

.content {
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(125deg, rgba(9, 16, 41, 0.96), rgba(8, 17, 48, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 10px;
  z-index: 20;
}

.brand {
  position: relative;
  padding-left: 38px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 8px;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 2px rgba(64, 130, 255, 0.24), 0 0 18px rgba(67, 132, 255, 0.48);
}

.brand span {
  color: #8cc2ff;
}

.brand-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  border-radius: 999px;
  border: 1px solid transparent;
  color: #dbe6ff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-decoration: none;
  padding: 8px 13px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(130deg, rgba(44, 95, 228, 0.24), rgba(15, 35, 88, 0.6));
  box-shadow: inset 0 0 0 1px rgba(74, 132, 255, 0.22);
  transform: translateY(-1px);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(14, 25, 58, 0.94), rgba(9, 16, 39, 0.94));
  box-shadow: var(--shadow);
  padding: 20px;
  animation: panel-in 0.48s ease both;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(78, 135, 255, 0.16), transparent 34%);
  opacity: 0.72;
}

.panel > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8fc2ff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

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

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

.stats-grid.compact {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 280px;
}

.stat-card {
  border: 1px solid rgba(102, 135, 210, 0.34);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: linear-gradient(158deg, rgba(11, 22, 54, 0.86), rgba(10, 16, 35, 0.88));
  display: grid;
  gap: 6px;
  animation: panel-in 0.54s ease both;
}

.stat-card span {
  color: #a5b5dd;
  font-size: 12px;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.2px;
}

.hero-panel {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.player-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.filters-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

.video {
  width: 100%;
  min-height: 360px;
  max-height: 66vh;
  border: 1px solid rgba(93, 140, 255, 0.33);
  border-radius: var(--radius-sm);
  background: #000;
}

.player-status {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.player-status.is-visible {
  display: block;
}

.player-status.is-info {
  color: #9fb6d9;
}

.player-status.is-warn {
  color: #ffd480;
}

.player-status.is-error {
  color: #ff8a9a;
}

.player-now {
  margin-top: 10px;
}

.player-hint {
  margin-top: 4px;
  font-size: 12px;
}

.player-actions {
  margin-top: 8px;
}

.player-actions-v2 {
  margin-top: 10px;
  display: grid;
}

.player-actions-v2 .button-ghost {
  width: 100%;
}

.empty-state {
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(110, 145, 225, 0.42);
  background: rgba(9, 16, 36, 0.65);
  color: var(--muted);
  text-align: center;
  padding: 22px;
}

.playlist-panel {
  margin-top: 18px;
}

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

.media-card {
  border: 1px solid rgba(90, 127, 208, 0.35);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(10, 20, 50, 0.85), rgba(9, 16, 36, 0.92));
  color: var(--text);
  text-decoration: none;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: panel-in 0.56s ease both;
}

.media-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(110, 153, 255, 0.64);
  box-shadow: 0 14px 32px rgba(9, 24, 62, 0.44);
}

.media-card.is-current {
  border-color: rgba(111, 164, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(111, 164, 255, 0.5), 0 14px 34px rgba(13, 35, 86, 0.55);
}

.media-card.is-disabled {
  opacity: 0.7;
}

.media-cover {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  border: 1px solid rgba(109, 145, 226, 0.43);
  background: linear-gradient(150deg, rgba(42, 75, 160, 0.8), rgba(20, 38, 91, 0.85));
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  color: #d8e7ff;
}

.media-cover .media-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.media-cover .media-cover-fallback.is-hidden {
  display: none;
}

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

.media-info {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}

.media-info strong {
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-info small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card--live {
  display: flex;
  align-items: center;
}

.media-card--live .media-cover {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.media-card--vodseries {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0;
  overflow: hidden;
}

.media-card--vodseries .media-cover {
  width: 100%;
  height: 190px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(150deg, rgba(20, 38, 91, 0.95), rgba(8, 15, 36, 0.95));
}

.media-card--vodseries .media-cover .media-cover-fallback {
  font-size: 20px;
  letter-spacing: 1px;
}

.media-card--vodseries .media-info {
  padding: 0 10px 10px;
  align-content: start;
}

.media-card--vodseries .media-info strong {
  white-space: normal;
  line-height: 1.2;
  max-height: 2.4em;
}

.media-card--vodseries .media-info small {
  white-space: normal;
  line-height: 1.3;
  max-height: 2.6em;
}

.auth-wrap {
  min-height: 88vh;
  display: grid;
  align-items: center;
}

.auth-panel,
.install-panel {
  width: min(580px, 100%);
  margin: 0 auto;
}

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

.form-grid .span-2 {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #b4c5ec;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15px;
}

input,
select,
textarea {
  width: 100%;
  color: #eaf1ff;
  border: 1px solid rgba(95, 132, 216, 0.4);
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(8, 18, 45, 0.95), rgba(8, 13, 30, 0.95));
  padding: 11px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8096c7;
}

select {
  appearance: none;
  color-scheme: dark;
  background-color: #091737;
  background-image: linear-gradient(45deg, transparent 50%, #8fb8ff 50%), linear-gradient(135deg, #8fb8ff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  color: #eaf1ff;
}

select option,
select optgroup {
  background: #071128;
  color: #eaf1ff;
}

select option:checked {
  background: #14357f;
  color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(108, 156, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(46, 111, 255, 0.19), 0 0 18px rgba(43, 112, 255, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--primary);
  margin-right: 6px;
}

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

button,
.button,
.button-ghost,
.button-danger {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button {
  color: #edf4ff;
  background: linear-gradient(132deg, #2f6fff, #4caeff);
  box-shadow: 0 10px 24px rgba(48, 113, 255, 0.36), inset 0 0 0 1px rgba(162, 204, 255, 0.26);
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.button-ghost {
  color: #d8e4ff;
  border: 1px solid rgba(100, 134, 212, 0.45);
  background: rgba(14, 25, 57, 0.55);
}

.button-ghost:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(122, 169, 255, 0.62);
  background: rgba(20, 36, 82, 0.72);
}

.button-danger {
  color: #ffdbe2;
  border: 1px solid rgba(255, 103, 132, 0.48);
  background: rgba(88, 21, 39, 0.58);
}

.button-danger:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

button:disabled,
.button:disabled,
.button-ghost:disabled,
.button-danger:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.flash {
  border-radius: 12px;
  border: 1px solid;
  padding: 11px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.flash-info {
  border-color: rgba(97, 156, 255, 0.52);
  background: rgba(35, 94, 197, 0.2);
}

.flash-success {
  border-color: rgba(74, 211, 163, 0.52);
  background: rgba(27, 121, 93, 0.2);
}

.flash-warning {
  border-color: rgba(243, 180, 76, 0.56);
  background: rgba(131, 84, 14, 0.24);
}

.flash-danger {
  border-color: rgba(255, 90, 117, 0.55);
  background: rgba(124, 26, 50, 0.28);
}

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

.provider-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(97, 130, 208, 0.38);
  background: linear-gradient(160deg, rgba(10, 19, 47, 0.84), rgba(9, 15, 35, 0.9));
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.provider-hit-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 126, 206, 0.4);
  background: linear-gradient(160deg, rgba(11, 22, 53, 0.82), rgba(8, 15, 35, 0.88));
  padding: 10px;
  display: grid;
  gap: 4px;
}

.code-block {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(92, 126, 208, 0.44);
  background: rgba(4, 8, 20, 0.76);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.code-block code {
  color: #d7e7ff;
  font-family: "Fira Code", "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.pill-success {
  color: #ceffed;
  border: 1px solid rgba(69, 217, 167, 0.45);
  background: rgba(23, 126, 95, 0.35);
}

.pill-danger {
  color: #ffd6df;
  border: 1px solid rgba(255, 95, 126, 0.45);
  background: rgba(131, 22, 49, 0.45);
}

.pill-muted {
  color: #d7e4ff;
  border: 1px solid rgba(115, 144, 216, 0.45);
  background: rgba(47, 66, 110, 0.45);
}

.tmdb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.tmdb-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 129, 205, 0.4);
  background: linear-gradient(160deg, rgba(12, 23, 54, 0.86), rgba(8, 16, 39, 0.92));
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  animation: panel-in 0.58s ease both;
}

.tmdb-poster {
  border-right: 1px solid rgba(89, 124, 198, 0.38);
  background: rgba(4, 9, 23, 0.8);
  min-height: 170px;
  display: grid;
  place-items: center;
}

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

.tmdb-poster span {
  color: #8fa6d5;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-align: center;
}

.tmdb-body {
  padding: 12px;
  display: grid;
  gap: 7px;
}

.tmdb-body h3 {
  margin: 0;
  font-size: 15px;
}

.tmdb-body p {
  margin: 0;
  font-size: 13px;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(96, 131, 209, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(6, 12, 29, 0.72);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(137, 160, 223, 0.18);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #d0deff;
  font-weight: 700;
  background: rgba(46, 77, 151, 0.2);
}

.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-form input {
  width: 130px;
}

.player-shell-v2 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 14px;
  align-items: start;
}

.catalog-panel-v2 {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.player-filter-head {
  display: grid;
  gap: 10px;
}

.player-filter-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
}

.player-field {
  min-width: 0;
}

.player-field label {
  margin-bottom: 6px;
}

.player-field-type {
  max-width: 220px;
}

.player-field-episodes[hidden] {
  display: none;
}

.catalog-count {
  font-size: 12px;
  letter-spacing: 0.2px;
}

.catalog-scroll {
  min-height: 0;
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding-right: 4px;
}

.catalog-scroll::-webkit-scrollbar {
  width: 8px;
}

.catalog-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(104, 140, 225, 0.42);
}

.catalog-list-v2 {
  display: grid;
  gap: 10px;
}

.catalog-list-v2.is-live {
  grid-template-columns: 1fr;
}

.catalog-list-v2.is-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-item-v2 {
  border: 1px solid rgba(90, 127, 208, 0.35);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(10, 20, 50, 0.85), rgba(9, 16, 36, 0.92));
  color: var(--text);
  text-align: left;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-item-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 153, 255, 0.64);
  box-shadow: 0 14px 32px rgba(9, 24, 62, 0.44);
}

.catalog-item-v2.is-selected {
  border-color: rgba(111, 164, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(111, 164, 255, 0.5), 0 14px 34px rgba(13, 35, 86, 0.55);
}

.catalog-item-v2.is-playing {
  border-color: rgba(67, 215, 170, 0.68);
  box-shadow: 0 0 0 1px rgba(52, 201, 156, 0.5), 0 14px 34px rgba(13, 70, 58, 0.42);
}

.catalog-item-v2.is-disabled {
  opacity: 0.68;
}

.catalog-thumb-v2 {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px;
  border: 1px solid rgba(109, 145, 226, 0.43);
  background: linear-gradient(150deg, rgba(42, 75, 160, 0.8), rgba(20, 38, 91, 0.85));
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

.catalog-meta-v2 {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}

.catalog-meta-v2 strong {
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-meta-v2 small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-item-v2--card {
  display: grid;
  align-content: start;
  padding: 0;
  gap: 8px;
  overflow: hidden;
}

.catalog-item-v2--card .catalog-thumb-v2 {
  width: 100%;
  height: 186px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
}

.catalog-item-v2--card .catalog-meta-v2 {
  padding: 0 10px 10px;
  align-content: start;
}

.catalog-item-v2--card .catalog-meta-v2 strong,
.catalog-item-v2--card .catalog-meta-v2 small {
  white-space: normal;
  text-overflow: initial;
  overflow: visible;
}

.player-side-v2 {
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.player-stage-v2,
.media-detail-v2,
.account-detail-v2 {
  padding: 16px;
}

.video-frame-16x9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(93, 140, 255, 0.33);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.video-fixed-16x9 {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #000;
}

.detail-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item-v2 {
  border: 1px solid rgba(102, 135, 210, 0.34);
  border-radius: 10px;
  background: linear-gradient(158deg, rgba(11, 22, 54, 0.86), rgba(10, 16, 35, 0.88));
  padding: 10px;
  display: grid;
  gap: 4px;
}

.detail-item-v2 span {
  color: #a5b5dd;
  font-size: 12px;
}

.detail-item-v2 strong {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.25;
  word-break: break-word;
}

.epg-box-v2 {
  margin-top: 10px;
  border: 1px solid rgba(102, 135, 210, 0.34);
  border-radius: 10px;
  background: rgba(8, 15, 34, 0.7);
  padding: 10px;
  display: grid;
  gap: 6px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .filters-panel {
    position: static;
  }

  .hero-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-card {
    flex-direction: column;
  }

  .player-shell-v2 {
    grid-template-columns: 1fr;
  }

  .player-side-v2 {
    position: static;
  }

  .catalog-panel-v2 {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .catalog-scroll {
    max-height: 56vh;
  }
}

@media (max-width: 700px) {
  .shell,
  .install-wrap {
    width: min(1260px, 95vw);
    margin-top: 12px;
  }

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

  .nav-links {
    width: 100%;
  }

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

  .form-grid .span-2 {
    grid-column: auto;
  }

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

  .player-filter-row {
    grid-template-columns: 1fr;
  }

  .catalog-list-v2.is-cards {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid-v2 {
    grid-template-columns: 1fr;
  }

  .media-card--vodseries .media-cover {
    height: 170px;
  }

  .request-meta-grid {
    grid-template-columns: 1fr;
  }

  .video {
    min-height: 240px;
  }
}

/* Player Watch Layout (inspirado em watch page, mantendo identidade BravoHub) */
.player-watch-v3 {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 14px;
  align-items: start;
  min-height: calc(100vh - 118px);
}

.player-watch-v3 .player-side-v2 {
  order: 1;
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.player-watch-v3 .catalog-panel-v2 {
  order: 2;
  min-height: 0;
  height: calc(100vh - 118px);
  border-radius: 16px;
  padding: 14px;
}

.player-watch-v3 .player-stage-v2 h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.player-watch-v3 .video-frame-16x9 {
  border-radius: 14px;
  border: 1px solid rgba(100, 145, 255, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.player-watch-v3 .media-detail-v2 h3,
.player-watch-v3 .account-detail-v2 h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.player-watch-v3 .detail-grid-v2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-watch-v3 .player-filter-head {
  gap: 8px;
}

.player-watch-v3 .player-filter-row:first-child {
  grid-template-columns: 132px minmax(0, 1fr);
}

.player-watch-v3 .player-filter-row:last-child {
  grid-template-columns: 1fr;
}

.player-watch-v3 .catalog-scroll {
  min-height: 0;
  max-height: calc(100vh - 290px);
  overflow: auto;
}

.player-watch-v3 .catalog-list-v2 {
  gap: 8px;
}

.player-watch-v3 .catalog-list-v2.is-live {
  grid-template-columns: 1fr;
}

.player-watch-v3 .catalog-list-v2.is-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.player-watch-v3 .catalog-item-v2 {
  border-radius: 12px;
  padding: 8px;
}

.player-watch-v3 .catalog-item-v2--live {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.player-watch-v3 .catalog-item-v2--live .catalog-thumb-v2 {
  width: 118px;
  height: 66px;
  border-radius: 10px;
  border: 1px solid rgba(116, 148, 219, 0.44);
}

.player-watch-v3 .catalog-item-v2--live .catalog-meta-v2 strong {
  white-space: normal;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}

.player-watch-v3 .catalog-item-v2--live .catalog-meta-v2 small {
  white-space: normal;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
}

.player-watch-v3 .catalog-item-v2--card .catalog-thumb-v2 {
  height: 154px;
}

.player-watch-v3 .catalog-item-v2--card .catalog-meta-v2 {
  padding: 0 8px 8px;
}

.player-watch-v3 .epg-box-v2 p {
  font-size: 12px;
}

@media (max-width: 1180px) {
  .player-watch-v3 {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .player-watch-v3 .player-side-v2,
  .player-watch-v3 .catalog-panel-v2 {
    order: initial;
    position: static;
    height: auto;
  }

  .player-watch-v3 .catalog-scroll {
    max-height: 56vh;
  }
}

@media (max-width: 760px) {
  .player-watch-v3 .player-filter-row:first-child {
    grid-template-columns: 1fr;
  }

  .player-watch-v3 .catalog-list-v2.is-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-watch-v3 .detail-grid-v2 {
    grid-template-columns: 1fr;
  }

  .player-watch-v3 .catalog-item-v2--live {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .player-watch-v3 .catalog-item-v2--live .catalog-thumb-v2 {
    width: 104px;
    height: 58px;
  }
}

.site-footer {
  margin-top: 22px;
}

.site-footer-panel {
  padding: 16px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
}

.site-footer-main {
  display: grid;
  gap: 10px;
}

.site-footer-line {
  margin: 0;
  font-size: 13px;
  color: #dbe8ff;
}

.site-footer-line strong {
  color: #f0f6ff;
}

.site-footer-block {
  display: grid;
  gap: 6px;
}

.site-footer-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22px;
  color: #9fb6df;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-links a,
.site-footer-link-row > a:first-child {
  color: #d8e8ff;
  text-decoration: none;
  border: 1px solid rgba(97, 130, 208, 0.38);
  background: rgba(10, 19, 47, 0.68);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.site-footer-links a:hover,
.site-footer-link-row > a:first-child:hover {
  border-color: rgba(130, 170, 255, 0.6);
  background: rgba(21, 40, 90, 0.78);
  text-decoration: none;
}

.site-footer-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-footer-link-row > span {
  color: #d8e8ff;
  border: 1px solid rgba(97, 130, 208, 0.38);
  background: rgba(10, 19, 47, 0.68);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.footer-chip {
  border: 1px solid rgba(100, 150, 255, 0.48);
  background: linear-gradient(135deg, rgba(28, 61, 143, 0.64), rgba(13, 31, 76, 0.8));
  color: #edf4ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.footer-chip:hover {
  filter: brightness(1.05);
}

.site-footer-qr {
  border: 1px solid rgba(98, 132, 208, 0.38);
  border-radius: 12px;
  background: rgba(7, 14, 35, 0.76);
  padding: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.site-footer-qr img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  border: 1px solid rgba(117, 149, 223, 0.5);
  background: #ffffff;
}

.site-footer-copy {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(103, 135, 209, 0.3);
  color: #9fb4de;
  font-size: 12px;
}

.footer-phone-row {
  border: 1px solid rgba(96, 131, 209, 0.3);
  border-radius: 12px;
  background: rgba(8, 15, 36, 0.58);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.footer-phone-checks {
  display: grid;
  gap: 8px;
}

.footer-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6e4ff;
  font-size: 12px;
}

.footer-qr-admin {
  margin-top: 10px;
}

.footer-qr-admin img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  border: 1px solid rgba(117, 149, 223, 0.5);
  background: #ffffff;
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

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