/* style.css - Main stylesheet for fantasyxvideo.com */

:root {
  --bg: #0e1a23;
  --bg-light: #07131c;
  --bg-card: #0a1822;
  --border: #1e2d3a;
  --text: #e6edf3;
  --text-dim: #8ba6b6;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

img { max-width: 100%; }

/* ============ HEADER ============ */
.site-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand-name { white-space: nowrap; }
.primary-nav { display: flex; gap: 16px; margin-left: 24px; }
.primary-nav a {
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.primary-nav a:hover, .primary-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.user-pill:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.btn-telegram {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.btn-telegram:hover { text-decoration: none; opacity: 0.9; }
.search-btn { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 10px; border-radius: 20px; }
.ticker { background: rgba(245, 158, 11, 0.1); border-top: 1px solid rgba(245, 158, 11, 0.3); padding: 6px 0; overflow: hidden; }
.ticker-inner { white-space: nowrap; padding: 0 20px; font-size: 13px; color: var(--orange); animation: ticker 30s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ CONTENT ============ */
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.page-heading {
  font-size: 24px;
  margin: 16px 0 20px;
  font-weight: 700;
}

/* ============ VIDEO GRID ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
  display: block;
  color: var(--text);
}
.video-card:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.thumb-wrap { position: relative; aspect-ratio: 16/9; background: var(--bg-light); overflow: hidden; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; bottom: 6px; right: 6px; background: rgba(0, 0, 0, 0.8); color: white; font-size: 11px; padding: 2px 6px; border-radius: 3px; font-weight: 500; }
.live-badge { position: absolute; top: 6px; left: 6px; background: var(--red); color: white; font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.card-body { padding: 10px; }
.card-title { font-size: 13px; margin: 0 0 6px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.cat-tag { background: rgba(59, 130, 246, 0.15); color: var(--primary); padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 500; }

/* ============ CATEGORY GRID ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin: 20px 0 30px;
  padding: 0;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  color: var(--text);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--primary); text-decoration: none; }
.cat-thumb { width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--bg-light); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-thumb-placeholder { font-size: 48px; color: var(--primary); opacity: 0.7; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; padding: 0 4px; }

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 10px; }
  .cat-name { font-size: 13px; }
}

/* ============ TABS ============ */
.tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.tab {
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}
.tab.active, .tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0; }
.page-btn {
  background: var(--bg-card);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: white; text-decoration: none; }

/* ============ WATCH PAGE ============ */
.watch-page { padding: 20px; max-width: 1200px; margin: 0 auto; }
.watch-wrap { display: flex; flex-direction: column; gap: 16px; }
.player { background: black; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; position: relative; }
.player video { width: 100%; height: 100%; }
.player-locked { position: relative; width: 100%; height: 100%; background: black; }
.player-locked img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; background: rgba(0, 0, 0, 0.6); }
.lock-overlay h2 { margin: 0 0 10px; font-size: 22px; color: var(--orange); }
.lock-overlay p { margin: 0 0 16px; color: var(--text); }
.watch-info h1 { font-size: 22px; margin: 0 0 8px; }
.watch-meta { display: flex; gap: 12px; color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.description { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ============ AUTH PAGES ============ */
.auth-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 100%; max-width: 380px; }
.auth-card h1 { margin: 0 0 20px; font-size: 24px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-dim); }
.auth-form input { padding: 10px 12px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 16px; }
.auth-error { color: var(--red); font-size: 13px; margin-top: 8px; text-align: center; }

/* ============ MEMBERSHIP ============ */
.membership-page { padding: 20px; max-width: 1200px; margin: 0 auto; }
.page-hero { text-align: center; padding: 20px 0 30px; }
.page-hero h1 { font-size: 32px; margin: 0 0 8px; }
.page-hero p { color: var(--text-dim); font-size: 15px; }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.package-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-light));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
}
.pkg-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.package-card h3 { font-size: 18px; margin: 8px 0; }
.pkg-price { font-size: 28px; font-weight: 700; color: var(--green); margin: 8px 0; }
.pkg-duration { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.pkg-desc { color: var(--text-dim); font-size: 13px; margin: 12px 0; }
.pkg-buy { width: 100%; margin-top: 12px; }

/* ============ ACCOUNT ============ */
.account-page { padding: 20px; max-width: 1200px; margin: 0 auto; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.account-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.account-card h2 { margin: 0 0 12px; font-size: 18px; }
.account-card p { color: var(--text-dim); margin: 8px 0; font-size: 14px; }
.account-card.upgrade { border-color: var(--orange); background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--bg-card)); }
.account-card.premium-active { border-color: var(--green); background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), var(--bg-card)); }

