/* ==========================================================================
   CRIC SQUAD — Content & account pages
   news · news-details · videos · subscription · login · register
   Loaded after responsive.css on those pages only. Uses design tokens from
   style.css; no overrides of global components.
   ========================================================================== */

/* ---------- Shared helpers ---------- */
.chip-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex-shrink: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.toolbar .input-group { flex: 1 1 200px; max-width: 320px; }
.thumb { width: 84px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.meta-row i { color: var(--primary-light); margin-right: 5px; }
.sidebar-stack { display: grid; gap: 20px; align-content: start; }
.section-head-sm h2 { font-size: 1.35rem; }

/* ---------- News: featured story ---------- */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.news-feature .nf-media { position: relative; min-height: 340px; overflow: hidden; background: var(--surface-2); }
.news-feature .nf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.news-feature:hover .nf-media img { transform: scale(1.03); }
.news-feature .nf-media .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.news-feature .nf-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: radial-gradient(500px 260px at 100% 0%, rgba(34, 197, 94, .1), transparent 70%), var(--surface); }
.news-feature .nf-cat { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-light); }
.news-feature h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; margin: 0; }
.news-feature p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.news-feature .nf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 6px; }

/* Numbered trending list */
.trend-list .list-item { align-items: flex-start; }
.trend-list .rank-num { font-size: 1.6rem; line-height: 1; width: 32px; }
.trend-list .li-title { line-height: 1.35; font-size: 14px; }

