/* =========================================================================
   Sports Plus — main.css
   Port of the prototype's styles (single file, no preprocessor).
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #14171c;
  --ink-soft: #4a5160;
  --ink-muted: #8c93a3;
  --line: #e4dfd3;
  --line-soft: #eee9dd;
  --brand: #0b1d3a;
  --brand-dark: #07142a;
  --accent: #d4271f;
  --accent-soft: #fde7e5;
  --gold: #c79b3a;
  --ok: #1f8a4c;
  --shadow: 0 12px 32px -16px rgba(11, 29, 58, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --font-mr: "Noto Sans Devanagari", "Mukta", system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { font-family: var(--font-mr); background: var(--bg); color: var(--ink);
       -webkit-font-smoothing: antialiased; line-height: 1.45; }
body[data-locale="en"] { font-family: var(--font-en); }

img, svg { display: block; max-width: 100%; }
button, a.icon-btn { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* Topbar */
.topbar { background: var(--brand); color: #fff; font-size: 12px; padding: 6px 0; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-date { opacity: 0.9; }
.lang-toggle { display: inline-flex; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 2px; }
.lang-toggle a { color: #fff; opacity: 0.7; padding: 4px 12px; font-size: 12px; border-radius: 999px;
                 letter-spacing: 0.2px; transition: opacity 0.15s, background 0.15s; }
.lang-toggle a.active { background: #fff; color: var(--brand); opacity: 1; font-weight: 600; }
.lang-toggle a:hover:not(.active) { opacity: 1; }

/* Masthead */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 0; }
.masthead-shell { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 108px; }
.masthead-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: 0 0 auto; }
.logo-mark img { width: clamp(84px, 8vw, 104px); height: auto; border-radius: 50%; }
.masthead-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink-soft); font-family: var(--font-en); line-height: 1.2; }
.masthead-kicker { margin: 0 0 4px; color: var(--brand); font-family: var(--font-en); font-size: 15px; font-weight: 900; }
.masthead-copy strong { color: var(--accent); font-size: 17px; line-height: 1.15; }
.masthead-copy span { color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.masthead-copy a { color: var(--brand); font-size: 13px; font-weight: 800; }
.masthead-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.masthead-social { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); }
.masthead-social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; box-shadow: 0 6px 18px -14px rgba(11, 29, 58, 0.6); }
.masthead-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.masthead-notify { color: var(--brand); font-size: 13px; font-weight: 800; white-space: nowrap; }
@media (max-width: 760px) {
  .masthead-shell { align-items: flex-start; flex-direction: column; gap: 12px; min-height: 0; }
  .masthead-actions { align-items: flex-start; width: 100%; }
  .masthead-social { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .masthead-brand { align-items: flex-start; }
  .logo-mark img { width: 76px; }
  .masthead-kicker { font-size: 13px; }
  .masthead-copy strong { font-size: 15px; }
  .masthead-copy span, .masthead-copy a, .masthead-notify { font-size: 12px; }
}

/* Nav */
.nav { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 rgba(0,0,0,0.15); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
.nav-links { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { padding: 14px 16px; font-weight: 600; font-size: 15px; white-space: nowrap; position: relative; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0;
                             height: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }
.nav-actions { display: flex; align-items: center; gap: 6px; padding-right: 8px; }
.icon-btn { background: transparent; border: none; color: #fff; opacity: 0.85;
            width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Breaking */
.breaking { background: var(--accent); color: #fff; padding: 8px 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.breaking .container { display: flex; gap: 12px; align-items: center; }
.breaking-label { background: var(--brand-dark); padding: 4px 10px; border-radius: 4px;
                  font-size: 11px; letter-spacing: 1px; font-family: var(--font-en); font-weight: 700; flex-shrink: 0; }
.breaking-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                 animation: marquee 28s linear infinite; padding-left: 100%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Ads */
.ad { background: repeating-linear-gradient(135deg, #f0ead9 0, #f0ead9 8px, #ebe4d1 8px, #ebe4d1 16px);
      border: 1px dashed #c9bfa1; color: #8a7f5e; font-size: 12px; letter-spacing: 2px; font-weight: 600;
      display: grid; place-items: center; text-align: center; padding: 18px; margin: 16px 0;
      border-radius: var(--radius-sm); min-height: 80px; }
.ad small { display: block; opacity: 0.7; font-size: 10px; margin-top: 4px; letter-spacing: 1px; }
.display-ad { margin: 16px 0; text-align: center; }
.display-ad a { display: block; }
.display-ad img { display: block; width: 100%; max-height: 160px; object-fit: contain; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

/* Section heading */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px;
                margin: 28px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -0.3px; }
.section-head .see-all { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Issue */
.issue { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.issue-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.issue-head h3 { margin: 0; font-size: 18px; color: var(--brand); font-weight: 800; }
.issue-head .pill { background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.issue-date-picker { background: var(--line-soft); color: var(--brand);
                     padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
                     display: inline-flex; align-items: center; gap: 6px;
                     border: 1px solid var(--line); cursor: pointer; }
.issue-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .issue-grid { grid-template-columns: 120px 1fr; align-items: start; } }

.page-rail { display: flex; flex-direction: row; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
@media (min-width: 900px) { .page-rail { flex-direction: column; max-height: 720px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; } }
.page-thumb { flex-shrink: 0; width: 96px; cursor: pointer; text-align: center;
              border: 2px solid transparent; border-radius: 6px; padding: 4px;
              transition: border-color 0.15s, transform 0.15s; }
.page-thumb:hover { transform: translateY(-2px); }
.page-thumb.active { border-color: var(--accent); background: var(--accent-soft); }
.page-thumb svg { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.page-thumb .num { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }

.page-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
              padding: 14px; min-height: 480px; }
.page-stage .page-img-wrap,
.page-stage .page-image-shell,
.page-stage .digital-page-shell,
.page-stage svg.page-image { touch-action: pan-y; cursor: grab; }
.page-stage.is-dragging .page-img-wrap,
.page-stage.is-dragging .page-image-shell,
.page-stage.is-dragging .digital-page-shell,
.page-stage.is-dragging svg.page-image { cursor: grabbing; }
.page-stage svg.page-image { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.digital-page-shell { position: relative; width: 100%; aspect-ratio: 640 / 820; border: 1px solid var(--line); background: #fff; overflow: hidden; cursor: default; }
.digital-page-shell::before { content: "SPORTS PLUS"; position: absolute; left: 0; right: 0; top: 0; height: 7.8%; display: flex; align-items: center; padding: 0 3%; background: var(--brand); color: #fff; font-family: var(--font-en); font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.digital-page-shell::after { content: ""; position: absolute; left: 0; right: 0; top: 7.8%; height: 2.6%; background: var(--accent); }
.digital-page-block { position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: left; overflow: hidden; cursor: pointer; font: inherit; color: var(--ink); box-shadow: 0 8px 22px -20px rgba(11,29,58,.7); }
.digital-page-block:hover { border-color: var(--accent); box-shadow: 0 10px 26px -18px rgba(212,39,31,.6); }
.digital-page-block strong { color: var(--brand); font-size: clamp(12px, 1.8vw, 24px); line-height: 1.08; font-weight: 900; }
.digital-page-block em { color: var(--accent); font-size: clamp(10px, 1.2vw, 15px); line-height: 1.2; font-style: normal; font-weight: 800; }
.digital-page-block p { margin: 0; color: var(--ink-soft); font-size: clamp(9px, 1vw, 13px); line-height: 1.35; }
.digital-page-block small { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.digital-page-block small span { background: var(--line-soft); color: var(--ink-soft); border-radius: 999px; padding: 2px 6px; font-size: 9px; font-weight: 800; }
.digital-page-image-block { padding: 0; border-radius: 0; border-color: #d8d2c4; background: #fff; }
.digital-page-image-block img { width: 100%; height: 100%; object-fit: fill; display: block; }
.digital-page-image-block:hover { border-color: var(--accent); }
.page-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.page-nav button { background: var(--brand); color: #fff; border: none; padding: 9px 14px; border-radius: 8px;
                   font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.page-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.page-nav button:hover:not(:disabled) { background: var(--brand-dark); }
.page-nav .page-indicator { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.page-nav .page-indicator strong { color: var(--brand); font-size: 18px; }

/* Articles strip */
.articles-strip { margin-top: 22px; }
.articles-strip .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.articles-strip .head h4 { margin: 0; font-size: 16px; color: var(--brand); font-weight: 800; }
.articles-strip .head small { color: var(--ink-muted); font-size: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
                overflow: hidden; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s;
                display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card .clipping { aspect-ratio: 4 / 3; background: #fafafa; overflow: hidden; position: relative; }
.article-card .clipping svg { width: 100%; height: 100%; }
.article-card .clipping .sport-badge { position: absolute; top: 8px; left: 8px;
                                       background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
                                       padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.article-card .clipping .premium-badge { position: absolute; top: 8px; right: 8px;
                                         background: var(--gold); color: #fff; font-size: 10px; font-weight: 700;
                                         padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.article-card .meta { padding: 10px 12px 12px; }
.article-card .meta h5 { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink);
                         display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta .byline { font-size: 11px; color: var(--ink-muted); font-weight: 500; display: flex; justify-content: space-between; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }

/* Article pages */
.article-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
@media (min-width: 980px) { .article-page { grid-template-columns: minmax(0, 760px) 320px; align-items: start; } }
.article-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.article-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.article-breadcrumb a, .article-tags a { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.article-main h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 900; }
.article-main h2 { margin: 10px 0 0; color: var(--ink-soft); font-size: 20px; line-height: 1.35; font-weight: 700; }
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink-muted); font-size: 13px; font-weight: 700; margin: 14px 0; }
.article-meta span:not(:last-child)::after { content: "•"; margin-left: 10px; color: var(--line); }
.article-hero-img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 14px 0; background: #fff; }
.article-summary { color: var(--brand); font-size: 18px; line-height: 1.55; font-weight: 700; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 16px; }
.article-share { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.article-share a, .article-share button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; color: var(--brand); cursor: pointer; }
.article-share a:hover, .article-share button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.link-button { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 900; cursor: pointer; padding: 0; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.author-box { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-box strong { display: block; color: var(--brand); }
.author-box strong a, .article-meta a { color: inherit; }
.author-box p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.article-side h3 { color: var(--brand); font-size: 16px; margin: 0 0 10px; }
.side-list { display: grid; gap: 10px; }
.side-list a { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; font-size: 13px; font-weight: 800; }
.side-list img { width: 76px; height: 58px; object-fit: cover; border-radius: 6px; background: #fafafa; }

.category-list { display: grid; gap: 14px; margin: 18px 0; }
.category-card { display: grid; grid-template-columns: 140px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.category-card img { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fafafa; }
.category-card h3 { margin: 0; font-size: 20px; line-height: 1.25; color: var(--brand); }
.category-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.category-card .subhead { color: var(--ink); font-weight: 800; }
.search-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 16px 0; }
.search-panel input,
.search-panel select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; background: #fff; color: var(--ink); }
.search-panel button { border: 0; border-radius: 8px; padding: 11px 16px; background: var(--accent); color: #fff; font-weight: 900; cursor: pointer; }
.search-panel button:hover { background: #b71f1a; }
.result-count { margin: 6px 0 14px; color: var(--ink-muted); font-size: 13px; font-weight: 800; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.pagination a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand); font-weight: 900; }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.content-page { max-width: 840px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.content-page header { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.content-page h1 { margin: 0; color: var(--brand); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 900; }
.content-page header p { margin: 10px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.content-sections { display: grid; gap: 18px; }
.content-sections h2 { margin: 0 0 6px; color: var(--ink); font-size: 19px; }
.content-sections p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.archive-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.archive-filter a { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); padding: 7px 13px; font-size: 13px; font-weight: 900; }
.archive-filter a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.archive-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); }
.archive-date { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.archive-date strong { color: var(--brand); font-size: 17px; }
.archive-date span { color: var(--ink-muted); font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; }
.archive-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.archive-card a { color: var(--accent); font-weight: 900; font-size: 14px; }
.news-home { margin: 22px 0; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title-row h1 { margin: 0; color: var(--brand); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; font-weight: 900; }
.section-title-row p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; font-weight: 700; }
.section-title-row > a,
.empty-panel a,
.latest-epaper-band a { border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.section-title-row > a:hover,
.empty-panel a:hover,
.latest-epaper-band a:hover { background: #b71f1a; border-color: #b71f1a; }
.running-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.running-news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.running-news-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--line-soft); color: var(--brand); font-family: var(--font-en); font-weight: 900; letter-spacing: 1px; overflow: hidden; }
.running-news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.running-news-body { padding: 14px; }
.running-news-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-muted); font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.running-news-meta span { color: var(--accent); }
.running-news-card h2 { margin: 0; color: var(--brand); font-size: 19px; line-height: 1.25; }
.running-news-card h2 a { color: inherit; }
.running-news-card p { margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.running-news-card p.subhead { color: var(--ink); font-weight: 800; }
.empty-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.empty-panel strong { color: var(--brand); }
.latest-epaper-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.latest-epaper-band span { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px; }
.latest-epaper-band h2 { margin: 4px 0 0; color: var(--brand); font-size: 22px; line-height: 1.2; }
.latest-epaper-band p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.epaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 18px 0; }
.epaper-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.epaper-cover { display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--line-soft); color: var(--brand); font-family: var(--font-en); font-weight: 900; letter-spacing: 1px; overflow: hidden; }
.epaper-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.epaper-card-body { padding: 14px; display: grid; gap: 8px; }
.epaper-card h3 { margin: 0; color: var(--brand); font-size: 16px; line-height: 1.3; }
.epaper-card h3 a { color: inherit; }
.epaper-meta, .epaper-stats { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-muted); font-size: 12px; font-weight: 800; }
.epaper-stats { justify-content: flex-start; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; }
.epaper-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.epaper-read { color: var(--accent); font-weight: 900; font-size: 14px; }
.author-profile { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 22px 0; }
.author-profile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fafafa; border: 1px solid var(--line); }
.author-profile h1 { margin: 0; color: var(--brand); font-size: 34px; line-height: 1.1; }
.author-profile p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.6; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow); }
.plan-card h3 { margin: 0; color: var(--brand); font-size: 22px; }
.plan-card p { color: var(--ink-soft); margin: 8px 0 12px; line-height: 1.5; }
.plan-price { color: var(--accent); font-size: 26px; font-weight: 900; margin: 12px 0; }
.plan-price span { color: var(--ink-muted); font-size: 13px; font-weight: 800; }
.plan-card ul { margin: 14px 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.7; }
.plan-card a, .plan-card button { display: inline-flex; justify-content: center; width: 100%; border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 11px 14px; font: inherit; font-weight: 900; margin-top: 8px; cursor: pointer; }
.checkout-button { width: 100%; border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 14px 18px; font: inherit; font-weight: 900; cursor: pointer; margin-top: 16px; }
.google-auth-block { display: flex; justify-content: center; margin: 18px 0 12px; min-height: 44px; }
.google-auth-block iframe { margin: 0 auto !important; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.paywall-box, .paywall-modal { background: var(--accent-soft); border: 1px solid rgba(212,39,31,0.25); border-radius: var(--radius-sm); padding: 18px; color: var(--ink); }
.paywall-box strong, .paywall-modal strong { display: block; color: var(--accent); font-size: 18px; margin-bottom: 6px; }
.paywall-box p, .paywall-modal p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.5; }
.paywall-box a, .paywall-modal a { display: inline-flex; border-radius: 8px; background: var(--accent); color: #fff; padding: 9px 13px; font-weight: 900; }
.paywall-modal { max-width: 380px; text-align: center; }
@media (min-width: 760px) {
  .search-panel { grid-template-columns: minmax(0, 1fr) 220px auto; align-items: center; }
}
@media (max-width: 560px) {
  .article-main { padding: 16px; }
  .category-card { grid-template-columns: 1fr; }
  .category-card img { width: 100%; }
  .section-title-row,
  .empty-panel,
  .latest-epaper-band { align-items: stretch; flex-direction: column; }
  .section-title-row > a,
  .empty-panel a,
  .latest-epaper-band a { text-align: center; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-brand,
  .visitor-counter { grid-column: 1; justify-self: center; }
}

/* Footer */
footer { background: var(--brand); color: rgba(255,255,255,0.88); padding: 26px 0 84px; margin-top: 40px; }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.footer-brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-brand p { margin: 0; font-size: 14px; font-weight: 700; }
.footer-brand strong { color: #fff; font-size: 16px; font-weight: 800; }
.visitor-counter { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.22); border-radius: 8px; padding: 9px 12px; background: rgba(255,255,255,0.06); }
.visitor-counter span { color: rgba(255,255,255,0.72); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; }
.visitor-counter strong { color: #fff; font-size: 18px; font-weight: 900; font-family: var(--font-en); }

.page-zoom-backdrop { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(5,11,22,0.88); padding: 24px; overflow: auto; }
.page-zoom-backdrop.open { display: block; }
.page-zoom-panel { width: min(1180px, 100%); margin: 0 auto; }
.page-zoom-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 14px; color: #fff; background: linear-gradient(rgba(5,11,22,0.95), rgba(5,11,22,0)); }
.page-zoom-head strong { font-size: 15px; }
.page-zoom-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; }
.page-zoom-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; }
.page-zoom-stage { display: flex; justify-content: center; }
.page-zoom-stage img,
.page-zoom-stage svg { width: auto; max-width: none; height: auto; max-height: none; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,0.34); }
.page-zoom-stage img { min-width: min(100%, 980px); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7, 20, 42, 0.78); z-index: 100;
                  display: none; align-items: center; justify-content: center; padding: 12px;
                  backdrop-filter: blur(2px); }
.modal-backdrop.open { display: flex; animation: fadeIn 0.18s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 980px; max-height: 92vh;
         display: flex; flex-direction: column; overflow: hidden; animation: pop 0.22s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); }
                  to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-mast { background: var(--brand); color: #fff; padding: 12px 18px;
              display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-mast .mast-left { display: flex; align-items: center; gap: 10px; }
.modal-mast .mast-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; background: #fff; }
.modal-mast .mast-crest { width: 32px; height: 32px; background: var(--accent); color: #fff;
                          display: grid; place-items: center; font-family: var(--font-en); font-weight: 800;
                          border-radius: 6px; transform: rotate(-3deg); font-size: 16px; }
.modal-mast .mast-name { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; line-height: 1.1; }
.modal-mast .mast-meta { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.modal-mast .badges { display: flex; gap: 6px; align-items: center; }
.modal-mast .badge { background: rgba(255,255,255,0.12); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.modal-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px;
               border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.modal-body { display: grid; grid-template-columns: 1fr; gap: 0; overflow: auto; flex: 1; }
@media (min-width: 800px) { .modal-body { grid-template-columns: 1.6fr 1fr; } }
.modal-clipping { background: #1a1f2c; padding: 16px; display: grid; place-items: center; min-height: 320px; }
.modal-clipping svg.clipping-full { max-width: 100%; max-height: 60vh; border-radius: 6px;
                                    box-shadow: 0 8px 24px rgba(0,0,0,0.4); background: #fff; }
.modal-meta { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.modal-meta .head-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-meta .tag { font-size: 11px; padding: 3px 10px; border-radius: 999px;
                   background: var(--line-soft); color: var(--ink-soft); font-weight: 600; }
.modal-meta .tag.sport { background: var(--brand); color: #fff; }
.modal-meta .tag.team { background: var(--accent-soft); color: var(--accent); }
.modal-meta h2.headline { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.modal-meta .byline { font-size: 13px; color: var(--ink-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.modal-meta .byline strong { color: var(--ink-soft); }
.modal-meta .summary { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.modal-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.modal-actions .btn { border: 1px solid var(--line); background: #fff; padding: 12px;
                      border-radius: 8px; font-weight: 700; font-size: 14px;
                      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
                      transition: background 0.15s, border-color 0.15s, color 0.15s; }
.modal-actions .btn:hover { border-color: var(--brand); }
.modal-actions .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.modal-actions .btn.primary:hover { background: #b71f1a; border-color: #b71f1a; }
.modal-actions .btn.saved { background: var(--ok); border-color: var(--ok); color: #fff; }
.modal-actions .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.share-sheet { display: none; position: absolute; left: 0; right: 0; top: 104px; z-index: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.share-sheet.open { display: grid; }
.share-sheet a, .share-sheet button { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--line-soft); color: var(--brand); font: inherit; font-size: 13px; font-weight: 900; text-align: center; cursor: pointer; }
.share-sheet a:hover, .share-sheet button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.modal-footnote { font-size: 11px; color: var(--ink-muted); margin-top: auto; padding-top: 8px;
                  border-top: 1px dashed var(--line); display: flex; justify-content: space-between; }

/* Toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
         background: var(--brand-dark); color: #fff; padding: 12px 18px; border-radius: 999px;
         font-size: 14px; font-weight: 600; box-shadow: var(--shadow); z-index: 200;
         opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.page-image-shell { position: relative; width: 100%; }
.page-image-shell > img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.page-hotspot { position: absolute; border: 1px solid transparent; background: transparent; border-radius: 2px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.page-hotspot:hover { border-color: rgba(212,39,31,0.9); box-shadow: 0 0 0 1px rgba(212,39,31,0.18); }
.crop-view { width: min(100%, 1120px); margin: 0 auto; overflow: hidden; background: #fff; position: relative; aspect-ratio: calc(var(--crop-w) / var(--crop-h)); }
.crop-view img { display: block; width: calc(10000% / var(--crop-w)); max-width: none; height: auto; transform: translate(calc(-100% * var(--crop-x) / 100), calc(-100% * var(--crop-y) / 100)); transform-origin: top left; }
.branded-only { background: #fff; }
.branded-news-page { max-width: 1180px; margin: 0 auto 30px; background: #fff; padding: 0 14px; }
.branded-news-head { text-align: center; padding: 18px 12px 24px; color: #111827; }
.branded-news-head img { width: 168px; height: auto; display: block; margin: 0 auto 6px; }
.branded-news-head div { font-size: 16px; line-height: 1.2; }
.branded-news-head a { color: #111827; font-size: 16px; word-break: break-word; }
.branded-clipping-frame { border: 8px solid #0f5b6a; border-radius: 28px; padding: 24px; background: #fff; }
.branded-clipping-img { display: block; width: 100%; height: auto; }
.branded-news-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 18px 0 28px; }
.branded-news-actions .btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 11px 16px; border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.branded-news-actions .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.branded-news-actions .btn:hover { border-color: var(--brand); }
.branded-news-actions .btn.primary:hover { background: #b71f1a; border-color: #b71f1a; }
.branded-news-actions .btn:disabled { opacity: 0.7; cursor: wait; }
