/* =============================================
   BRKOLOGENUSH — Premium Sports & Drama Hub
   Main Stylesheet
   ============================================= */

/* ——— FONT AWESOME ICON SIZING ——— */

.live-pip {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-right: 1px;
}

.stars .fa-solid.fa-star  { color: #ffc107; font-size: 10px; }
.stars .fa-regular.fa-star { color: #555570; font-size: 10px; }

.nav-icon i          { font-size: 18px; }
.notif-btn i         { font-size: 14px; color: var(--text2); }
.section-head h2 i,
.section-head h3 i   { font-size: 13px; margin-right: 2px; }
.g-icon i            { font-size: 22px; }
.league-icon i       { font-size: 13px; color: #333; }
.apk-feat .icon i    { font-size: 18px; color: var(--green); }
.dl-unlock-icon i    { font-size: 18px; color: var(--green); }
.modal-feat span i   { font-size: 20px; color: var(--green); }
.ico i               { font-size: 16px; color: var(--green); }
.btn-watch i         { font-size: 10px; }
.live-icon           { color: var(--red); animation: blink 1s infinite; }
.apk-top-banner i    { font-size: 12px; color: var(--green); }
h2 i, h3 i          { color: var(--green); }

/* ——— RESET & ROOT ——— */

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

:root {
  --bg:     #0a0a1a;
  --bg2:    #111128;
  --card:   #161630;
  --green:  #00d45a;
  --green2: #00b84c;
  --red:    #e63946;
  --gold:   #f4a261;
  --text:   #ffffff;
  --text2:  #a0a0c0;
  --border: #252545;
  --accent: #6c63ff;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ——— TOP DOWNLOAD BANNER ——— */

.apk-top-banner {
  background: linear-gradient(135deg, #1a1a3a, #0d2040);
  border-bottom: 1px solid var(--green);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.apk-top-banner p        { font-size: 11px; color: var(--text2); line-height: 1.3; }
.apk-top-banner p strong { color: var(--text); font-size: 12px; }

.btn-apk-small {
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* ——— HEADER ——— */

.header {
  background: linear-gradient(180deg, #0d0d25 0%, #0a0a1a 100%);
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo        { display: flex; align-items: center; gap: 8px; }
.logo-icon   {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green), #00a0ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.logo-text h1 { font-size: 18px; font-weight: 900; letter-spacing: 1px; color: #fff; }
.logo-text p  { font-size: 9px; color: var(--text2); letter-spacing: 0.3px; }

.header-right { display: flex; align-items: center; gap: 10px; }

.notif-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1px solid var(--bg);
}

/* ——— TABS ——— */

.tabs-wrap {
  background: var(--bg);
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  display: flex;
  gap: 4px;
  scrollbar-width: none;
}
.tabs-wrap::-webkit-scrollbar { display: none; }

.tab {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}
.tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ——— SECTIONS ——— */

.section { padding: 18px 0 4px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 15px; font-weight: 700; }

.see-all { color: var(--green); font-size: 12px; font-weight: 600; cursor: pointer; }

.scroll-row {
  display: flex;
  gap: 12px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

/* ——— HERO BANNER ——— */

.hero { margin: 14px 16px; border-radius: 16px; overflow: hidden; position: relative; }

.hero-inner {
  background: linear-gradient(135deg, #0a2040 0%, #1a0a40 50%, #0a2030 100%);
  padding: 18px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.hero-players {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(0,212,90,0.15), transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-player-img { font-size: 70px; line-height: 1; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero h3    { font-size: 19px; font-weight: 900; line-height: 1.2; max-width: 180px; margin-bottom: 4px; }
.hero p.sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 14px; }

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 9px 18px;
  border-radius: 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hero-dots { display: flex; gap: 5px; margin-top: 12px; }
.hero-dot  { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.3); }
.hero-dot.active { width: 18px; background: var(--green); }

/* ——— HERO SLIDER ——— */

.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
  margin: 14px 0;
}
.hero-slider::-webkit-scrollbar { display: none; }

.hero-slide {
  flex-shrink: 0;
  width: calc(100vw - 32px);
  margin: 0 8px;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
}
.hero-slide:first-child { margin-left: 16px; }
.hero-slide:last-child  { margin-right: 16px; }

/* ——— GENRE FILTER CHIPS ——— */

.genre-chips {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 6px;
}
.genre-chips::-webkit-scrollbar { display: none; }

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  transition: all 0.2s;
}
.chip.active { background: var(--green); color: #000; border-color: var(--green); }

/* ——— DRAMA CARDS ——— */

.drama-card { flex-shrink: 0; width: 130px; cursor: pointer; }

.drama-thumb {
  width: 130px;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 7px;
  background: linear-gradient(135deg, #1a1a3a, #2a2a5a);
}

.drama-thumb .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ——— HERO BACKGROUND IMAGE ——— */

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-inner > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

.drama-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.15);
}
.drama-badge.new { background: var(--green); color: #000; border-color: transparent; }
.drama-badge.hot { background: var(--red);   color: #fff; border-color: transparent; }

.download-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  padding: 20px 8px 8px;
  display: flex;
  justify-content: center;
}

.btn-dl-mini {
  background: var(--green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.drama-title { font-size: 12px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.drama-meta  { font-size: 10px; color: var(--text2); margin-bottom: 4px; }
.stars       { color: #ffc107; font-size: 11px; }

/* ——— SPORT CARDS ——— */

.sport-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.sport-thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}
.sport-thumb.cricket    { background: linear-gradient(135deg, #1a3a1a, #2a6a2a); }
.sport-thumb.football   { background: linear-gradient(135deg, #1a1a4a, #2a2a8a); }
.sport-thumb.basketball { background: linear-gradient(135deg, #3a1a0a, #7a2a0a); }
.sport-thumb.tennis     { background: linear-gradient(135deg, #2a3a0a, #4a6a0a); }
.sport-thumb.boxing     { background: linear-gradient(135deg, #3a0a0a, #7a0a0a); }

.sport-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sport-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.sport-info    { padding: 10px 12px; }
.sport-info h4 { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.sport-info p  { font-size: 10px; color: var(--text2); margin-bottom: 8px; }

/* ——— MATCH CARDS ——— */

.match-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

.league-head {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.league-left { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.league-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.team       { display: flex; align-items: center; gap: 7px; flex: 1; }
.team.right { flex-direction: row-reverse; }

.team-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.team-name  { font-size: 12px; font-weight: 700; }
.match-time { font-size: 11px; color: var(--green); font-weight: 700; text-align: center; margin-bottom: 2px; }
.match-date { font-size: 10px; color: var(--text2); text-align: center; }

.match-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,90,0.1), rgba(0,160,255,0.1));
  border: 1px solid rgba(0,212,90,0.3);
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  gap: 6px;
}

/* ——— APK PROMO BLOCK ——— */

.apk-promo {
  margin: 16px;
  background: linear-gradient(135deg, #001a40, #002040, #001428);
  border: 1px solid rgba(0,212,90,0.4);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apk-promo::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0,212,90,0.15), transparent);
  border-radius: 50%;
}

.apk-promo h3 { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.apk-promo p  { font-size: 12px; color: var(--text2); margin-bottom: 14px; }

.apk-features { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.apk-feat           { text-align: center; }
.apk-feat .icon     { font-size: 20px; margin-bottom: 3px; }
.apk-feat p         { font-size: 10px; color: var(--text2); }

.btn-apk-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), #00a0d4);
  color: #000;
  font-weight: 900;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0,212,90,0.35);
  text-decoration: none;
}

.apk-size { font-size: 10px; color: var(--text2); margin-top: 8px; }

/* ——— GENRES GRID ——— */

.genres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.genre-item {
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.genre-item .g-icon { font-size: 26px; margin-bottom: 5px; }
.genre-item h4      { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.genre-item p       { font-size: 9px; color: rgba(255,255,255,0.6); }

.genre-item.g1 { background: linear-gradient(135deg, #0a2a0a, #153015); }
.genre-item.g2 { background: linear-gradient(135deg, #2a0a0a, #3a1515); }
.genre-item.g3 { background: linear-gradient(135deg, #0a0a2a, #151540); }
.genre-item.g4 { background: linear-gradient(135deg, #2a1a0a, #3a2510); }
.genre-item.g5 { background: linear-gradient(135deg, #1a0a2a, #2a1540); }
.genre-item.g6 { background: linear-gradient(135deg, #0a1a2a, #102540); }

/* ——— BOTTOM NAVIGATION ——— */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,26,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 999;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 0;
}
.nav-icon  { font-size: 20px; }
.nav-label { font-size: 9px; color: var(--text2); font-weight: 600; }
.nav-item.active .nav-label { color: var(--green); }

/* ——— PAGE LAYOUT ——— */

.page-content        { display: none; }
.page-content.active { display: block; }
.pb                  { padding-bottom: 80px; }

/* ——— DOWNLOAD SECTION ——— */

.dl-section {
  margin: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.dl-section h3    { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.dl-reason        { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dl-reason .ico   { font-size: 18px; }
.dl-reason p      { font-size: 12px; color: var(--text2); }
.dl-reason strong { color: var(--text); }

/* ——— INSTALL STEPS ——— */

.step-bar    { margin: 16px; }
.step-bar h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }

.step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.step-text p  { font-size: 11px; color: var(--text2); }

/* ——— DOWNLOAD PAGE HERO ——— */

.dl-hero {
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, #0d1a2e 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.dl-hero-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0f1f3a, #0a2a1a);
  border: 1px solid rgba(0,212,90,0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 28px rgba(0,212,90,0.2);
}

.dl-hero-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 40%, #00d45a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dl-hero-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 20px;
  padding: 0 8px;
}

.dl-hero-btn {
  font-size: 15px;
  padding: 16px 24px;
  margin-bottom: 10px;
}

/* ——— UNLOCK FEATURES GRID ——— */

.dl-unlock-grid {
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl-unlock-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.dl-unlock-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--bg2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-unlock-item strong {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.dl-unlock-item p {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
}

/* ——— APK DOWNLOAD MODAL ——— */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 6px 20px 44px;
  width: 100%;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 20px;
}

.modal-app-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0f1f3a, #0a2a1a);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 20px rgba(0, 212, 90, 0.2);
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 0 10px;
}

.modal-features {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.modal-feat        { text-align: center; }
.modal-feat span   { font-size: 22px; display: block; margin-bottom: 4px; }
.modal-feat p      { font-size: 10px; color: var(--text2); font-weight: 600; }

.modal-dl-btn {
  font-size: 15px;
  padding: 16px 24px;
}

.modal-meta {
  font-size: 10px;
  color: var(--text2);
  margin-top: 10px;
}