/* Newsletter card */
.newsletter-card { padding: 24px; background: radial-gradient(360px 200px at 100% 0%, rgba(34, 197, 94, .22), transparent 70%), linear-gradient(160deg, #0f2a19, #050505 75%); border-color: #1f5132; color: #E5E7EB; --heading: #fff; --muted: #B8BFC6; --surface-2: #161C18; --border: #26312A; }
.newsletter-card h2 { font-size: 1.25rem; margin: 10px 0 6px; }
.newsletter-card p { color: var(--muted); font-size: 14px; margin: 0; }
.newsletter-card .newsletter { flex-wrap: wrap; }
.newsletter-card .newsletter .btn { flex: 1 1 100%; }

/* ---------- Article (news-details) ---------- */
.article-hero { padding: 36px 0 8px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; margin: 14px 0 14px; max-width: 22ch; }
.article-hero .standfirst { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--border); }
.byline .media-row .title a:hover { color: var(--primary-light); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px; transition: all var(--t-fast); }
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.article-figure { margin: 28px 0 0; }
.article-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.article-figure figcaption { font-size: 13px; color: var(--subtle); margin-top: 10px; }

.article-layout { display: grid; grid-template-columns: 56px minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.share-rail { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-rail .xsmall { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--subtle); margin-bottom: 6px; }
.article-body { min-width: 0; }
.article-body.prose { max-width: 70ch; }
.prose .btn, .prose .card a.media-row { text-decoration: none; }
.prose .btn-primary { color: #fff; }
.prose .btn-outline { color: var(--heading); }
.article-body > p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2rem; line-height: .85; font-weight: 800; color: var(--primary-light); margin: 6px 10px 0 0; }

/* Embedded mini scorecard */
.score-embed { margin: 2em 0; font-size: 15px; line-height: 1.5; }
.score-embed .se-team { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.score-embed .se-team:last-of-type { border-bottom: 0; }
.score-embed .se-team .name { flex: 1; font-weight: 700; color: var(--heading); }
.score-embed .se-team .runs { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--heading); }
.score-embed .se-team.is-dim .name, .score-embed .se-team.is-dim .runs { color: var(--muted); }
.score-embed .se-perf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.score-embed .se-perf div { background: var(--surface-2); border-radius: var(--radius-md); padding: 10px 12px; }
.score-embed .se-perf b { display: block; color: var(--heading); font-size: 14px; }
.score-embed .se-perf span { font-size: 12px; color: var(--muted); }

.article-foot { margin-left: 96px; max-width: 780px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; }
.author-box .avatar { width: 72px; height: 72px; }
.author-box h2 { font-size: 1.1rem; margin: 2px 0 6px; }
.author-box p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }

/* ---------- Videos ---------- */
.video-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #050505; border: 1px solid #26312A; color: #E5E7EB; }
.video-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s var(--ease); }
.video-stage:hover > img { transform: scale(1.02); }
.video-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .35) 45%, rgba(5, 5, 5, .1) 100%); pointer-events: none; }
.video-stage .vs-play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 44px; color: #fff; background: rgba(22, 163, 74, .95); box-shadow: 0 0 0 14px rgba(22, 163, 74, .22), 0 20px 50px rgba(0, 0, 0, .5); transition: transform var(--t-fast); }
.video-stage .vs-play:hover { transform: scale(1.07); }
.video-stage .vs-play i { margin-left: 6px; }
.video-stage .vs-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; pointer-events: none; }
.video-stage .vs-info h2 { color: #fff; font-size: clamp(1.25rem, 2.6vw, 2rem); margin: 8px 0 4px; max-width: 30ch; }
.video-stage .vs-info p { color: #B8BFC6; margin: 0; font-size: 14px; }
.video-stage .vs-dur { background: rgba(0, 0, 0, .7); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; }

.player-frame { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(600px 300px at 50% 40%, #12301d, #050505 75%); display: grid; place-items: center; color: #fff; }
.player-frame .pf-icon { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 163, 74, .95); font-size: 38px; box-shadow: 0 0 0 12px rgba(22, 163, 74, .2); }
.player-frame .pf-icon i { margin-left: 5px; }
.player-frame .pf-note { position: absolute; top: 14px; left: 14px; }
.player-frame .pf-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #B8BFC6; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); }
.player-frame .pf-bar .progress { flex: 1; height: 4px; background: rgba(255, 255, 255, .18); }
.modal-dialog.video { width: min(920px, 100%); }
.modal-dialog.video .modal-body { padding: 0; }
.modal-dialog.video .vm-meta { padding: 18px 22px; }

/* ---------- Subscription ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.billing-toggle .bt-label { color: var(--muted); transition: color var(--t-fast); }
.billing-toggle .bt-label.is-on { color: var(--heading); }
.plans-grid { align-items: stretch; }
.plan-card { position: relative; }
.plan-card .plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-card .plan-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); color: var(--primary-light); }
.plan-card h3 { font-size: 1.3rem; margin: 0; }
.plan-card .plan-desc { color: var(--muted); font-size: 14px; margin: 0; min-height: 3em; }
.plan-card .plan-period { display: block; font-size: 12px; color: var(--subtle); margin-top: 6px; min-height: 1.4em; }
.plan-card .check-list { flex: 1; }
.plan-card .btn { margin-top: auto; }
.plan-card.featured { background: radial-gradient(420px 220px at 100% 0%, rgba(34, 197, 94, .14), transparent 70%), var(--surface); }
.plan-card.featured .plan-icon { background: var(--primary); color: #fff; }
.save-pill { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-light); border: 1px solid rgba(34, 197, 94, .3); }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child { white-space: normal; min-width: 200px; color: var(--heading); font-weight: 500; }
.compare-table .bi-check-circle-fill { color: var(--primary-light); font-size: 17px; }
.compare-table .bi-dash { color: var(--subtle); font-size: 17px; }
.compare-table .col-featured { background: var(--primary-soft); }
.compare-table tbody tr.group td { background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quote-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote-card blockquote { margin: 0; color: var(--heading); font-size: 15px; line-height: 1.6; }
.quote-card .stars { color: var(--warning); display: flex; gap: 3px; font-size: 14px; }

/* ---------- Auth (login / register) ---------- */
.auth-layout { background: var(--bg); }
.auth-visual .av-copy .av-title { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: .92; letter-spacing: 0; margin: 16px 0 14px; max-width: none; font-weight: 800; }
.auth-visual .av-copy .av-title em { font-style: normal; color: var(--primary-light); }
.auth-visual .av-copy p { color: #B8BFC6; max-width: 44ch; margin: 0; }
.auth-visual .av-card { margin-top: 28px; padding: 20px; border-radius: var(--radius-lg); background: rgba(17, 23, 20, .78); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .1); max-width: 460px; }
.auth-visual .av-card blockquote { margin: 0 0 14px; color: #fff; font-size: 15px; line-height: 1.55; }
.auth-visual .av-card .title { color: #fff; }
.auth-visual .av-card .sub { color: #9CA3AF; }
.auth-visual .av-stats { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.auth-visual .av-stats .v { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }
.auth-visual .av-stats .l { font-size: 11px; color: #9CA3AF; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.auth-visual .av-foot { font-size: 12px; color: #6B7280; }
.auth-form-wrap { flex-direction: column; gap: 24px; position: relative; }
.auth-topbar { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-mobile-brand { display: none; }
.auth-form.wide { width: min(560px, 100%); }
.auth-form h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 6px; }
.auth-form .auth-sub { color: var(--muted); margin: 0; }
.auth-form form { display: grid; gap: 16px; }
.auth-form .tabs-pill { display: flex; width: 100%; }
.auth-form .tabs-pill .tab { flex: 1; justify-content: center; }
.auth-form .tab-panel { padding-top: 0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-row .link { font-size: 14px; }
.btn-google { --btn-bg: var(--surface); }
.btn-google .g-mark { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 14px; color: var(--heading); }
.input-prefix { position: relative; }
.demo-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.demo-roles a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--heading); transition: all var(--t-fast); }
.demo-roles a i { color: var(--primary-light); font-size: 16px; }
.demo-roles a:hover { border-color: var(--primary); background: var(--primary-soft); }
.demo-box { padding: 16px; border-radius: var(--radius-md); border: 1px dashed var(--border-strong); background: var(--surface-2); display: grid; gap: 12px; }
.demo-box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; }

/* Step indicator */
.steps { display: flex; align-items: center; gap: 0; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--subtle); min-width: 0; }
.steps li + li::before { content: ""; flex: 0 0 auto; width: clamp(12px, 4vw, 40px); height: 2px; background: var(--border-strong); border-radius: 2px; margin-right: 2px; transition: background var(--t-med); }
.steps .step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--border-strong); font-size: 13px; font-weight: 800; color: var(--muted); transition: all var(--t-med); }
.steps li.is-active { color: var(--heading); }
.steps li.is-active .step-num { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-light); }
.steps li.is-done .step-num { border-color: var(--primary); background: var(--primary); color: #fff; }
.steps li.is-done + li::before, .steps li.is-done + li.is-active::before { background: var(--primary); }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.step-panel legend { padding: 0; margin-bottom: 4px; font-size: 1.15rem; font-weight: 800; color: var(--heading); }
.step-panel.is-entering { animation: tab-in .3s var(--ease); }
.step-nav { display: flex; gap: 10px; justify-content: space-between; }
.step-nav .btn { flex: 1; }
.strength { display: grid; gap: 6px; }
.strength .progress > span { width: 0; transition: width var(--t-med), background var(--t-med); }
.strength[data-level="1"] .progress > span { width: 25%; background: var(--danger); }
.strength[data-level="2"] .progress > span { width: 50%; background: var(--warning); }
.strength[data-level="3"] .progress > span { width: 75%; background: var(--primary-light); }
.strength[data-level="4"] .progress > span { width: 100%; }
.role-grid.cols-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-grid.cols-roles .role-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
.role-fields { display: grid; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .article-layout { grid-template-columns: 56px minmax(0, 1fr); }
    .article-layout > aside { grid-column: 2; }
}
@media (max-width: 992px) {
    .news-feature { grid-template-columns: minmax(0, 1fr); }
    .news-feature .nf-media { min-height: 0; aspect-ratio: 16 / 9; }
    .news-feature .nf-body { padding: 26px; }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .article-layout > aside { grid-column: auto; }
    .share-rail { display: none; }
    .article-foot { margin-left: 0; }
    .auth-mobile-brand { display: flex; }
    .auth-topbar { position: static; width: min(560px, 100%); }
    .auth-form-wrap { justify-content: flex-start; padding-top: 20px; }
}
@media (max-width: 768px) {
    .toolbar .input-group { flex: 1 1 100%; max-width: none; }
    .video-stage { border-radius: 18px; }
    .article-figure img { aspect-ratio: 16 / 9; }
    .video-stage .vs-play { width: 68px; height: 68px; font-size: 32px; box-shadow: 0 0 0 9px rgba(22, 163, 74, .22); }
    .video-stage .vs-info { padding: 18px; }
    .video-stage .vs-info p { display: none; }
    .score-embed .se-perf { grid-template-columns: minmax(0, 1fr); }
    .steps .step-label { display: none; }
    .steps li.is-active .step-label { display: inline; }
}
@media (max-width: 576px) {
    .news-feature .nf-body { padding: 20px; }
    .author-box { flex-direction: column; }
    .article-body > p:first-of-type::first-letter { font-size: 3.4rem; }
    .video-stage .vs-info h2 { font-size: 1.1rem; }
    .billing-toggle { flex-wrap: wrap; justify-content: center; border-radius: var(--radius-md); }
    .demo-roles { grid-template-columns: 1fr 1fr; }
    .auth-form-wrap { padding: 20px 16px 36px; }
}
