@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f7fb;
  --white: #ffffff;
  --text: #17243b;
  --muted: #8290a5;
  --border: #e7ecf3;
  --blue: #2563eb;
  --blue-light: #eff5ff;
  --shadow: 0 8px 30px rgba(27,45,85,.045);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 75% 15%, #e9f0ff, transparent 45%), #f6f8fc;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 38px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 25px 75px rgba(27,45,85,.08);
}

.login-brand, .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  font-size: 20px;
}

.login-brand strong, .sidebar-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -.5px;
}

.login-brand span, .sidebar-brand span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.8px;
  margin-top: 4px;
}

.login-heading { margin: 36px 0 28px; }
.login-heading h1 { font-size: 27px; margin: 0 0 9px; letter-spacing: -.8px; }
.login-heading p { color: var(--muted); font-size: 13px; margin: 0; }

.login-card form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 19px 0 9px;
}

.login-card form input,
.field-group > input {
  width: 100%;
  border: 1px solid #dfe6f0;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  outline: none;
  color: var(--text);
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: #8fb1ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.primary-button {
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.login-card .primary-button { width: 100%; margin-top: 25px; }
.login-footer { margin-top: 30px; text-align: center; color: #9aa6b8; font-size: 11px; }
.login-error { background: #fff0f0; color: #b42318; padding: 12px; border-radius: 9px; font-size: 12px; }

.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 258px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand { padding: 0 9px 43px; }
.sidebar-label { color: #a2adbd; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 0 13px 16px; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-link { text-decoration: none; padding: 14px; color: #697991; border-radius: 10px; font-size: 13px; font-weight: 700; }
.nav-link.active { background: var(--blue-light); color: var(--blue); }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 22px; }

.account-info { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.account-avatar { width: 36px; height: 36px; border-radius: 10px; background: #e9efff; color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.account-info strong { display: block; font-size: 12px; }
.account-info small { color: var(--muted); font-size: 11px; }
.logout-button { width: 100%; padding: 11px; background: white; border: 1px solid var(--border); border-radius: 9px; font-size: 12px; color: #67758c; }

.main-content { flex: 1; min-width: 0; max-width: 1250px; margin: 0 auto; padding: 45px 55px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 31px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 800; color: var(--blue); }
.topbar h1 { font-size: 29px; margin: 9px 0; letter-spacing: -1px; }
.topbar p { font-size: 13px; color: var(--muted); margin: 0; }
.status-pill { background: #eaf8ef; color: #21864a; border-radius: 50px; padding: 11px 14px; font-size: 11px; font-weight: 700; white-space: nowrap; }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 25px; }
.stat-card, .editor-card { background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.stat-card { padding: 25px; }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 31px; margin: 12px 0 6px; letter-spacing: -1px; }

.section-heading { padding: 28px 31px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.section-heading h2 { margin: 0 0 7px; font-size: 17px; }
.section-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.section-chip { background: var(--blue-light); padding: 8px 11px; color: var(--blue); font-size: 10px; font-weight: 800; border-radius: 7px; }

.form-grid { display: grid; gap: 25px; padding: 31px; }
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.field-group small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.category-picker { position: relative; }
.category-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 14px; background: white; border: 1px solid #dfe6f0; border-radius: 10px; color: var(--text); font-size: 13px; }
.category-menu { position: absolute; top: calc(100% + 6px); width: 100%; max-height: 310px; background: white; border: 1px solid var(--border); border-radius: 12px; z-index: 20; box-shadow: 0 18px 45px rgba(30,45,75,.14); overflow: hidden; }
.category-menu[hidden] { display: none; }
#categorySearch { width: calc(100% - 20px); margin: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.category-options { max-height: 230px; overflow-y: auto; }
.category-option { display: block; width: 100%; text-align: left; padding: 11px 15px; border: 0; background: white; color: var(--text); font-size: 12px; }
.category-option:hover, .category-option.selected { background: var(--blue-light); color: var(--blue); }
#categoryEmpty { padding: 10px 15px; font-size: 12px; color: var(--muted); }

.poster-upload { display: flex; align-items: center; gap: 22px; padding: 20px; border: 1px dashed #cbd7eb; background: #fafcff; border-radius: 12px; }
.poster-preview { width: 80px; height: 112px; flex-shrink: 0; background: #eef2f9; border-radius: 9px; display: grid; place-items: center; color: #a5b2c7; font-size: 30px; overflow: hidden; }
.poster-preview img { width: 100%; height: 100%; object-fit: cover; }
.poster-upload-info strong { font-size: 13px; }
.poster-upload-info p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.poster-upload-info input { font-size: 11px; max-width: 100%; }

.save-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fbfcff; padding: 24px 31px; border-top: 1px solid var(--border); border-radius: 0 0 16px 16px; }
.save-footer strong { font-size: 12px; }
.save-footer p { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.dashboard-footer { margin: 27px 0; text-align: center; font-size: 11px; color: #a0aabb; }

@media (max-width: 900px) {
  .sidebar { width: 210px; }
  .main-content { padding: 28px; }
}

@media (max-width: 650px) {
  .app-layout { display: block; }
  .sidebar { width: 100%; padding: 17px; }
  .sidebar-brand { padding: 0 0 14px; }
  .sidebar-label, .sidebar-nav { display: none; }
  .sidebar-bottom { margin: 0; padding-top: 12px; }
  .main-content { padding: 22px 15px; }
  .topbar { display: block; }
  .status-pill { display: inline-block; margin-top: 17px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 18px; }
  .form-grid, .section-heading { padding: 20px; }
  .save-footer { display: block; padding: 20px; }
  .save-footer button { width: 100%; margin-top: 16px; }
}

/* =====================================================
   SOFT 4K EXCLUSIVE — PREMIUM VOD MANAGER
   ===================================================== */

:root {
  --bg: #f3f6fc;
  --text: #17233a;
  --muted: #77869d;
  --border: #e4eaf4;
  --blue: #345cf3;
  --blue-light: #eef2ff;
  --shadow: 0 12px 38px rgba(32,55,110,.055);
}

.sidebar {
  background: linear-gradient(180deg,#101d36 0%,#172b4d 100%);
  border-right: 0;
  box-shadow: 8px 0 35px rgba(15,30,60,.08);
}

.sidebar-brand strong { color: #fff; }
.sidebar-brand span { color: #9aafce; }

.sidebar .brand-icon {
  background: linear-gradient(135deg,#628bff,#345cf3);
  box-shadow: 0 6px 20px rgba(59,107,255,.3);
}

.sidebar-label { color: #8199b9; }

.nav-link { color: #aebfda; }

.nav-link.active {
  background: rgba(105,143,255,.17);
  color: #fff;
  border: 1px solid rgba(149,177,255,.15);
}

.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
}

.account-info strong { color: #fff; }
.account-info small { color: #9aafce; }

.account-avatar {
  background: rgba(100,143,255,.2);
  color: #b8ceff;
}

.logout-button {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  color: #d4e0f6;
}

.logout-button:hover {
  background: rgba(255,255,255,.12);
}

.main-content {
  max-width: 1350px;
}

.topbar h1 {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.eyebrow {
  color: #5372e9;
}

.stat-card,
.editor-card {
  border: 1px solid rgba(218,226,242,.9);
  box-shadow: 0 8px 30px rgba(24,45,86,.045);
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,#6f91ff,#345cf3);
}

.stat-card strong {
  font-size: 35px;
  font-weight: 800;
}

.editor-card {
  border-radius: 20px;
  overflow: visible;
}

.section-heading {
  background: linear-gradient(110deg,#fff,#f8faff);
  border-radius: 20px 20px 0 0;
}

.section-heading h2 {
  font-size: 19px;
  letter-spacing: -.5px;
}

.field-group > input,
.category-toggle {
  border-radius: 12px;
  background: #fcfdff;
  border-color: #dfe6f2;
  min-height: 49px;
}

.field-group > input:focus,
.category-toggle:focus-visible {
  background: #fff;
  border-color: #6b8cff;
  box-shadow: 0 0 0 4px rgba(67,106,244,.09);
}

.category-option {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f4f9;
}

.category-option:hover,
.category-option.selected {
  background: #edf2ff;
  color: #3157d9;
}

.poster-upload {
  background: linear-gradient(135deg,#fbfcff,#f1f5ff);
  border: 1.5px dashed #b6c8ec;
  border-radius: 16px;
  padding: 26px;
}

.poster-preview {
  width: 91px;
  height: 130px;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(22,40,80,.07);
}

.primary-button {
  background: linear-gradient(135deg,#416cff,#294bd2);
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(52,92,243,.16);
  transition: transform .15s,box-shadow .15s;
}

.primary-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(52,92,243,.25);
}

.save-footer {
  background: linear-gradient(100deg,#fafcff,#f4f7ff);
}

.status-pill {
  background: #edf9f2;
  color: #178452;
  border: 1px solid #d4f0e0;
}

.login-card {
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(26,46,86,.1);
}

@media (max-width:650px) {
  .sidebar {
    background: linear-gradient(120deg,#101d36,#1b3156);
  }
  .topbar h1 { font-size: 27px; }
}


/* SOFT 4K EXCLUSIVE LOGIN V2 */

.login-page {
  background:
    radial-gradient(ellipse at 10% 10%,#e5edff,transparent 45%),
    radial-gradient(ellipse at 90% 90%,#eaf0fb,transparent 45%),
    #f5f7fc;
}

.exclusive-login {
  width: min(960px,100%);
  max-width: 960px;
  min-height: 565px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226,233,245,.9);
  border-radius: 24px;
  box-shadow: 0 35px 100px rgba(19,38,83,.13);
}

.login-showcase {
  grid-column: 1;
  grid-row: 1 / 5;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 39px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 60%,rgba(74,111,250,.38),transparent 52%),
    radial-gradient(ellipse at 5% 100%,rgba(46,100,218,.22),transparent 45%),
    linear-gradient(145deg,#0c1529,#16284d 70%,#101b33);
}

.login-showcase::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -165px;
  top: 125px;
  border: 1px solid rgba(158,190,255,.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(110,154,255,.045),
    0 0 0 110px rgba(110,154,255,.025);
  pointer-events: none;
}

.showcase-top,
.showcase-bottom,
.showcase-center {
  position: relative;
  z-index: 1;
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c5d5f4;
}

.showcase-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(190,211,255,.25);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  font-size: 16px;
  letter-spacing: -1px;
  color: #fff;
}

.showcase-mark span { color: #90b2ff; }

.showcase-icon {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  margin-bottom: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg,#729aff,#345bea);
  box-shadow: 0 15px 45px rgba(50,100,255,.28);
  font-size: 24px;
}

.showcase-tag {
  color: #a6c0f5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.showcase-center h2 {
  font-size: clamp(30px,3.5vw,43px);
  line-height: 1.16;
  letter-spacing: -1.6px;
  margin: 15px 0 19px;
  font-weight: 800;
}

.showcase-center h2 em {
  color: #91b4ff;
  font-style: normal;
}

.showcase-center p {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.9;
  color: #aebfda;
}

.showcase-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #a1b5d3;
}

.showcase-dot {
  width: 7px;
  height: 7px;
  background: #55d9a5;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(85,217,165,.4);
}

.exclusive-login > .login-brand,
.exclusive-login > .login-heading,
.exclusive-login > .login-error,
.exclusive-login > form,
.exclusive-login > .login-footer {
  grid-column: 2;
  margin-left: 49px;
  margin-right: 49px;
}

.exclusive-login > .login-brand {
  margin-top: 49px;
}

.exclusive-login > .login-heading {
  margin-top: 51px;
  margin-bottom: 22px;
}

.exclusive-login .login-heading h1 {
  font-size: 29px;
  letter-spacing: -1px;
}

.exclusive-login .login-card form input,
.exclusive-login form input:not([type="hidden"]) {
  min-height: 49px;
  background: #fbfcff;
  border-radius: 11px;
}

.exclusive-login form .primary-button {
  min-height: 49px;
  margin-top: 28px;
}

.exclusive-login > .login-footer {
  align-self: end;
  margin-top: 25px;
  margin-bottom: 38px;
}

@media(max-width:750px) {
  .exclusive-login {
    display: block;
    max-width: 440px;
    min-height: 0;
    padding-bottom: 1px;
  }

  .login-showcase {
    min-height: 160px;
    padding: 23px 27px;
  }

  .showcase-center,
  .showcase-bottom { display: none; }

  .exclusive-login > .login-brand,
  .exclusive-login > .login-heading,
  .exclusive-login > .login-error,
  .exclusive-login > form,
  .exclusive-login > .login-footer {
    margin-left: 28px;
    margin-right: 28px;
  }

  .exclusive-login > .login-brand { margin-top: 29px; }
  .exclusive-login > .login-heading { margin-top: 30px; }
}


/* SOFT 4K EXCLUSIVE DASHBOARD V2 */

.dashboard-page {
  background:
    radial-gradient(ellipse at 90% 0%,rgba(91,132,255,.08),transparent 38%),
    #f5f7fc;
}

.main-content {
  max-width: 1240px;
  padding-top: 48px;
}

.topbar {
  margin-bottom: 30px;
}

.topbar h1 {
  font-size: 34px;
  letter-spacing: -1.4px;
  color: #111e35;
}

.topbar p {
  line-height: 1.8;
}

.stat-card {
  border-radius: 18px;
  padding: 27px;
  background: linear-gradient(140deg,#fff,#fafcff);
}

.stat-card strong {
  color: #162b50;
  letter-spacing: -1.5px;
}

.editor-card {
  border-radius: 22px;
  border: 1px solid #e4eaf4;
  box-shadow: 0 16px 50px rgba(24,43,85,.055);
}

.section-heading {
  padding: 32px 35px;
}

.form-grid {
  padding: 36px;
  gap: 29px;
}

.field-group label {
  font-size: 12px;
  letter-spacing: .15px;
  color: #263754;
}

.field-group > input,
.category-toggle {
  min-height: 54px;
  padding: 15px 17px;
  font-size: 13px;
}

.category-menu {
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(16,35,75,.13);
}

.poster-upload {
  min-height: 176px;
  border-radius: 17px;
}

.save-footer {
  padding: 28px 35px;
}

@media(max-width:650px) {
  .main-content { padding: 22px 15px; }
  .topbar h1 { font-size: 28px; }
  .section-heading, .form-grid, .save-footer { padding: 21px; }
}

/* SOFT 4K EXCLUSIVE — CINEMATIC DASHBOARD HERO */

.exclusive-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 245px;
  margin-bottom: 25px;
  padding: 38px 43px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse at 83% 45%,rgba(76,117,255,.32),transparent 50%),
    linear-gradient(125deg,#0c162b 0%,#15284c 65%,#1b3666 100%);
  box-shadow: 0 18px 48px rgba(20,39,80,.13);
}

.exclusive-hero::before {
  content: '';
  position: absolute;
  width: 370px;
  height: 370px;
  right: -105px;
  top: -95px;
  border: 1px solid rgba(170,196,255,.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(126,159,255,.035),
    0 0 0 104px rgba(126,159,255,.025);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a8c2f5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.hero-dot,
.hero-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6a9bff;
}

.exclusive-hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(27px,3.4vw,40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero-accent {
  color: #80a7ff;
}

.exclusive-hero p {
  max-width: 470px;
  margin: 0;
  color: #aabddd;
  font-size: 13px;
  line-height: 1.8;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding: 9px 13px;
  border: 1px solid rgba(183,210,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #cad9f5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-status-dot {
  background: #59dca5;
  box-shadow: 0 0 12px rgba(89,220,165,.35);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 155px;
  height: 155px;
  flex-shrink: 0;
  border-radius: 37px;
  transform: rotate(-9deg);
  background: linear-gradient(145deg,rgba(121,161,255,.2),rgba(70,110,220,.04));
  border: 1px solid rgba(160,194,255,.2);
  box-shadow: 0 20px 50px rgba(2,11,33,.16);
}

.hero-art-inner {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: linear-gradient(135deg,#749dff,#3158d7);
  color: #fff;
  font-size: 39px;
  box-shadow: 0 12px 35px rgba(48,95,235,.3);
}

@media (max-width:650px) {
  .exclusive-hero {
    min-height: 220px;
    padding: 29px 25px;
  }

  .hero-art {
    display: none;
  }

  .exclusive-hero h1 {
    font-size: 29px;
  }
}

.publish-success {
  margin: 0 0 20px;
  padding: 18px 22px;
  background: #eafaf2;
  color: #146b43;
  border: 1px solid #b9ebd1;
  border-radius: 12px;
  font-weight: 700;
}
