:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: #101827;
  --surface: #172033;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #a7b3c7;
  --blue: #4f7cff;
  --green: #35d07f;
  --cyan: #22d3ee;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: #070a12 url("https://lumaplayer.vensofts.com/resources/backgrounds/png/premium_mesh_2400x1600.png") center / cover fixed;
  color: var(--text);
}

button,
a,
input {
  font: inherit;
}

button,
a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

button:focus,
a:focus,
input:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

button.active {
  background: rgba(53, 208, 127, 0.18);
  border-color: rgba(53, 208, 127, 0.7);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(7, 10, 18, 0.88);
  border-bottom: 1px solid var(--line);
}

.brand,
nav,
.actions,
.panel-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 24px;
  font-weight: 950;
}

.brand img {
  width: 42px;
  height: 42px;
}

nav {
  gap: 10px;
  flex-wrap: wrap;
}

main {
  width: min(1180px, calc(100vw - 40px));
  margin: 36px auto;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.login-panel article,
.login-panel form,
.summary-grid article,
.account-panel article,
.media-panel,
.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 39, 0.92);
  padding: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 14px;
  line-height: 1.05;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
}

p,
small,
label {
  color: var(--muted);
}

form,
.account-panel article {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 760;
}

input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1220;
  color: var(--text);
  padding: 10px 14px;
}

.workspace {
  display: grid;
  gap: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-grid b {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.summary-grid span {
  font-size: 26px;
  font-weight: 900;
}

.panel-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.media-card {
  display: grid;
  gap: 8px;
  min-height: 194px;
  text-align: left;
}

.media-card img,
.media-card span {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--green), var(--cyan));
}

.media-card span {
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 950;
}

.media-card b,
.media-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000;
}

.player video {
  width: 100%;
  height: 100%;
}

.player-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 10, 18, 0.86);
}

@media (max-width: 860px) {
  .app-header,
  .login-panel,
  .summary-grid,
  .panel-heading {
    display: grid;
    grid-template-columns: 1fr;
  }
}
