/* ============================================================
   आज ख़बर / AAJ KHABAR / NewsTej — Modern News Portal Style
   Adopted from DeshTak's design tokens and layout structure
   ============================================================ */

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

:root {
  --red:        #e60012;
  --red-dark:   #b3000e;
  --red-hot:    #ff1a2e;
  --ink:        #0f0f0f;
  --ink-soft:   #333333;
  --meta:       #6b7280;
  --line:       #e5e7eb;
  --bg:         #ffffff;
  --bg-soft:    #f8f9fa;
  --bg-warm:    #fafaf9;
  --dark:       #0a0a0a;
  --yellow:     #fbbf24;
  --font-body:  'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-logo:  'Teko', 'Noto Sans Devanagari', sans-serif;
  --wrap:       1280px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --ink:        #f9fafb;
  --ink-soft:   #e5e7eb;
  --meta:       #9ca3af;
  --line:       #1f2937;
  --bg:         #0a0a0a;
  --bg-soft:    #111827;
  --bg-warm:    #1f2937;
  --dark:       #030712;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.6);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x: clip; }
body { font-family:var(--font-body); color:var(--ink); background:var(--bg); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:clip; min-height: 100vh; display: flex; flex-direction: column; top: 0 !important; transition: background-color 0.3s, color 0.3s; width: 100%; max-width: 100vw; }
img { max-width:100%; height: auto; display:block; object-fit: cover; }
a { color:inherit; text-decoration:none; transition: color 0.2s ease; }
ul { list-style:none; }
.container-nt { max-width:var(--wrap); margin:0 auto; padding:0 20px; width: 100%; }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--red);
  color: white;
  padding: 10px 20px;
  z-index: 999999;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
}

/* ---------- Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--red-hot));
  z-index: 9999999;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(255,26,46,.4);
}

/* ---------- Top utility bar ---------- */
.nt-topbar {
  background: var(--dark);
  color: #9ca3af;
  font-size: .78rem;
  position: relative;
  z-index: 10001;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nt-topbar .container-nt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}
.date-str {
  color: #d1d5db;
  font-weight: 600;
  white-space: nowrap;
}
.nt-topbar-links {
  display: flex;
  gap: 18px;
}
.nt-topbar-links a {
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}
.nt-topbar-links a:hover {
  color: #fff;
}
.nt-lang-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #f3f4f6;
  border: 1px solid #374151;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Header ---------- */
.nt-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.nt-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.nt-logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: .5px;
  line-height: 1;
  flex-shrink: 0;
}
.nt-logo .logo-aaj {
  background: var(--red);
  color: #fff;
  padding: 4px 12px 2px;
  border-radius: var(--radius-sm);
  transform: skewX(-6deg);
  display: inline-block;
  box-shadow: 0 2px 8px rgba(230,0,18,.3);
}
.nt-logo .logo-khabar {
  color: var(--ink);
  padding: 4px 8px 2px;
}
.nt-logo .dot {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--meta);
  text-transform: uppercase;
  align-self: flex-end;
  margin-bottom: 6px;
  margin-left: 4px;
}

/* Navigation bar */
.nt-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 6px;
  flex-shrink: 0;
}
.nt-nav-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nt-nav-scroll a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .84rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--ink-soft);
  text-transform: uppercase;
}
.nt-nav-scroll a:hover {
  background: var(--bg-soft);
  color: var(--red);
}
.nt-nav-scroll a.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 10px rgba(230,0,18,.3);
}

.nt-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-subscribe {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg,#e60012 0%,#b30009 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: .8rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(230,0,18,0.4);
  flex-shrink: 0;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-subscribe:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px rgba(230,0,18,0.6);
  background: linear-gradient(135deg,#ff1a2e 0%,#d40011 100%);
}

.icon-btn {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.05);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Light/Dark Mode Icons */
[data-theme="dark"] .icon-sun { display: block; color: #fbbf24; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun { display: none; }
.icon-moon { display: block; color: #4f46e5; }

/* ---------- Breaking News Ticker ---------- */
.nt-ticker {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
  position: relative;
}
.nt-ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
}
.nt-ticker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 130px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  z-index: 2;
}
.nt-ticker-label {
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .5px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-ring 1.2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(251,191,36, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(251,191,36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36, 0); }
}
.nt-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  padding-left: 20px;
}
.nt-ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-anim 35s linear infinite;
}
.nt-ticker-track:hover {
  animation-play-state: paused;
}
.nt-ticker-track a {
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-soft);
  position: relative;
  text-decoration: none;
}
.nt-ticker-track a::before {
  content: "●";
  position: absolute;
  left: -32px;
  color: var(--red);
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes ticker-anim {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Grid Layouts ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.g-4 {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}
.col-lg-8 {
  flex: 0 0 auto;
  width: 66.666667%;
  padding: 0 12px;
}
.col-lg-4 {
  flex: 0 0 auto;
  width: 33.333333%;
  padding: 0 12px;
}
.col-sm-6 {
  flex: 0 0 auto;
  width: 50%;
  padding: 0 12px;
}
.col-lg-3 {
  flex: 0 0 auto;
  width: 25%;
  padding: 0 12px;
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .col-lg-8, .col-lg-4 { width: 100%; }
}
@media (max-width: 575px) {
  .col-sm-6, .col-lg-3 { width: 100%; }
}

/* ---------- Section Headers ---------- */
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--red);
  margin-bottom: 20px;
  padding-bottom: 0;
}
.eyebrow {
  display: none; /* Substituted by clean deshtak heading label */
}
.section-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: var(--red);
  padding: 6px 18px;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  margin: 0;
  display: inline-block;
}
.section-heading::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 10px solid var(--red);
}
.more-link {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--red);
}
.more-link:hover {
  color: var(--red-dark);
}

