/* ============================================
   NEWS ADMIN - STYLES
   Enhanced with Video/PGN Support
   ============================================ */

:root {
  --admin-primary: #ff8c00;
  --admin-primary-dark: #ff6b00;
  --admin-accent-purple: #a78bfa;
  --admin-accent-green: #10b981;
  --admin-accent-blue: #3b82f6;
  --admin-accent-red: #ef4444;
  --admin-bg-dark: #0a0a0f;
  --admin-bg-card: #12121a;
  --admin-bg-card-hover: #1a1a24;
  --admin-border: #2a2a3a;
  --admin-text: #ffffff;
  --admin-text-muted: #a0a0a0;
  --admin-text-dim: #6a6a7a;
}

/* ============================================
   ADMIN HEADER
   ============================================ */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.admin-badge {
  background: rgba(255, 140, 0, 0.15);
  color: var(--admin-primary);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

/* ============================================
   ADMIN BUTTONS
   ============================================ */

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn.primary {
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-dark));
  color: #000;
}

.admin-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

.admin-btn.secondary {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
}

.admin-btn.secondary:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.admin-btn.danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--admin-accent-red);
}

.admin-btn.danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ============================================
   STATS CONTAINER
   ============================================ */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 140, 0, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-icon.purple { background: rgba(167, 139, 250, 0.15); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); }

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--admin-text);
}

/* ============================================
   FILTER SECTION
   ============================================ */

.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.filter-tab.active {
  background: rgba(255, 140, 0, 0.15);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

/* ============================================
   ADMIN ARTICLES LIST
   ============================================ */

.admin-articles-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-article-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 15px;
  transition: border-color 0.2s ease;
}

.admin-article-card:hover {
  border-color: var(--admin-border);
}

.admin-article-card .article-thumbnail {
  position: relative;
  width: 150px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0f;
}

.admin-article-card .article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-article-card .thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #1a1a24, #12121a);
}

.admin-article-card .video-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--admin-primary);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.admin-article-card .article-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-article-card .article-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.4;
}

.admin-article-card .article-excerpt {
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-article-card .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.admin-article-card .meta-item {
  font-size: 12px;
  color: var(--admin-text-dim);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.published {
  background: rgba(16, 185, 129, 0.15);
  color: var(--admin-accent-green);
}

.status-badge.draft {
  background: rgba(59, 130, 246, 0.15);
  color: var(--admin-accent-blue);
}

.status-badge.scheduled {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.status-badge.featured {
  background: rgba(167, 139, 250, 0.15);
  color: var(--admin-accent-purple);
}

/* Article Actions */
.admin-article-card .article-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: var(--admin-text-muted);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.action-btn.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--admin-accent-green);
}

.action-btn.success:hover {
  background: rgba(16, 185, 129, 0.25);
}

.action-btn.featured {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--admin-accent-purple);
}

.action-btn.featured:hover {
  background: rgba(167, 139, 250, 0.25);
}

.action-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--admin-accent-red);
}

.action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--admin-bg-card);
  border: 1px dashed var(--admin-border);
  border-radius: 12px;
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--admin-text);
}

.empty-state p {
  color: var(--admin-text-muted);
  margin-bottom: 20px;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 24px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-text);
}

.modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid var(--admin-border);
}

.modal-tabs {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid var(--admin-border);
}

.modal-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--admin-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab:hover {
  color: var(--admin-text);
}

.modal-tab.active {
  color: var(--admin-primary);
  border-bottom-color: var(--admin-primary);
}

/* ============================================
   FORM LAYOUT (CREATE/EDIT)
   ============================================ */

.admin-form-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

.form-sections {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-section {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 25px;
}

.form-section .section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--admin-text);
}

.form-section .section-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 20px;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--admin-accent-red);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--admin-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.char-counter {
  text-align: right;
  font-size: 11px;
  color: var(--admin-text-dim);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-primary);
}

.checkbox-group label {
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}

/* ============================================
   VIDEO SELECTOR
   ============================================ */

.video-selector {
  position: relative;
}

.video-selector-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.video-selector-trigger:hover,
.video-selector-trigger.open {
  border-color: var(--admin-primary);
}

.video-selector-trigger .placeholder {
  color: var(--admin-text-muted);
  font-size: 14px;
}

.dropdown-arrow {
  color: var(--admin-text-muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.video-selector-trigger.open .dropdown-arrow {
  transform: rotate(180deg);
}

.selected-video {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-video-thumb {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0f;
}

.selected-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-video-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text);
  margin-bottom: 2px;
}

.selected-video-info span {
  font-size: 12px;
  color: var(--admin-text-muted);
}

/* Video Dropdown */
.video-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  margin-top: 5px;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
}

.video-dropdown.open {
  display: block;
}

