*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B0B0F;
  --surface: #13131A;
  --surface2: #1A1A24;
  --border: #1F1F2C;
  --accent: #E5096C;
  --accent2: #C2185B;
  --text: #F0F0F5;
  --muted: #8A8A9C;
  --error: #FF6B6B;
  --success: #4CAF82;
  --radius: 12px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

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

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11,11,15,0.96);
  backdrop-filter: blur(14px);
  z-index: 200;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 22px;
  height: 22px;
  display: block;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo::before {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
  background: url('/assets/logo-mark.svg') no-repeat center / contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}
.nav-btn:hover { opacity: 0.88; color: #fff !important; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* FORMS */
.field { margin-bottom: 18px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #C0C0CC;
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="password"],
textarea, select {
  width: 100%;
  background: #0D0D14;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 15px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; }
select option { background: #13131A; }

.msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 14px;
  display: none;
}
.msg.error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.25); color: var(--error); }
.msg.success { background: rgba(76,175,130,0.1); border: 1px solid rgba(76,175,130,0.25); color: var(--success); }

/* CARDS */
.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.movie-card:hover { transform: scale(1.04); box-shadow: 0 12px 40px rgba(229,9,108,0.2); }
.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.movie-card-thumb { position: relative; }
.progress-track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(255,255,255,0.22);
}
.progress-fill {
  height: 100%;
  background: var(--accent);
}
.movie-card-info {
  padding: 10px 12px;
}
.movie-card-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.movie-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* GRID */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* SECTION */
.section { padding: 48px 40px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title { font-size: 20px; font-weight: 700; }
.section-link { font-size: 13px; color: var(--accent); }

/* FOOTER */
footer {
  padding: 48px 40px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo { color: var(--accent); font-weight: 800; font-size: 22px; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-intro p { line-height: 1.6; max-width: 340px; color: var(--muted); }
.footer-col h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; margin: 0 0 11px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
}
@media (max-width: 768px) {
  footer { padding: 36px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-intro { grid-column: 1 / -1; }
}

/* SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* FILE DROP */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--accent);
  background: rgba(229,9,108,0.04);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop-icon { font-size: 28px; margin-bottom: 8px; }
.file-drop-label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.file-drop-label strong { color: var(--accent); }
.file-chosen { font-size: 12px; color: var(--success); margin-top: 6px; font-weight: 500; }

/* PROGRESS */
.progress-wrap { margin: 14px 0; display: none; }
.progress-track { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; width: 0%; transition: width 0.3s; }
.progress-label { font-size: 12px; color: var(--muted); margin-top: 5px; }

@media (max-width: 768px) {
  nav { padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .section { padding: 32px 18px; }
  .movies-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
}
