.home-page { padding:8px 0 28px; }
.home-card.home-card--loading { min-height:290px; background:linear-gradient(#20394c 0 42%,transparent 42%),linear-gradient(#1a3044,#14283c); pointer-events:none; }
.home-personalized-note { margin:0 0 14px; color:#acbed0; font-size:13px; line-height:1.5; }
.sticky-search-bar .home-tabs button { white-space:nowrap; }
.home-welcome { margin-bottom:20px; }
.home-welcome > p { color:#6de0a3; font-size:11px; letter-spacing:1.2px; margin-bottom:8px; }
.home-welcome h1 { color:#e9edf3; font-size:clamp(23px,3vw,32px); line-height:1.3; margin:0; }
.home-search { display:flex; align-items:center; gap:12px; background:#182d41; border:1px solid #2a4259; border-radius:14px; padding:10px 12px; margin-bottom:20px; }
.home-search > i { color:#a8bbce; font-size:20px; }
.home-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:#f0f3f7; font-size:16px; }
.home-search input::placeholder { color:#a8bbce; }
.home-search button { border:0; padding:8px 14px; border-radius:8px; background:#ddb04d; color:#0a192f; font-weight:600; }
.home-search { position:relative; }
.home-search .list-search-res { top:100%; left:0; right:0; width:auto; }
.home-tabs { display:flex; overflow-x:auto; scrollbar-width:none; gap:20px; margin-bottom:12px; border-bottom:1px solid #273b50; }
.home-tabs::-webkit-scrollbar { display:none; }
.home-tabs button { flex-shrink:0; position:relative; padding:7px 0 9px; background:transparent; border:0; color:#9cb0c7; font-size:16px; line-height:1.35; font-weight:600; }
.home-tabs button svg { width:15px; height:15px; margin-right:4px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home-tabs button[aria-selected=true] { color:#f2f4f8; }
.home-tabs button[aria-selected=true]::after { content:""; position:absolute; height:3px; background:#e1b54b; border-radius:3px; bottom:0; left:15%; right:15%; }
.home-filter { display:flex; align-items:center; gap:12px; margin-bottom:20px; font-size:13px; }
.home-filter label { margin:0; color:#acbed0; }
.home-filter select { max-width:55%; min-width:120px; border:1px solid #304a62; border-radius:8px; background:#10253b; color:#e1e9f3; padding:9px; }
.home-filter > a { color:#b9cddd; margin-left:auto; }
.home-featured { margin-bottom:12px; scroll-margin-top:110px; }
.home-featured-periods { position:sticky; top:var(--home-sticky-height,100px); z-index:21; margin:0 0 14px; padding:8px 5px 10px; border-bottom:1px solid #304a62; background:#0d2237; box-shadow:0 8px 12px -12px #000; }
.sticky-search-bar .home-tabs,.home-featured-periods { max-height:64px; opacity:1; transform:translateY(0); transition:max-height .18s ease,margin .18s ease,padding .18s ease,opacity .14s ease,transform .18s ease,border-color .18s ease; }
.dtcb-home-controls-hidden .sticky-search-bar .home-tabs { max-height:0; margin-top:0; overflow:hidden; padding-top:0; padding-bottom:0; border-color:transparent; opacity:0; transform:translateY(-8px); pointer-events:none; }
.dtcb-home-periods-hidden .home-featured-periods { max-height:0; margin-bottom:0; overflow:hidden; padding-top:0; padding-bottom:0; border-color:transparent; opacity:0; transform:translateY(-8px); pointer-events:none; }
.home-featured-list > .featured-cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:12px; }
.home-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.home-grid[hidden] { display:none!important; }
#home-feed[aria-busy=true] > .home-grid:not([hidden]) { opacity:.6; }
.home-card { display:flex; flex-direction:column; min-width:0; border:1px solid #263b50; background:#12263a; border-radius:13px; overflow:hidden; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.home-card-cover { display:block; flex-shrink:0; position:relative; background:#09192a; aspect-ratio:355/200; }
.home-card-cover img { display:block; width:100%; height:100%; object-fit:contain; }
.home-card-views,.home-card-state,.home-card-rating { position:absolute; bottom:8px; right:8px; border-radius:5px; padding:3px 7px; background:#07121fd9; color:#fff; font-size:11px; line-height:1.4; white-space:nowrap; }
.home-card-rating { right:auto; left:8px; }
.home-card-state { bottom:auto; top:8px; color:#0a192f; background:#e1b54b; }
.home-card-body { display:flex; flex-direction:column; flex:1; gap:7px; min-width:0; padding:12px; }
.home-card-comments { color:#a9bdd0; font-size:11px; line-height:1.4; }
.home-card h2 { margin:0; font-family:inherit; font-size:16px; line-height:1.4; font-weight:600; }
.home-card h2 a { color:#ecf0f5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; height:2.8em; overflow-wrap:anywhere; }
.home-card h2 a:hover { color:#e1b54b; }
.home-card-author { min-width:0; color:#a2b6cb; font-size:12px; line-height:1.5; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-card-author a { color:inherit; }
.home-card-tags { display:flex; flex-wrap:nowrap; align-items:center; gap:6px; min-width:0; font-size:10px; line-height:1.4; }
.home-card-tags a { flex:0 1 auto; min-width:0; background:#263b50; color:#bcd0e3; padding:4px 7px; border-radius:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-card-tags span { flex:0 0 auto; max-width:50%; color:#81c7a2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-card-body > .save-story { order:2; width:100%; margin:0; margin-top:auto; min-height:36px; font-size:12px; }
.home-card .story-ranks { flex-wrap:nowrap; gap:4px; min-width:0; margin:0; }
.home-card .story-rank-badge { flex:0 1 auto; min-width:0; padding:3px 5px; font-size:10px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; }
.home-card .ranking-views,.home-card .home-card-progress { margin:0; font-size:11px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-card .home-card-progress { order:1; }
.home-empty { grid-column:1/-1; padding:48px 12px; text-align:center; color:#acbed0; }
.home-discovery { --discovery-accent:#f0c669; grid-column:1/-1; min-width:0; padding:20px; border:1px solid #a07b38; border-radius:16px; background:radial-gradient(ellipse at 95% 0,#a67a2f36,transparent 58%),linear-gradient(135deg,#242c32,#12263a 65%); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.home-discovery-new { --discovery-accent:#8ce0bc; border-color:#397d6b; background:radial-gradient(ellipse at 95% 0,#369d723b,transparent 58%),linear-gradient(135deg,#153a3b,#12263a 65%); }
.home-discovery-eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--discovery-accent); font-size:11px; font-weight:700; letter-spacing:.6px; }
.home-discovery-eyebrow i { font-size:16px; }
.home-discovery-heading h2 { color:#f5f3ea; font:700 22px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif; margin:7px 0 6px; }
.home-discovery-heading p { color:#b9c8d5; font-size:12px; line-height:1.5; margin:0; }
.home-discovery-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:14px; min-height:64px; list-style:none; margin:18px 0; padding:0; }
.home-discovery-list li { min-width:0; margin:0; }
.home-discovery-list a { display:flex; align-items:center; gap:9px; height:64px; min-width:0; border-radius:8px; color:#eaf0f5; }
.home-discovery-list a:hover { background:#ffffff09; color:var(--discovery-accent); text-decoration:none; }
.home-discovery-rank { flex:0 0 15px; color:var(--discovery-accent); font-size:17px; line-height:1; font-weight:750; text-align:center; }
.home-discovery-list img { width:56px; height:56px; flex:0 0 56px; object-fit:cover; border-radius:8px; background:#0a192f; }
.home-discovery-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.home-discovery-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; font-size:13px; font-weight:650; line-height:1.35; }
.home-discovery-views { color:#a9bdce; font-size:10px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-discovery-placeholder { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:12px; min-height:64px; color:#b9c8d5; font-size:13px; text-align:center; }
.home-discovery-placeholder > i { color:var(--discovery-accent); font-size:32px; }
.home-discovery-action { display:flex; justify-content:center; align-items:center; gap:14px; min-height:42px; padding:10px 20px; border:0; border-radius:9px; background:var(--discovery-accent); color:#10243a; font-size:13px; line-height:1.4; font-weight:750; }
.home-discovery-action:hover { filter:brightness(1.08); color:#10243a; text-decoration:none; }
.home-page :is(a,button,select,input):focus-visible { outline:2px solid #e1b54b; outline-offset:3px; }
#home-sentinel { height:1px; }
@media(max-width:991px) { .home-page { padding:8px 16px 28px; } .home-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:575px) { .home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .home-card-body { padding:10px; } .home-card h2 { font-size:14px; } .home-tabs { gap:0; justify-content:space-between; } .home-tabs button { padding:6px 0 8px; font-size:14px; } .home-tabs button svg { width:14px; height:14px; margin-right:3px; } .home-filter { gap:8px; font-size:12px; } .home-filter > a { font-size:11px; } .home-featured-list > .featured-cards-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:767px) { .home-discovery-list { grid-template-columns:minmax(0,1fr); gap:6px; min-height:204px; } .home-discovery-placeholder { min-height:204px; flex-direction:column; padding:16px; } .home-discovery-name { font-size:13px; } .home-discovery-action { width:100%; } }
@media(min-width:992px) { .home-discovery { grid-column:span 2; } .home-discovery-list { grid-template-columns:minmax(0,1fr); gap:6px; min-height:204px; } .home-discovery-placeholder { min-height:204px; flex-direction:column; padding:16px; } .home-discovery-action { width:100%; } }
@media(prefers-reduced-motion:reduce) { .sticky-search-bar .home-tabs,.home-featured-periods { transition:none; } }
@media(max-width:575px) { .sticky-search-bar .home-tabs { column-gap:18px; justify-content:flex-start; } }
