/* ========================================================
   DELTEXT.UZ / FOLDER / 02 - LUXURY GOLDEN BOURBON PORTAL 3.0
   100% PURE CUSTOM VANILLA CSS (NO BOOTSTRAP, ZERO LIBS)
   Palette: Imperial Gold & Deep Velvet Espresso (Amber & Bourbon)
   Architecture: High-Impact Hero Cinema + 2-Column Media Portal Grid
   ======================================================== */

:root {
  /* Core Dark Theme: Roasted Espresso Velvet & Luminous Amber Gold */
  --bg-body: #0d0703;
  --bg-gradient: radial-gradient(ellipse 90% 50% at 50% -5%, #3a1d0d 0%, #1c0e06 50%, #0d0703 100%);
  
  /* Cards & Surfaces */
  --card-bg: linear-gradient(155deg, rgba(38, 20, 10, 0.94) 0%, rgba(20, 10, 5, 0.98) 100%);
  --card-bg-subtle: rgba(28, 14, 7, 0.85);
  --card-bg-hover: linear-gradient(155deg, rgba(55, 29, 14, 0.96) 0%, rgba(28, 14, 7, 0.98) 100%);
  --card-border: rgba(245, 158, 11, 0.28);
  --card-border-glow: rgba(250, 204, 21, 0.65);
  
  /* Yellow & Golden Accents */
  --gold-primary: #facc15;
  --gold-bright: #fde047;
  --gold-amber: #f59e0b;
  --gold-deep: #d97706;
  --gold-glow: rgba(250, 204, 21, 0.4);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
  
  /* Warm Brown Spectrum */
  --brown-darkest: #0a0502;
  --brown-deep: #160c06;
  --brown-surface: #261309;
  --brown-border: #78350f;
  --brown-light: #92400e;
  --brown-warm: #a16207;
  
  /* Typography */
  --text-main: #fefce8;
  --text-gold: #fde047;
  --text-muted: #d6baa2;
  --text-dark: #1f1208;
  
  /* UI Elements */
  --badge-bg: rgba(250, 204, 21, 0.15);
  --badge-border: rgba(250, 204, 21, 0.45);
  --badge-text: #fde047;
  
  /* Shadows */
  --shadow-lg: 0 16px 45px -5px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(245, 158, 11, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(250, 204, 21, 0.35);
  
  --radius-card: 18px;
  --radius-item: 12px;
  --radius-btn: 10px;
}

/* Light / Honey Champagne Cream Mode */
[data-theme="light"] {
  --bg-body: #fdfaf3;
  --bg-gradient: radial-gradient(ellipse 90% 50% at 50% -5%, #fef3c7 0%, #faf3e0 45%, #fdfaf3 100%);
  
  --card-bg: #ffffff;
  --card-bg-subtle: #fcf8ee;
  --card-bg-hover: #fffdf5;
  --card-border: #fde68a;
  --card-border-glow: #d97706;
  
  --gold-primary: #b45309;
  --gold-bright: #92400e;
  --gold-amber: #d97706;
  --gold-deep: #78350f;
  --gold-glow: rgba(217, 119, 6, 0.25);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  
  --brown-darkest: #241206;
  --brown-deep: #381c0b;
  --brown-surface: #fef8eb;
  --brown-border: #fcd34d;
  --brown-light: #78350f;
  
  --text-main: #231207;
  --text-gold: #92400e;
  --text-muted: #6b4c37;
  --text-dark: #ffffff;
  
  --badge-bg: #fef3c7;
  --badge-border: #facc15;
  --badge-text: #92400e;
  
  --shadow-lg: 0 12px 35px -5px rgba(120, 53, 15, 0.12), 0 4px 16px rgba(245, 158, 11, 0.1);
  --shadow-md: 0 4px 14px rgba(120, 53, 15, 0.08);
  --shadow-gold: 0 0 15px rgba(217, 119, 6, 0.2);
}

/* ========================================================
   BASE RESETS
   ======================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-body) var(--bg-gradient) no-repeat fixed !important;
  color: var(--text-main) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   MAIN CONTAINER
   ======================================================== */
.portal-container {
  max-width: 1380px;
  width: 95%;
  margin: 0 auto;
  padding: 12px 0 70px;
}

/* ========================================================
   VIP TOP TICKER & THEME UTILITY BAR
   ======================================================== */
.vip-top-ticker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: rgba(28, 14, 7, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .vip-top-ticker {
  background: rgba(255, 255, 255, 0.92);
}

.ticker-left-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold-bright);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #22c55e; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticker-sep {
  opacity: 0.4;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 800;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* ========================================================
   HERO BRANDING & SEARCH BAR
   ======================================================== */
.portal-hero {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.hero-logo-box {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.hero-logo-box:hover {
  transform: scale(1.02);
}

.hero-logo-box img {
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(250, 204, 21, 0.3));
}

.hero-subtitle-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 22px;
  background: rgba(38, 20, 10, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-subtitle-bar {
  background: #ffffff;
  color: var(--gold-primary);
}

/* Hero Stats Counter Bar */
.hero-counters-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-counter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.hero-counter-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  color: var(--gold-primary);
}

.counter-icon {
  font-size: 16px;
}

/* Fast Search Bar */
.search-wrapper-hero {
  max-width: 640px;
  margin: 0 auto 22px;
  position: relative;
}

.search-input-hero {
  width: 100%;
  padding: 14px 22px 14px 50px;
  background: rgba(26, 13, 7, 0.95);
  border: 2px solid var(--card-border);
  border-radius: 30px;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .search-input-hero {
  background: #ffffff;
  color: var(--text-main);
  border-color: #fcd34d;
}

.search-input-hero:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px var(--gold-glow);
}

.search-icon-hero {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  opacity: 0.8;
}

/* ========================================================
   FEATURED SPOTLIGHT: 2 CINEMA STREAM PLAYERS (TOP STAGE)
   ======================================================== */
.cinema-stage-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cinema-stage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.cinema-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-bright);
}

.stage-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.stage-live-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseLive 1.5s infinite;
}

.cinema-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.screen-player-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.screen-player-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 35px rgba(250, 204, 21, 0.35);
}