/* ============ REMOVAL ============ */
.removal-page { padding: 20px; max-width: 700px; margin: 0 auto; }
.removal-page p { color: var(--text-dim); margin-bottom: 16px; }
.removal-form { display: flex; flex-direction: column; gap: 12px; }
.removal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-dim); }
.removal-result { margin-top: 16px; }
.removal-result .success { background: rgba(34, 197, 94, 0.1); color: var(--green); padding: 12px; border-radius: 8px; border: 1px solid var(--green); }
.removal-result .error { background: rgba(239, 68, 68, 0.1); color: var(--red); padding: 12px; border-radius: 8px; }

/* ============ CATEGORY SELECTED HEADER ============ */
.cat-selected-header { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.back-to-cats { color: var(--primary); font-size: 14px; font-weight: 500; }
.selected-cat-title { margin: 0; font-size: 20px; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-light); border-top: 1px solid var(--border); padding: 20px; margin-top: 40px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); font-size: 14px; }

/* ============ NATIVE AD CARD ============ */
.native-ad-card {
  background: var(--bg-card);
  border: 1px dashed var(--orange);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.ad-frame { width: 100%; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; }
  .header-right { margin-left: auto; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ============ ADMIN PANEL ============ */
.admin-layout { display: flex; min-height: 100vh; background: #07131c; color: #e6edf3; }
.admin-sidebar { width: 220px; background: #0e1a23; border-right: 1px solid #1e2d3a; display: flex; flex-direction: column; padding: 16px 0; }
.admin-brand { padding: 0 16px 20px; border-bottom: 1px solid #1e2d3a; margin-bottom: 16px; }
.admin-brand h2 { margin: 0; font-size: 16px; color: #3b82f6; }
.admin-brand small { font-size: 10px; color: #8ba6b6; letter-spacing: 1px; }
.admin-nav { flex: 1; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #8ba6b6; font-size: 13px; cursor: pointer; }
.admin-nav-item:hover { background: rgba(255,255,255,0.03); color: #e6edf3; text-decoration: none; }
.admin-nav-item.active { background: rgba(59,130,246,0.1); color: #3b82f6; border-left: 3px solid #3b82f6; padding-left: 13px; }
.nav-icon { width: 18px; }
.admin-sidebar-foot { border-top: 1px solid #1e2d3a; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-foot-link { background: transparent; border: 1px solid #1e2d3a; color: #8ba6b6; padding: 6px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; text-align: center; display: block; }
.admin-foot-link:hover { background: rgba(255,255,255,0.05); color: #e6edf3; text-decoration: none; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #0a1822; border-bottom: 1px solid #1e2d3a; }
.hamburger { background: transparent; border: none; color: #e6edf3; font-size: 18px; display: none; }
.admin-topbar-spacer { flex: 1; }
.admin-badge { color: #22c55e; font-size: 12px; font-weight: 600; }
.admin-link { color: #3b82f6; font-size: 13px; }
.admin-user { color: #8ba6b6; font-size: 13px; }
.admin-content { flex: 1; padding: 24px; overflow-y: auto; }
.admin-title h1 { font-size: 24px; margin: 0 0 8px; }
.admin-title p { color: #8ba6b6; margin: 0 0 20px; font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-stat { background: #0e1a23; border: 1px solid #1e2d3a; border-radius: 8px; padding: 14px; }
.admin-stat span { display: block; font-size: 11px; color: #8ba6b6; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-stat b { font-size: 24px; color: #3b82f6; }
.admin-panel { background: #0e1a23; border: 1px solid #1e2d3a; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.admin-panel h2 { font-size: 16px; margin: 0 0 12px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #8ba6b6; font-weight: 600; }
.admin-form-grid label.full { grid-column: 1 / -1; }
.admin-form-grid input, .admin-form-grid textarea, .admin-form-grid select { background: #07131c; border: 1px solid #1e2d3a; color: #e6edf3; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.admin-form-grid .admin-btn { grid-column: 1 / -1; }
.admin-btn { background: #1e2d3a; color: #e6edf3; border: none; padding: 8px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 500; }
.admin-btn:hover { background: #2a3a4a; }
.admin-btn.primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.admin-btn.danger { background: #ef4444; color: white; }
.admin-btn.full { width: 100%; }
.admin-toolbar { display: flex; gap: 12px; margin-bottom: 12px; }
.admin-search input { background: #07131c; border: 1px solid #1e2d3a; color: #e6edf3; padding: 8px 12px; border-radius: 6px; font-size: 13px; min-width: 280px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 12px; color: #8ba6b6; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #1e2d3a; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #1e2d3a; }
.status-pill { background: #1e2d3a; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-pill.active { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-pill.off { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.mini-actions { display: flex; gap: 6px; }
.mini-actions .admin-btn { padding: 4px 10px; font-size: 11px; }

.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #07131c; }
.admin-login-form { background: #0e1a23; border: 1px solid #1e2d3a; border-radius: 12px; padding: 32px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.admin-login-form h1 { margin: 0 0 8px; text-align: center; font-size: 22px; color: #3b82f6; }
.admin-login-form input { background: #07131c; border: 1px solid #1e2d3a; color: #e6edf3; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.admin-login-form .btn-primary { width: 100%; padding: 10px; }
.back-link { color: #8ba6b6; font-size: 12px; text-align: center; margin-top: 8px; }

.admin-editor-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.admin-editor-modal { background: #0e1a23; border-radius: 12px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.admin-editor-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid #1e2d3a; }
.admin-editor-head small { font-size: 10px; color: #3b82f6; text-transform: uppercase; }
.admin-editor-head h2 { margin: 4px 0 0; font-size: 18px; }
.admin-editor-close { background: transparent; border: none; color: #8ba6b6; font-size: 24px; cursor: pointer; }
.admin-editor-form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.admin-editor-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #8ba6b6; font-weight: 600; }
.admin-editor-form input, .admin-editor-form textarea { background: #07131c; border: 1px solid #1e2d3a; color: #e6edf3; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.admin-editor-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #1e2d3a; }
.check-row { flex-direction: row !important; align-items: center; gap: 6px !important; }
.check-row input[type=checkbox] { width: auto; }
.media-limit-note { color: #8ba6b6; font-size: 11px; }

.admin-packages { display: flex; flex-direction: column; gap: 8px; }
.pkg-edit-row { display: grid; grid-template-columns: 30px 1fr 100px 120px; gap: 8px; align-items: center; }
.pkg-num { background: #3b82f6; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.pkg-edit-row input { background: #07131c; border: 1px solid #1e2d3a; color: #e6edf3; padding: 6px 8px; border-radius: 6px; font-size: 13px; }

.toast { position: fixed; bottom: 20px; right: 20px; background: #22c55e; color: white; padding: 12px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 2000; opacity: 0; transition: opacity 0.3s; }
.toast.error { background: #ef4444; }
.toast.show { opacity: 1; }

@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; position: fixed; left: -100%; top: 0; bottom: 0; z-index: 100; transition: left 0.3s; }
  .admin-sidebar.mobile-open { left: 0; }
  .hamburger { display: block; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* v1.1 admin additions */
.admin-select { background: #07131c; border: 1px solid #1e2d3a; color: #e6edf3; padding: 8px 12px; border-radius: 6px; font-size: 13px; min-width: 160px; }
.cat-tag-mini { background: rgba(59,130,246,0.15); color: #3b82f6; padding: 2px 6px; border-radius: 3px; font-size: 11px; font-weight: 500; }
.status-pill.premium { background: rgba(245,158,11,0.2); color: #f59e0b; }
.status-pill.free { background: rgba(34,197,94,0.2); color: #22c55e; }
.status-pill.video { background: rgba(139,166,182,0.2); color: #8ba6b6; }
.status-pill.pending { background: rgba(245,158,11,0.2); color: #f59e0b; }

/* ============ UPLOAD PROGRESS BAR ============ */
.upload-progress {
  position: relative;
  width: 100%;
  height: 28px;
  background: rgba(139,166,182,0.15);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0;
}
.upload-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #ff5577, #ff7799);
  transition: width 0.15s ease-out;
}
.upload-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.upload-progress-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139,166,182,0.15);
}

/* ============ THUMBNAIL MODE TOGGLE ============ */
.thumb-mode-selector {
  margin: 8px 0;
}
.thumb-mode-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.thumb-mode-toggle label {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(139,166,182,0.08);
  border: 1px solid rgba(139,166,182,0.15);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.thumb-mode-toggle label:hover { background: rgba(139,166,182,0.15); }
.thumb-mode-toggle input:checked + span {
  color: #ff5577;
  font-weight: 600;
}

.thumb-auto-status {
  font-size: 12px;
  color: #8ba6b6;
  margin: 6px 0;
}
.thumb-preview {
  min-height: 60px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 6px;
}
.thumb-controls {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ============ BULK UPLOAD ============ */
.bulk-upload-panel {
  background: linear-gradient(135deg, rgba(255,85,119,0.05), rgba(255,119,153,0.03));
  border-left: 4px solid #ff5577;
}
.bulk-file-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 8px 0;
  padding: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}
.bulk-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.bulk-file-item:hover { background: rgba(139,166,182,0.08); }
.bulk-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cbd5e1;
}
.bulk-file-size {
  color: #8ba6b6;
  font-size: 11px;
}
.bulk-log {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 12px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
}
.bulk-log-item { padding: 2px 0; }
.bulk-log-item.ok { color: #22c55e; }
.bulk-log-item.err { color: #ef4444; }
.bulk-log-item.warn { color: #f59e0b; }
