:root{
  --bg:#0b0f17;
  --panel:#121826;
  --panel-2:#1a2335;
  --card:#161f2f;
  --line:#263249;
  --text:#eef3ff;
  --muted:#9fb0cc;
  --accent:#7c3aed;
  --accent-2:#2563eb;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#ef4444;
  --radius:18px;
  --shadow:0 18px 45px rgba(0,0,0,.32);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,.22), transparent 28%),
    radial-gradient(circle at top right, rgba(239,68,68,.18), transparent 25%),
    linear-gradient(180deg,#09111f 0%, #0b0f17 100%);
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
  min-height:100%;
}

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

a:hover{
  text-decoration:underline;
}

.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0 12px;
}

.topbar-shell{
  width:min(1120px, calc(100% - 80px));
  margin:0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:700;
}

.brand-badge{
  width:14px;
  height:14px;
  border-radius:5px;
  background:linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6);
  box-shadow:0 0 18px rgba(124,58,237,.55);
}

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

.nav a,
.nav button{
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--text);
  padding:9px 13px;
  border-radius:11px;
  cursor:pointer;
  font-size:15px;
}

.hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:22px;
  background:linear-gradient(135deg, rgba(22,32,50,.92), rgba(12,18,28,.92));
  border:1px solid rgba(255,255,255,.06);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
  min-height:320px;
}

.hero-left{
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-right{
  min-height:320px;
  background:
    linear-gradient(90deg, rgba(11,15,23,.88) 0%, rgba(11,15,23,.2) 26%, rgba(11,15,23,.05) 100%),
    url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#ffd56a;
  font-weight:700;
  margin-bottom:14px;
}

.hero h1{
  margin:0 0 12px 0;
  font-size:42px;
  line-height:1.06;
}

.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  max-width:680px;
}

.hero-actions{
  margin-top:22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  font-size:18px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  border-color:rgba(124,58,237,.45);
  box-shadow:0 12px 30px rgba(59,130,246,.20);
}

.btn-primary:hover{
  box-shadow:0 16px 34px rgba(59,130,246,.26);
}

.btn-secondary{
  color:var(--text);
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}

.btn-secondary:hover{
  background:rgba(255,255,255,.07);
  box-shadow:0 14px 30px rgba(0,0,0,.20);
}

.page-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:22px;
  margin-top:22px;
}

.card{
  background:linear-gradient(180deg, rgba(18,24,38,.92), rgba(15,21,33,.94));
  border:1px solid rgba(255,255,255,.06);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:24px;
}

.card h2, .card h3{
  margin-top:0;
}

.banner{
  display:flex;
  align-items:flex-start;
  gap:14px;
  border-radius:18px;
  padding:18px 18px;
  border:1px solid transparent;
}

.banner-active{
  background:rgba(22,163,74,.12);
  border-color:rgba(22,163,74,.38);
}

.banner-expired{
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.38);
}

.banner-unknown{
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.34);
}

.banner-icon{
  font-size:22px;
  line-height:1;
  margin-top:2px;
}

.banner strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
}

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

.meta-item{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}

.meta-label{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}

.meta-value{
  font-size:18px;
  font-weight:700;
  word-break:break-word;
}

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

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

.poster{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}

.poster-thumb{
  aspect-ratio:2/3;
  background:
    linear-gradient(180deg, rgba(124,58,237,.18), rgba(37,99,235,.05)),
    linear-gradient(135deg, #1d2638, #0f1726);
}

.poster-body{
  padding:12px;
}

.poster-title{
  font-size:14px;
  font-weight:700;
  margin:0 0 5px;
}

.poster-meta{
  font-size:12px;
  color:var(--muted);
  margin:0;
}

.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 0;
}

.login-grid{
  width:min(1120px, calc(100% - 32px));
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
}

.login-panel{
  background:linear-gradient(180deg, rgba(18,24,38,.94), rgba(15,21,33,.96));
  border:1px solid rgba(255,255,255,.06);
  border-radius:28px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.login-left{
  padding:34px;
}

.login-right{
  padding:34px;
  background:
    linear-gradient(180deg, rgba(10,14,22,.12), rgba(10,14,22,.48)),
    radial-gradient(circle at top left, rgba(124,58,237,.28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(59,130,246,.18), transparent 30%);
}
.login-dual-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
}

@media (max-width: 980px){
  .login-dual-grid{
    grid-template-columns:1fr;
  }
}
.form-grid{
  display:grid;
  gap:14px;
}

.form-row{
  display:grid;
  gap:8px;
}

.form-row label{
  color:#d8e1f4;
  font-weight:700;
}

.input{
  width:100%;
  min-height:48px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#0f1726;
  color:var(--text);
  padding:0 14px;
  outline:none;
}

.input:focus{
  border-color:#4f7cff;
  box-shadow:0 0 0 3px rgba(79,124,255,.14);
}

.divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:20px 0;
  color:var(--muted);
  font-weight:700;
}

.divider::before,
.divider::after{
  content:"";
  height:1px;
  background:var(--line);
  flex:1;
}

.flash{
  margin-bottom:16px;
  border-radius:16px;
  padding:14px 16px;
  font-weight:700;
}

.flash-error{
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.32);
}

.flash-ok{
  background:rgba(22,163,74,.12);
  border:1px solid rgba(22,163,74,.32);
}

.small{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}

@media (max-width: 980px){
  .hero,
  .page-grid,
  .login-grid{
    grid-template-columns:1fr;
  }

  .hero-right{
    min-height:220px;
  }

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

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

.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:36px;
  padding:0 12px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  font-size:14px;
}

.lang-switch a.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
}

.nav a.active{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  border-color:transparent;
}