.screen-player-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.screen-player-card:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.player-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(245, 158, 11, 0.92);
  color: #1a0d05;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.8);
  transition: all 0.3s ease;
  pointer-events: none;
}

.screen-player-card:hover .player-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--gold-bright);
}

.player-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(10, 5, 2, 0.95), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fefce8;
}

.player-duration-tag {
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--gold-bright);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

/* ========================================================
   INTERACTIVE CATEGORY FILTER PILLS
   ======================================================== */
.portal-tabs-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.portal-tabs-nav::-webkit-scrollbar {
  display: none;
}

.portal-tab-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.portal-tab-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.portal-tab-pill.active {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
}

.pill-count-chip {
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.portal-tab-pill.active .pill-count-chip {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* ========================================================
   MAIN 2-COLUMN PORTAL ARCHITECTURE
   ======================================================== */
.portal-main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1080px) {
  .portal-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   CONTENT SECTIONS & CARDS
   ======================================================== */
.content-section-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.section-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--gold-bright);
}

[data-theme="light"] .section-headline {
  color: var(--gold-primary);
}

.section-count-tag {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

/* ========================================================
   RICH MEDIA CARDS: .MOV VIDEOS (3-Column Grid)
   ======================================================== */
.media-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .media-cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .media-cards-grid-3 {
    grid-template-columns: 1fr;
  }
}

.media-video-card {
  background: rgba(22, 11, 5, 0.85);
  border: 1px solid rgba(120, 53, 15, 0.5);
  border-radius: var(--radius-item);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .media-video-card {
  background: #fffdf7;
  border-color: #fed7aa;
}

.media-video-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.3);
  background: rgba(35, 18, 9, 0.95);
}

.card-icon-frame {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 204, 21, 0.1);
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  transition: all 0.2s ease;
}

.media-video-card:hover .card-icon-frame {
  transform: scale(1.08);
  background: rgba(250, 204, 21, 0.2);
  border-color: var(--gold-primary);
}

.card-icon-frame img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 5px;
}

.media-video-card:hover .card-item-title {
  color: var(--gold-bright);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-action-btn {
  width: 100%;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

[data-theme="light"] .card-action-btn {
  background: #fef3c7;
  color: var(--gold-primary);
}

.media-video-card:hover .card-action-btn {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ========================================================
   RICH MEDIA CARDS: .JPEG PHOTOS (3-Column Grid)
   ======================================================== */
.media-photo-card {
  background: rgba(22, 11, 5, 0.85);
  border: 1px solid rgba(120, 53, 15, 0.5);
  border-radius: var(--radius-item);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .media-photo-card {
  background: #fffdf7;
  border-color: #fed7aa;
}

.media-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.3);
  background: rgba(35, 18, 9, 0.95);
}

.media-photo-card:hover .card-item-title {
  color: var(--gold-bright);
}

.media-photo-card:hover .card-action-btn {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-bright);
}

/* ========================================================
   DIRECT DOWNLOAD VAULT (2-Column Action Cards)
   ======================================================== */
.direct-downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .direct-downloads-grid {
    grid-template-columns: 1fr;
  }
}

