  :root{
    --bg: #f4f4f2;
    --panel: #ffffff;
    --panel-border: #e2e2de;
    --text: #1a1a1a;
    --text-soft: #5f5f5f;
    --text-faint: #8a8a8a;
    --accent: #1c7a4d;
    --accent-soft: #e6f3ec;
    --gold: #f5c518;
    --crest-red: #d81f26;
    --pill-bg: #ffffff;
    --pill-border: #d9d9d9;
    --pill-active-bg: #1c7a4d;
    --pill-active-text: #ffffff;
    --live-red: #d81f26;
    --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 8px rgba(0,0,0,0.04);
    --radius: 10px;
    --content-max: 1200px;
    --header-h: 65px;
    --nav-h: 49px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  }

  *{ box-sizing: border-box; margin:0; padding:0; }
  body{
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
  }
  a{ color: inherit; text-decoration: none; }
  img{ display:block; max-width:100%; }
  button{ font-family: inherit; cursor: pointer; }

  /* ===== Sticky header + nav ===== */
  .sticky-wrap{
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .topbar{
    height: 6px;
    background: linear-gradient(90deg, #d81f26, #f5c518, #1c7a4d, #1c7a4d, #f5c518, #d81f26);
  }

  .header{
    background: var(--panel);
    border-bottom: 1px solid var(--panel-border);
    padding: 0 24px;
  }
  .header-inner{
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 14px 0;
    display:flex;
    align-items:center;
    gap: 28px;
  }
  .logo{
    display:flex; align-items:center; gap:8px;
    font-weight:600; font-size:18px; white-space:nowrap;
  }
  .logo svg{ width:26px; height:26px; }

  .search{
    flex:1;
    max-width: 620px;
    display:flex;
    align-items:center;
    background: var(--bg);
    border-radius: 24px;
    padding: 9px 16px;
    gap: 10px;
    color: var(--text-faint);
    border: 1px solid transparent;
  }
  .search:focus-within{ border-color: var(--accent); background:#fff; }
  .search input{
    border:none; outline:none; background:transparent; flex:1; font-size:14px; color: var(--text);
  }
  .search-icon{ width:16px; height:16px; flex-shrink:0; opacity:.6; }
  .copilot-badge{ width:22px; height:22px; flex-shrink:0; border-radius:50%; background: var(--accent-soft); }

  .header-right{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:18px;
    white-space:nowrap;
  }
  .weather{
    display:flex; align-items:center; gap:6px; font-size:14px;
  }
  .weather .loc{ color: var(--text); }
  .weather .temp{ font-weight:600; }
  .weather-icon{ width:18px; height:18px; }

  .menu-toggle{
    display:none;
    background:none; border:none; padding:6px; color:var(--text);
  }
  .menu-toggle svg{ width:22px; height:22px; }

  /* ===== Nav ===== */
  .nav{
    background: var(--panel);
    border-bottom: 1px solid var(--panel-border);
    padding: 0 24px;
  }
  .nav-inner{
    max-width: var(--content-max);
    margin: 0 auto;
    display:flex;
    align-items:center;
    gap: 4px;
    overflow-x:auto;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar{ display:none; }
  .nav-icon-btn{
    background:none; border:none; padding:14px 10px; color:var(--text-soft); font-size:18px;
  }
  .nav-inner a{
    padding: 14px 12px;
    font-size: 14.5px;
    color: var(--text-soft);
    border-bottom: 3px solid transparent;
    flex-shrink:0;
    white-space:nowrap;
  }
  .nav-inner a.active{
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight:600;
  }
  .nav-inner a:hover{ color: var(--accent); }
  .nav-spacer{ flex:1; }
  .nav-more{ padding:14px 8px; color:var(--text-soft); font-size:18px; letter-spacing:2px; }
  .personalize-btn{
    display:flex; align-items:center; gap:6px;
    border:1px solid var(--pill-border);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight:600;
    color: var(--text);
    background: var(--panel);
    flex-shrink:0;
    margin: 8px 0;
  }
  .personalize-btn svg{ width:15px; height:15px; }

  /* ===== Layout ===== */
  .layout{
    max-width: var(--content-max);
    margin: 20px auto;
    padding: 0 24px;
    display:grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items:start;
  }

  .panel{
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
  }

  /* ===== Hero ===== */
  .hero-panel{ position:relative; }
  .hero-media{
    position:relative;
    aspect-ratio: 16/7.5;
    overflow:hidden;
    background:#000;
  }
  .hero-slides{
    display:flex;
    width:200%;
    height:100%;
    transition: transform .5s ease;
  }
  .hero-slide{
    width:50%;
    height:100%;
    display:flex;
  }
  .hero-slide img{ width:100%; height:100%; object-fit:cover; }
  .hero-split img{ width:50%; height:100%; object-fit:cover; }

  .hero-dots{
    position:absolute; top:14px; left:50%; transform:translateX(-50%);
    display:flex; gap:5px;
  }
  .hero-dots span{
    width: 26px; height:3px; border-radius:2px; background: rgba(255,255,255,.45);
    cursor:pointer;
  }
  .hero-dots span.active{ background:#fff; }

  .hero-source{
    position:absolute; left:16px; bottom:88px;
    display:flex; align-items:center; gap:6px;
    background: rgba(0,0,0,.55);
    color:#fff;
    padding: 4px 10px 4px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight:600;
  }
  .hero-source .badge{
    width:16px; height:16px; background:#d81f26; color:#fff; border-radius:3px;
    display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800;
  }

  .hero-body{ padding: 16px 18px 18px; background:var(--panel); }
  .hero-title{
    font-size: 21px;
    font-weight: 700;
    line-height:1.3;
    margin-bottom: 8px;
  }
  .hero-desc{
    font-size: 14px;
    color: var(--text-soft);
    line-height:1.5;
    margin-bottom: 14px;
  }
  .reaction-row{ display:flex; gap: 14px; }
  .reaction-row button{
    width:30px; height:30px; border-radius:50%; border:1px solid var(--pill-border);
    background:#fff; display:flex; align-items:center; justify-content:center; color:var(--text-soft); font-size:14px;
  }
  .reaction-row button:hover{ border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .reaction-row button.liked{ color:#1c7a4d; border-color:#1c7a4d; background:var(--accent-soft); }
  .reaction-row button.disliked{ color:#d0021b; border-color:#d0021b; background:#fdecec; }

  /* ===== Side rail ===== */
  .rail{ display:flex; flex-direction:column; gap: 16px; }
  .story-card{ padding: 14px 16px; }
  .story-source{
    display:flex; align-items:center; gap:6px;
    font-size: 12px; font-weight:600; color: var(--text-soft);
    margin-bottom: 8px;
  }
  .story-source .mini-badge{
    height:16px; border-radius:3px; background:#d81f26; color:#fff;
    padding: 10px;
    display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:800; flex-shrink:0;
  }
  .story-content{ display:flex; gap:12px; align-items:flex-start; }
  .story-text{ flex:1; }
  .story-title{ font-size: 14.5px; font-weight:700; line-height:1.35; }
  .story-title:hover{ color: var(--accent); text-decoration:underline; }
  .story-thumb{
    width:78px; height:60px; border-radius:6px; object-fit:cover; flex-shrink:0; background:#eee;
  }
  .story-reactions{ display:flex; gap:10px; margin-top:10px; }
  .story-reactions button{
    width:26px; height:26px; border-radius:50%; border:1px solid var(--pill-border);
    background:#fff; display:flex; align-items:center; justify-content:center; color:var(--text-soft); font-size:12px;
  }
  .story-reactions button:hover{ border-color: var(--accent); color: var(--accent); }

  .video-card{ position:relative; padding:0; }
  .video-media{
    position:relative; aspect-ratio: 16/10; overflow:hidden; background:#111;
  }
  .video-media img{ width:100%; height:100%; object-fit:cover; opacity:.75; }
  .video-brand{
    position:absolute; top:12px; left:12px; display:flex; align-items:center; gap:6px;
    color:#fff; font-size:12.5px; font-weight:700;
  }
  .video-brand .dm{ font-size:16px; }
  .play-btn{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:52px; height:52px; border-radius:50%; background: rgba(255,255,255,.9);
    display:flex; align-items:center; justify-content:center; color:#111; font-size:20px;
    border:none;
  }
  .video-title{
    position:absolute; left:14px; right:14px; bottom:12px;
    color:#fff; font-size:14.5px; font-weight:700; line-height:1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
  }

  /* ===== Trending stories strip (scrolling, sits right after hero) ===== */
  .stories-section{
    max-width: var(--content-max);
    margin: 0 auto 4px;
    padding: 0 24px;
  }
  .stories-heading{
    display:flex;
    align-items:center;
    gap:8px;
    font-size: 15px;
    font-weight:700;
    margin-bottom: 12px;
  }
  .stories-heading .live-dot{
    width:7px; height:7px; border-radius:50%; background: var(--live-red);
    box-shadow: 0 0 0 3px rgba(216,31,38,.15);
    flex-shrink:0;
  }
  .stories-scroll{
    display:flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }
  .stories-scroll::-webkit-scrollbar{ height:6px; }
  .stories-scroll::-webkit-scrollbar-thumb{ background: var(--pill-border); border-radius: 6px; }
  .stories-scroll::-webkit-scrollbar-track{ background: transparent; }

  .story-bubble{
    position:relative;
    flex: 0 0 auto;
    width: 150px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #111;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .story-bubble img{
    position:absolute; inset:0;
    width:100%; height:100%; object-fit:cover;
    transition: transform .3s ease;
  }
  .story-bubble:hover img{ transform: scale(1.05); }
  .story-bubble::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 60%);
  }
  .story-bubble-ring{
    position:absolute; top:8px; left:8px; right:8px;
    display:flex; align-items:center; justify-content:space-between;
    z-index:2;
  }
  .story-bubble-rank{
    width:22px; height:22px; border-radius:50%;
    background: rgba(255,255,255,.92); color: var(--accent);
    font-size:11px; font-weight:800;
    display:flex; align-items:center; justify-content:center;
  }
  .story-bubble-badge{
    height:18px; border-radius:4px; background:#d81f26; color:#fff;
    font-size:9px; font-weight:800;
    padding: 10px;
    display:flex; align-items:center; justify-content:center;
  }
  .story-bubble-body{
    position:absolute; left:10px; right:10px; bottom:10px;
    z-index:2;
    color:#fff;
  }
  .story-bubble-title{
    font-size: 12.5px;
    font-weight:700;
    line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
  }
  .story-bubble-meta{
    font-size: 10.5px;
    color: rgba(255,255,255,.8);
    margin-top:6px;
  }

  /* ===== News sections ===== */
  .news-section{
    max-width: var(--content-max);
    margin: 8px auto 40px;
    padding: 0 24px;
  }
  .news-section-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 14px;
  }
  .section-heading{
    font-size: 19px;
    font-weight: 700;
  }
  .view-toggle{
    display:flex;
    border: 1px solid var(--pill-border);
    border-radius: 8px;
    overflow:hidden;
    background: #fff;
    flex-shrink:0;
  }
  .view-btn{
    width: 34px; height: 32px;
    display:flex; align-items:center; justify-content:center;
    background: #fff;
    border:none;
    color: var(--text-soft);
  }
  .view-btn + .view-btn{ border-left: 1px solid var(--pill-border); }
  .view-btn svg{ width:16px; height:16px; }
  .view-btn:hover{ color: var(--accent); }
  .view-btn.active{ background: var(--accent-soft); color: var(--accent); }

  .category-pills{
    display:flex;
    gap: 8px;
    overflow-x:auto;
    padding-bottom: 4px;
    margin-bottom: 18px;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar{ display:none; }
  .cat-pill{
    flex-shrink:0;
    border: 1px solid var(--pill-border);
    background: #fff;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
  }
  .cat-pill:hover{ border-color: var(--accent); color: var(--accent); }
  .cat-pill.active{
    background: var(--pill-active-bg);
    color: var(--pill-active-text);
    border-color: var(--pill-active-bg);
  }

  /* Grid view */
  .news-cards.grid-view{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .news-cards.grid-view .news-card{
    display:flex;
    flex-direction:column;
  }
  .news-cards.grid-view .news-thumb{
    width:100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius) var(--radius) 0 0;
    object-fit:cover;
    background:#eee;
  }
  .news-cards.grid-view .news-card-body{
    padding: 12px 14px 14px;
  }

  /* List view */
  .news-cards.list-view{
    display:flex;
    flex-direction:column;
    gap: 12px;
  }
  .news-cards.list-view .news-card{
    display:flex;
    flex-direction:row;
    align-items:stretch;
  }
  .news-cards.list-view .news-thumb{
    width: 180px;
    height: 120px;
    flex-shrink:0;
    border-radius: var(--radius) 0 0 var(--radius);
    object-fit:cover;
    background:#eee;
  }
  .news-cards.list-view .news-card-body{
    padding: 12px 18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .news-cards.list-view .news-desc{ display:block; }

  .news-card{
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
    transition: box-shadow .15s ease, transform .15s ease;
  }
  .news-card:hover{
    box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
  }
  .news-card-source{
    display:flex; align-items:center; gap:6px;
    font-size: 11.5px; font-weight:600; color: var(--text-soft);
    margin-bottom: 6px;
  }
  .news-card-source .mini-badge{
    height:15px; border-radius:3px; background:#d81f26; color:#fff;
    padding: 10px;
    display:flex; align-items:center; justify-content:center; font-size:8px; font-weight:800; flex-shrink:0;
  }
  .news-card-title{
    font-size: 14px;
    font-weight:700;
    line-height:1.35;
    margin-bottom: 4px;
  }
  .news-card:hover .news-card-title{ color: var(--accent); text-decoration:underline; }
  .news-desc{
    display:none;
    font-size: 12.5px;
    color: var(--text-faint);
    line-height:1.4;
    margin-top: 4px;
  }
  .news-card-time{
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 8px;
  }
  .empty-state{
    grid-column: 1 / -1;
    text-align:center;
    padding: 40px 20px;
    color: var(--text-faint);
    font-size: 14px;
  }

  /* Trending now (dedicated list section) */
  .trending-section{ margin-top: 4px; }
  .trending-list{
    display:flex;
    flex-direction:column;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .trending-row{
    display:flex;
    align-items:center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--panel-border);
    transition: background .12s ease;
  }
  .trending-row:last-child{ border-bottom:none; }
  .trending-row:hover{ background: var(--bg); }
  .trending-rank{
    width: 28px;
    flex-shrink:0;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-faint);
    text-align:center;
    font-variant-numeric: tabular-nums;
  }
  .trending-row:nth-child(-n+3) .trending-rank{ color: var(--accent); }
  .trending-thumb{
    width: 88px;
    height: 64px;
    border-radius: 6px;
    object-fit:cover;
    flex-shrink:0;
    background:#eee;
  }
  .trending-body{ flex:1; min-width:0; }
  .trending-source{
    display:flex; align-items:center; gap:6px;
    font-size: 11.5px; font-weight:600; color: var(--text-soft);
    margin-bottom: 4px;
  }
  .trending-source .mini-badge{
    height:15px; border-radius:3px; background:#d81f26; color:#fff;
    padding: 10px;
    display:flex; align-items:center; justify-content:center; font-size:8px; font-weight:800; flex-shrink:0;
  }
  .trending-title{
    font-size: 14px;
    font-weight: 700;
    line-height:1.35;
  }
  .trending-row:hover .trending-title{ color: var(--accent); text-decoration:underline; }
  .trending-meta{
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 5px;
    display:flex;
    align-items:center;
    gap:6px;
  }
  .trending-meta .dot{ width:3px; height:3px; border-radius:50%; background: var(--text-faint); }

  /* ===== Footer ===== */
  .footer{
    background: var(--panel);
    border-top: 1px solid var(--panel-border);
    margin-top: 20px;
  }
  .footer-inner{
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 36px 24px 20px;
  }
  .footer-top{
    display:grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--panel-border);
  }
  .footer-brand{
    display:flex; align-items:center; gap:8px;
    font-weight:700; font-size:16px;
    margin-bottom: 10px;
  }
  .footer-brand svg{ width:22px; height:22px; }
  .footer-tagline{
    font-size: 12.5px;
    color: var(--text-faint);
    line-height:1.5;
    max-width: 240px;
  }
  .footer-col-title{
    font-size: 12.5px;
    font-weight:700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
  }
  .footer-links{
    display:flex;
    flex-direction:column;
    gap: 9px;
  }
  .footer-links a{
    font-size: 13px;
    color: var(--text-soft);
  }
  .footer-links a:hover{ color: var(--accent); text-decoration:underline; }
  .footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
  }
  .footer-copy{
    font-size: 12px;
    color: var(--text-faint);
  }
  .footer-legal{
    display:flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-legal a{
    font-size: 12px;
    color: var(--text-faint);
  }
  .footer-legal a:hover{ color: var(--accent); }
  .footer-social{
    display:flex;
    gap: 10px;
  }
  .footer-social a{
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--pill-border);
    display:flex; align-items:center; justify-content:center;
    color: var(--text-soft);
    font-size: 13px;
  }
  .footer-social a:hover{ border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

  /* ===================================================================
     RESPONSIVE
     =================================================================== */

  @media (max-width: 600px){
    .trending-thumb{ width: 64px; height: 50px; }
    .trending-row{ gap: 10px; padding: 12px 14px; }
  }

  @media (max-width: 1180px){
    .news-cards.grid-view{ grid-template-columns: repeat(3, 1fr); }
  }

  @media (max-width: 900px){
    .news-cards.grid-view{ grid-template-columns: repeat(2, 1fr); }

    /* Side rail moves below the hero instead of beside it */
    .layout{
      grid-template-columns: 1fr;
    }
    .rail{
      flex-direction: row;
      flex-wrap: wrap;
      gap: 14px;
    }
    .rail > *{
      flex: 1 1 300px;
    }

    .footer-top{
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 760px){
    .header{ padding: 0 14px; }
    .header-inner{ padding: 10px 0; gap: 12px; }
    .logo span{ display:none; }

    .weather .loc{ display:none; }
    .header-right{ gap: 10px; }

    .search{ padding: 8px 12px; }

    .nav{ padding: 0 14px; }
    .personalize-btn span{ display:none; }
    .personalize-btn{ padding: 7px 10px; }

    .layout{ margin: 14px auto; padding: 0 14px; gap: 14px; }
    .rail{ flex-direction: column; }
    .rail > *{ flex: 1 1 auto; }

    .hero-title{ font-size: 18px; }
    .hero-body{ padding: 14px; }

    .stories-section{ padding: 0 14px; }
    .story-bubble{ width: 112px; height: 180px; }

    .news-section{ padding: 0 14px; margin: 8px auto 28px; }
    .section-heading{ font-size: 17px; }

    .news-cards.grid-view{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .news-cards.grid-view .news-card-body{ padding: 10px 12px 12px; }
    .news-card-title{ font-size: 13px; }

    .news-cards.list-view .news-thumb{ width: 110px; height: 84px; }
    .news-cards.list-view .news-card-body{ padding: 10px 12px; }

    .trending-thumb{ width: 56px; height: 44px; }
    .trending-row{ padding: 10px 12px; gap: 10px; }
    .trending-title{ font-size: 13px; }

    .footer-inner{ padding: 28px 14px 16px; }
    .footer-top{ grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-bottom{ justify-content: flex-start; }
  }

  @media (max-width: 520px){
    .search{ display:none; }
    .menu-toggle{ display:flex; }

    .nav-inner a{ padding: 12px 9px; font-size: 13.5px; }

    .news-cards.grid-view{ grid-template-columns: 1fr 1fr; }
    .hero-desc{ font-size: 13px; }

    .story-bubble{ width: 100px; height: 164px; }
    .story-bubble-title{ font-size: 11.5px; }

    .footer-top{ grid-template-columns: 1fr; gap: 22px; }
  }

  @media (max-width: 400px){
    .news-cards.grid-view{ grid-template-columns: 1fr; }
    .story-thumb{ width: 64px; height: 50px; }
  }