/* ==========================================================================
   ReelShort 1:1 Mobile-First Direct Download Landing Page
   Exact match with Official ReelShort Mobile Interface
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-red: #ea2b3e;
  --primary-gradient: linear-gradient(135deg, #ff2a44 0%, #eb2b3e 100%);
  --badge-orange: #f26227;
  --badge-gray: rgba(255, 255, 255, 0.22);
  --bg-black: #000000;
  --bg-card: #121319;
  --bg-bottom-bar: rgba(20, 22, 28, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-white: #ffffff;
  --text-sub: #9ea3b2;
  --text-muted: #6b7280;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container for Desktop / Tablet centered view */
.app-viewport {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-black);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  padding-bottom: 90px;
}

@media (min-width: 1024px) {
  .app-viewport {
    max-width: 540px;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   1. Header Navigation (Exact Match with Screenshot)
   ========================================================================== */
.top-nav-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 16px 6px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.header-left-btn, .header-icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.header-left-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.header-logo-center {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

/* Language Switcher Dropdown */
.lang-selector-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-select-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #181924;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 500;
  min-width: 130px;
}

.lang-dropdown-menu.show {
  display: flex;
}

.lang-option-item {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-option-item:hover, .lang-option-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-option-item.active {
  color: var(--primary-red);
}

/* ==========================================================================
   RTL (Arabic) Styles Support
   ========================================================================== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .header-top-row,
html[dir="rtl"] .subnav-tabs,
html[dir="rtl"] .shelf-title-bar,
html[dir="rtl"] .sticky-download-bar,
html[dir="rtl"] .feature-row,
html[dir="rtl"] .bar-text-two-lines {
  direction: rtl;
}

html[dir="rtl"] .badge-bottom-views {
  right: auto;
  left: 6px;
}

html[dir="rtl"] .badge-top-left-red {
  left: auto;
  right: 6px;
}

html[dir="rtl"] .ranking-big-num {
  margin-right: 0;
  margin-left: -16px;
}

html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .modal-close-icon {
  right: auto;
  left: 14px;
}

/* Subnav Category Tabs */
.subnav-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 4px;
}

.subnav-tab {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.subnav-tab.active {
  color: #fff;
  font-weight: 700;
}

.subnav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
}

/* ==========================================================================
   2. Full-Bleed Hero Area (Layered Smooth Crossfade Transition)
   ========================================================================== */
.hero-showcase {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 20px 24px;
  cursor: pointer;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hero-bg-layer.active {
  opacity: 1;
}

.hero-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.75) 75%, #000000 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 12px;
  max-width: 90%;
  transition: opacity 0.3s ease;
}

.hero-tags-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-badge-orange {
  background: var(--badge-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.tag-badge-gray {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.btn-reproducir-main {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 42px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
  transition: transform 0.15s ease;
}

.btn-reproducir-main:active {
  transform: scale(0.96);
}

.btn-reproducir-main svg {
  width: 18px;
  height: 18px;
  fill: #000;
}

/* Pagination Dash Indicators */
.carousel-dash-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dash-item {
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.dash-item.active {
  width: 22px;
  background: #ffffff;
}

/* ==========================================================================
   3. Shelves & Cards (Exact Match with Screenshot)
   ========================================================================== */
.shelves-wrapper {
  padding: 24px 16px 20px;
}

.shelf-block {
  margin-bottom: 28px;
}

.shelf-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.shelf-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shelf-ver-todo {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.shelf-horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.shelf-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* Individual Drama Card */
.short-card {
  flex: 0 0 138px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}

.card-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9/13.5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #181a24;
  margin-bottom: 8px;
}

.card-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.short-card:hover .card-thumb-box img {
  transform: scale(1.05);
}

.badge-top-left-red {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-bottom-views {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.badge-bottom-views svg {
  width: 10px;
  height: 10px;
  fill: #fff;
}

.card-caption-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-sub-category {
  font-size: 0.72rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   4. Top 10 Ranking Shelf (Signature 3D Numbers)
   ========================================================================== */
.ranking-short-card {
  flex: 0 0 175px;
  display: flex;
  align-items: flex-end;
  position: relative;
  cursor: pointer;
}

.ranking-big-num {
  font-family: 'Outfit', sans-serif;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -4px;
  color: #0b0c10;
  -webkit-text-stroke: 3px #2f3448;
  margin-right: -16px;
  z-index: 1;
  user-select: none;
}

.ranking-card-inner-box {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   5. Sticky Bottom Bar (Exact Match with Screenshot)
   ========================================================================== */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  z-index: 999;
  background: var(--bg-bottom-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.bar-icon-square {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234, 43, 62, 0.4);
}

.bar-icon-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar-text-two-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bar-text-two-lines span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.btn-abrir-red {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(234, 43, 62, 0.5);
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.btn-abrir-red:active {
  transform: scale(0.95);
}

/* ==========================================================================
   6. ReelShort Download Prompt Modal (Same Aesthetic)
   ========================================================================== */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.download-modal-card {
  background: linear-gradient(180deg, #1d1f2b 0%, #14151e 100%);
  border: 1px solid rgba(255, 42, 68, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(234, 43, 62, 0.25);
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  padding: 26px 22px 22px;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal-overlay.active .download-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.modal-close-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-drama-preview {
  width: 72px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1e202c;
}

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

.modal-prompt-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.modal-prompt-sub {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.4;
  margin-bottom: 16px;
}

.modal-features-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
}

.feature-row svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-red);
  flex-shrink: 0;
}

.btn-modal-download {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  width: 100%;
  padding: 13px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(234, 43, 62, 0.5);
  transition: transform 0.15s ease;
}

.btn-modal-download:active {
  transform: scale(0.97);
}

.btn-modal-download svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.modal-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   7. Download Trigger Animation Toast
   ========================================================================== */
.download-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #181a24;
  border: 1px solid var(--primary-red);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  font-weight: 700;
  pointer-events: none;
}

.download-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.download-toast svg {
  width: 20px;
  height: 20px;
  fill: var(--primary-red);
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