.download-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(24, 12, 6, 0.9);
  border: 1px solid rgba(120, 53, 15, 0.6);
  border-radius: var(--radius-item);
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .download-action-card {
  background: #fffdf7;
  border-color: #fed7aa;
}

.download-action-card:hover {
  border-color: var(--gold-primary);
  background: rgba(38, 19, 9, 0.95);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
}

.download-left-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-server-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold-bright);
}

.download-file-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.download-action-card:hover .download-file-name {
  color: var(--gold-bright);
}

.download-meta-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.download-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.download-action-card:hover .download-cta-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.5);
}

/* ========================================================
   ARCHIVES: ZIP (28) & RAR (42) GRID
   ======================================================== */
.archive-vault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .archive-vault-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .archive-vault-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.archive-pack-card {
  background: rgba(22, 11, 5, 0.85);
  border: 1px solid rgba(120, 53, 15, 0.5);
  border-radius: var(--radius-item);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

[data-theme="light"] .archive-pack-card {
  background: #fffdf7;
  border-color: #fed7aa;
}

.archive-pack-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  background: rgba(38, 19, 9, 0.95);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.28);
}

.archive-pack-card .card-icon-frame {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.archive-pack-card .card-icon-frame img {
  width: 32px;
  height: 32px;
}

.archive-format-chip {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  margin-top: 6px;
}

.chip-zip {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.chip-rar {
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ========================================================
   RIGHT SIDEBAR WIDGETS
   ======================================================== */
.sidebar-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 20px;
}

.sidebar-widget-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.widget-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--gold-bright);
}

[data-theme="light"] .widget-title {
  color: var(--gold-primary);
}

/* MPEG & Bonus Items List */
.sidebar-media-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-media-list::-webkit-scrollbar {
  width: 5px;
}

.sidebar-media-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.sidebar-media-list::-webkit-scrollbar-thumb {
  background: var(--gold-amber);
  border-radius: 10px;
}

.sidebar-media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(22, 11, 5, 0.8);
  border: 1px solid rgba(120, 53, 15, 0.5);
  border-radius: 10px;
  transition: all 0.2s ease;
}

[data-theme="light"] .sidebar-media-row {
  background: #fffdf7;
  border-color: #fed7aa;
}

.sidebar-media-row:hover {
  border-color: var(--gold-primary);
  transform: translateX(3px);
  background: rgba(38, 19, 9, 0.95);
}

.sidebar-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-row-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sidebar-row-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.sidebar-media-row:hover .sidebar-row-title {
  color: var(--gold-bright);
}

.sidebar-row-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Free Galleries Directory (Sidebar Scrollable) */
.gallery-links-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-links-stack::-webkit-scrollbar {
  width: 5px;
}

.gallery-links-stack::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.gallery-links-stack::-webkit-scrollbar-thumb {
  background: var(--gold-amber);
  border-radius: 10px;
}

.gallery-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(20, 10, 5, 0.8);
  border: 1px solid rgba(120, 53, 15, 0.45);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

[data-theme="light"] .gallery-sidebar-item {
  background: #fffdf7;
  border-color: #fed7aa;
}

.gallery-sidebar-item:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  background: rgba(38, 19, 9, 0.95);
  transform: translateX(3px);
}

.gallery-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-item-left img {
  width: 16px;
  height: 16px;
}

.gallery-rating-chip {
  font-size: 11px;
  color: #fbbf24;
}

/* Server Status Widget */
.server-stats-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 1px solid rgba(120, 53, 15, 0.3);
}

.server-stat-val {
  color: #4ade80;
  font-weight: 800;
}

/* ========================================================
   POPULAR SEARCHES (SEO KEYWORDS SECTION)
   ======================================================== */
.seo-keyword-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-top: 10px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}

.keyword-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.keyword-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(24, 12, 6, 0.9);
  border: 1px solid rgba(120, 53, 15, 0.6);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s ease;
}

[data-theme="light"] .keyword-pill-tag {
  background: #ffffff;
  border-color: #fde68a;
  color: var(--brown-deep);
}

.keyword-pill-tag:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ========================================================
   LEGAL FOOTER & DISCLAIMER
   ======================================================== */
.portal-legal-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--card-border);
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-text-p {
  max-width: 900px;
  margin: 0 auto 16px;
  opacity: 0.85;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  color: var(--gold-bright);
}

[data-theme="light"] .footer-links-row {
  color: var(--gold-primary);
}

.footer-links-row a:hover {
  text-decoration: underline;
  color: var(--gold-primary);
}

/* ========================================================
   FLOATING BACK TO TOP
   ======================================================== */
.back-to-top-floating {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  z-index: 999;
  transition: all 0.25s ease;
}

.back-to-top-floating:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 26px rgba(250, 204, 21, 0.7);
}