.dropdown-search {
  padding: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.dropdown-search input {
  width: 100%;
  padding: 10px 12px;
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: var(--admin-text);
  font-size: 13px;
}

.dropdown-search input:focus {
  outline: none;
  border-color: var(--admin-primary);
}

.video-list {
  max-height: 300px;
  overflow-y: auto;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}

.video-item:hover {
  background: var(--admin-bg-card-hover);
}

.video-item.selected {
  background: rgba(255, 140, 0, 0.1);
}

.video-item-thumbnail {
  position: relative;
  width: 80px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0f;
  flex-shrink: 0;
}

.video-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-item-thumbnail .no-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.video-item-thumbnail .duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  color: #fff;
}

.video-item-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-item-info .meta {
  font-size: 11px;
  color: var(--admin-text-dim);
}

.video-item .check-mark {
  position: absolute;
  right: 12px;
  color: var(--admin-primary);
  font-size: 16px;
}

.dropdown-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--admin-border);
  text-align: center;
}

.clear-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: var(--admin-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  border-color: var(--admin-accent-red);
  color: var(--admin-accent-red);
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--admin-text-muted);
  font-size: 13px;
}

/* ============================================
   THUMBNAIL SECTION
   ============================================ */

.thumbnail-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px;
  background: #0a0a0f;
  border: 2px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-option:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.type-option.active {
  border-color: var(--admin-primary);
  background: rgba(255, 140, 0, 0.1);
  color: var(--admin-primary);
}

.type-option .icon {
  font-size: 24px;
}

.type-option span:last-child {
  font-size: 13px;
  font-weight: 500;
}

.thumbnail-preview {
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-preview .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 140, 0, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #000;
}

.no-video-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--admin-text-dim);
  font-size: 13px;
}

/* Image Upload */
.image-upload-container {
  margin-top: 15px;
}

.upload-zone {
  border: 2px dashed var(--admin-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-zone:hover {
  border-color: var(--admin-primary);
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.upload-label .icon {
  font-size: 32px;
}

.upload-label .hint {
  font-size: 11px;
  color: var(--admin-text-dim);
}

.url-input-group {
  margin-top: 15px;
}

.or-divider {
  display: block;
  text-align: center;
  color: var(--admin-text-dim);
  font-size: 12px;
  margin-bottom: 10px;
}

.custom-image-preview {
  position: relative;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.custom-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-image-preview .remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-image-preview .remove-btn:hover {
  background: var(--admin-accent-red);
}

/* ============================================
   EDITOR TOOLBAR
   ============================================ */

.editor-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  color: var(--admin-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

/* Editor Media Blocks */
.editor-media-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.editor-media-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 10px;
  position: relative;
}

.editor-media-block .remove-block {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: var(--admin-accent-red);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.editor-media-block .media-preview {
  position: relative;
  width: 80px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a24;
  flex-shrink: 0;
}

.editor-media-block .media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-media-block .media-preview .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.editor-media-block .media-type-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: var(--admin-primary);
  color: #000;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
}

.editor-media-block .media-info {
  flex: 1;
  min-width: 0;
}

.editor-media-block .media-info h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--admin-text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-media-block .media-info input {
  width: 100%;
  padding: 6px 10px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  color: var(--admin-text);
  font-size: 12px;
}

/* ============================================
   PGN FILES SECTION
   ============================================ */

.pgn-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pgn-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
}

.pgn-file-item .file-icon {
  font-size: 18px;
}

.pgn-file-item .file-name {
  font-size: 13px;
  color: var(--admin-text);
}

/* ============================================
   PREVIEW PANEL
   ============================================ */

.preview-panel {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.preview-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.device-toggle {
  display: flex;
  gap: 5px;
}

.device-btn {
  padding: 6px 12px;
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 5px;
  color: var(--admin-text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-btn:hover {
  border-color: var(--admin-primary);
}

.device-btn.active {
  background: rgba(255, 140, 0, 0.15);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.preview-container {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.preview-container.mobile {
  max-width: 320px;
  margin: 0 auto 20px;
}

.preview-card {
  background: #0a0a0f;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  overflow: hidden;
}

.preview-media {
  aspect-ratio: 16 / 10;
  background: #1a1a24;
  position: relative;
  overflow: hidden;
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-media .placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.preview-media .preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--admin-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
}

.preview-content {
  padding: 15px;
}

.preview-date {
  font-size: 11px;
  color: var(--admin-text-dim);
  margin-bottom: 8px;
  display: block;
}

.preview-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.preview-excerpt {
  font-size: 12px;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

/* Publish Section */
.publish-section {
  background: var(--admin-bg-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
}

.publish-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-row .label {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.publish-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.publish-actions .admin-btn {
  width: 100%;
  justify-content: center;
}

/* Modal Video Selector */
.modal-video-selector,
.modal-image-upload {
  display: none;
}

.modal-video-selector.active,
.modal-image-upload.active {
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .admin-form-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
    order: -1;
  }
  
  .preview-container.mobile {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .admin-article-card {
    grid-template-columns: 120px 1fr;
  }

  .admin-article-card .article-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .admin-btn {
    flex: 1;
    justify-content: center;
  }

  .admin-article-card {
    grid-template-columns: 1fr;
  }

  .admin-article-card .article-thumbnail {
    width: 100%;
    height: 150px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .thumbnail-type-toggle {
    grid-template-columns: 1fr;
  }
}