/* ---------- Hero main card ---------- */
.nt-hero {
  padding: 28px 0 32px;
}
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0f0f0f;
  display: block;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}
.hero-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hero-main:hover img {
  transform: scale(1.06);
}
.hero-main .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.hero-main .hero-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
  z-index: 2;
}
.hero-main .badge {
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero-main .badge-outline {
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  margin-left: 8px;
}
.hero-main h1 {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 12px 0 10px;
  line-height: 1.3;
}
.hero-meta {
  font-size: 0.8rem;
  opacity: 0.9;
  display: flex;
  gap: 12px;
}

/* ---------- Hero Side Cards ---------- */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  display: flex;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: var(--transition);
}
.side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.side-card img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.side-card span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.side-card .cat-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
}
.side-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 4px 0;
}
.side-card .time {
  font-size: 0.75rem;
  color: var(--meta);
}

/* ---------- Trending Rail ---------- */
.trending-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
@media (max-width: 991px) {
  .trending-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .trending-rail {
    grid-template-columns: 1fr;
  }
}
.trending-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: var(--transition);
}
.trending-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.trending-card .ghost-num {
  position: absolute;
  right: 12px;
  top: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: var(--line);
  opacity: 0.35;
  line-height: 1;
  font-family: var(--font-logo);
}
.trending-card .cat-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.trending-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  z-index: 1;
  margin-bottom: 12px;
}
.trending-card .views {
  font-size: 0.75rem;
  color: var(--meta);
  font-weight: 500;
}

/* ---------- News Cards General ---------- */
.news-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.news-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--dark);
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .thumb img {
  transform: scale(1.06);
}
.news-card .thumb .badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
  z-index: 2;
}
.news-card .body {
  padding: 16px;
}
.news-card .cat-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
}
.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 6px 0 10px;
}
.news-card p.excerpt {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}
.news-card .meta-row {
  display: flex;
  font-size: 0.78rem;
  color: var(--meta);
  gap: 8px;
  align-items: center;
}

/* ---------- Category Section Spacer ---------- */
.category-section {
  margin-bottom: 40px;
}

/* ---------- Sidebar Widgets ---------- */
.widget {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  text-transform: uppercase;
}
.list-card {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.list-card:last-child {
  border-bottom: none;
}
.list-card:hover h4 {
  color: var(--red);
}
.list-card .num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
}
.list-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
}
.list-card .time {
  font-size: 0.72rem;
  color: var(--meta);
}

/* Newsletter Widget */
.newsletter-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.newsletter-box p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.newsletter-box form {
  display: flex;
  gap: 8px;
}
.newsletter-box input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--ink);
}
.newsletter-box input:focus {
  outline: none;
  border-color: var(--red);
}
.newsletter-box button {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-box button:hover {
  background: var(--red-dark);
}

/* Tag Pills */
.tag-pill {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 4px 8px 0;
  transition: var(--transition);
}
.tag-pill:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Ads placeholder */
.ad-slot {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  color: var(--meta);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.ad-leader {
  max-width: 100%;
}
.ad-square {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Band Dark (Viral) ---------- */
.band-dark {
  background: var(--dark);
  color: #fff;
  padding: 40px 0;
  margin: 40px 0;
}
.band-dark .section-heading {
  background: var(--red);
}
.band-dark .news-card {
  background: #111827;
  border-color: #1f2937;
}
.band-dark .news-card h3 {
  color: #fff;
}
.band-dark .news-card .meta-row {
  color: #9ca3af;
}

/* ---------- Video Cards ---------- */
.video-card .thumb {
  position: relative;
}
.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.video-card:hover .play-btn {
  background: var(--red);
  transform: translate(-50%, -50%) scale(1.1);
  border-color: var(--red);
}
.video-card .play-btn svg {
  fill: #fff;
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.duration-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.nt-footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 60px 0 20px;
  margin-top: auto;
  border-top: 4px solid var(--red);
  font-size: 0.9rem;
}
.nt-footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.nt-footer ul li {
  margin-bottom: 10px;
}
.nt-footer ul li a {
  color: #9ca3af;
}
.nt-footer ul li a:hover {
  color: #fff;
}
.nt-footer .about-text {
  line-height: 1.6;
}
.nt-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.nt-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: bold;
  transition: var(--transition);
}
.nt-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}
.nt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* ---------- Search Overlay ---------- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.search-overlay.open {
  display: flex;
}
.search-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.search-panel input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--ink);
}
.search-panel input:focus {
  outline: none;
  border-color: var(--red);
}
.search-results {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 20px;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.search-result-item:hover {
  background: var(--bg-soft);
}
.search-result-item img {
  width: 60px;
  height: 45px;
  border-radius: 4px;
}
.search-result-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--red);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
}
