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

:root{
  --blue:#1264c9;
  --blue-dark:#0b4fa7;
  --blue-soft:#eaf3ff;
  --bg:#eef2f6;
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --text:#14171c;
  --muted:#7b8491;
  --line:#e3e8ef;
  --shadow:0 8px 28px rgba(25,55,90,.10);
  --shadow-soft:0 3px 12px rgba(25,55,90,.07);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#dfe8f4 0%,#eef2f6 45%,#f7f9fc 100%);
  color:var(--text);
}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

.phone-shell{
  width:min(100%,540px);
  min-height:100vh;
  margin:0 auto;
  background:var(--bg);
  position:relative;
  padding-bottom:72px;
  box-shadow:0 0 42px rgba(16,42,67,.16);
}

.opera-header{
  position:sticky;
  top:0;
  z-index:30;
  color:#fff;
  background:
    radial-gradient(circle at 85% 0%,rgba(255,255,255,.14),transparent 34%),
    linear-gradient(135deg,#176fd6 0%,#0c55b7 100%);
  box-shadow:0 5px 18px rgba(10,73,156,.28);
}
.status-spacer{height:6px}
.brandbar{
  height:58px;
  display:flex;
  align-items:center;
  padding:0 12px;
}
.brand-title{
  font-size:20px;
  font-weight:800;
  letter-spacing:-.02em;
  text-align:center;
  flex:1;
}
.chev{font-size:14px;margin-left:3px;opacity:.8}
.plain-icon{
  width:42px;
  height:42px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.10);
  color:white;
  font-size:21px;
  display:grid;
  place-items:center;
  transition:.18s ease;
}
.plain-icon:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}

.category-tabs{
  height:47px;
  display:flex;
  align-items:end;
  gap:2px;
  overflow-x:auto;
  padding:0 8px;
  scrollbar-width:none;
  border-top:1px solid rgba(255,255,255,.09);
}
.category-tabs::-webkit-scrollbar{display:none}
.category-tab{
  flex:0 0 auto;
  height:47px;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.70);
  padding:0 13px;
  font-size:13px;
  font-weight:600;
  position:relative;
}
.category-tab.active{color:#fff}
.category-tab.active:after{
  content:"";
  position:absolute;
  left:13px;
  right:13px;
  bottom:0;
  height:3px;
  border-radius:99px 99px 0 0;
  background:#fff;
}

.screen{
  min-height:calc(100vh - 170px);
  background:var(--bg);
  padding:10px 10px 0;
}

.story-card{
  background:var(--surface);
  margin:0 0 10px;
  padding-top:12px;
  border:1px solid rgba(225,231,239,.9);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:.18s ease;
}
.story-card:hover{transform:translateY(-1px);box-shadow:var(--shadow)}

.source-row{
  display:flex;
  align-items:center;
  padding:0 14px 9px;
  font-size:11px;
  color:var(--muted);
}
.source-dot{
  width:25px;
  height:25px;
  border-radius:8px;
  background:linear-gradient(135deg,#d9eaff,#eef5ff);
  color:var(--blue);
  font-weight:800;
  display:grid;
  place-items:center;
  margin-right:8px;
  border:1px solid #d3e6ff;
}
.source-row .source{color:#4f5967;font-weight:600}
.source-row .shares{margin-left:auto;color:#9aa2ad}

.headline{
  font-size:19px;
  line-height:1.28;
  font-weight:700;
  letter-spacing:-.015em;
  margin:0;
  padding:0 14px 12px;
}

.single-image{
  width:100%;
  height:245px;
  object-fit:cover;
  display:block;
  background:#dfe5ec;
}
.triple-images{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
  height:132px;
  padding:0 3px;
}
.triple-images img{
  width:100%;
  height:100%;
  object-fit:cover;
  background:#dfe5ec;
}

.card-footer{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:0 13px;
  color:#99a1ab;
  font-size:11px;
  gap:4px;
}
.card-footer .time{
  margin-right:auto;
  font-weight:500;
}
.bookmark{
  border:0;
  background:var(--surface-2);
  color:#7d8793;
  font-size:18px;
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
}
.bookmark:hover{background:var(--blue-soft);color:var(--blue)}
.more{
  font-size:18px;
  letter-spacing:1px;
  padding:0 6px;
  color:#9aa1aa;
}

.compact-story{
  background:var(--surface);
  margin:0 0 10px;
  padding:12px;
  border-radius:14px;
  display:grid;
  grid-template-columns:1fr 116px;
  gap:12px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.compact-story h3{
  font-size:16px;
  line-height:1.32;
  margin:6px 0 9px;
  font-weight:700;
  letter-spacing:-.01em;
}
.compact-story img{
  width:116px;
  height:86px;
  object-fit:cover;
  border-radius:11px;
}
.meta{
  font-size:10px;
  color:var(--muted);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.opera-bottom{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  z-index:35;
  width:min(100%,540px);
  height:68px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(220,227,235,.9);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  box-shadow:0 -8px 20px rgba(26,52,82,.08);
}
.bottom-tab{
  border:0;
  background:transparent;
  color:#8a94a0;
  font-size:10px;
  font-weight:600;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  position:relative;
}
.bottom-tab.active{color:var(--blue)}
.bottom-tab.active:before{
  content:"";
  position:absolute;
  top:5px;
  width:34px;
  height:34px;
  border-radius:12px;
  background:var(--blue-soft);
  z-index:-1;
}
.navicon{font-size:21px;height:24px}

.subpage-head{
  height:58px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  display:flex;
  align-items:center;
  padding:0 14px;
  font-size:19px;
  margin-bottom:10px;
  box-shadow:var(--shadow-soft);
}
.back{
  border:0;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:20px;
  width:36px;
  height:36px;
  border-radius:10px;
  margin-right:12px;
}

.search-wrap{
  padding:0;
  background:transparent;
  margin-bottom:10px;
}
.search-wrap input,
.profile-panel input,
.publisher input,
.publisher textarea,
.publisher select{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  outline:none;
  background:var(--surface);
  color:var(--text);
  transition:.16s ease;
}
.search-wrap input{
  box-shadow:var(--shadow-soft);
}
.search-wrap input:focus,
.profile-panel input:focus,
.publisher input:focus,
.publisher textarea:focus,
.publisher select:focus{
  border-color:#8ab8ef;
  box-shadow:0 0 0 3px rgba(18,100,201,.10);
}

.simple-box,.profile-panel,.publisher{
  background:var(--surface);
  padding:20px 16px;
  margin-bottom:10px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.simple-box h2,.profile-panel h2,.publisher h2{
  margin:0 0 9px;
  font-size:20px;
  letter-spacing:-.015em;
}
.muted{color:var(--muted);line-height:1.55}
.small{font-size:12px;margin-top:7px}

.profile-panel{
  min-height:245px;
  text-align:center;
  padding-top:28px;
}
.avatar{
  width:76px;
  height:76px;
  border-radius:24px;
  background:linear-gradient(135deg,#176fd6,#0b4ea6);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:29px;
  font-weight:800;
  margin:0 auto 14px;
  box-shadow:0 12px 24px rgba(18,100,201,.25);
}
.blue-button,.line-button{
  width:100%;
  border-radius:11px;
  padding:13px;
  margin-top:10px;
  font-weight:700;
  transition:.16s ease;
}
.blue-button{
  background:linear-gradient(135deg,#176fd6,#0d58b8);
  border:0;
  color:#fff;
  box-shadow:0 8px 16px rgba(18,100,201,.20);
}
.blue-button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(18,100,201,.25)}
.line-button{
  background:#fff;
  border:1px solid var(--line);
  color:#434b56;
}

.publisher{
  display:flex;
  flex-direction:column;
  gap:11px;
  text-align:left;
}
.publisher textarea{min-height:105px;resize:vertical}
.publisher textarea:nth-of-type(2){min-height:190px}
.upload{
  font-size:12px;
  color:var(--muted);
  border:1px dashed #b8c5d3;
  border-radius:11px;
  padding:12px;
  background:var(--surface-2);
}
.upload input{
  border:0;
  padding:8px 0 0;
  background:transparent;
}

.manage-heading{
  background:transparent;
  padding:10px 4px 8px;
  font-weight:800;
  letter-spacing:-.01em;
}
.manage-row{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:13px;
  padding:13px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin-bottom:9px;
  box-shadow:var(--shadow-soft);
}
.manage-row h4{
  margin:0 0 5px;
  font-size:14px;
  line-height:1.35;
}
.delete{
  border:0;
  background:#fff2f2;
  color:#c23d3d;
  font-weight:700;
  border-radius:10px;
  padding:8px 10px;
}

.video-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.video-card{
  background:var(--surface);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
}
.video-card img{
  width:100%;
  height:130px;
  object-fit:cover;
}
.video-card h3{
  font-size:13px;
  line-height:1.35;
  padding:10px;
  margin:0;
}

.modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  justify-content:center;
  align-items:flex-end;
}
.shade{
  position:absolute;
  inset:0;
  background:rgba(8,18,32,.58);
  backdrop-filter:blur(2px);
}
.article-sheet{
  position:relative;
  z-index:2;
  width:min(100%,540px);
  max-height:95vh;
  overflow:auto;
  background:#fff;
  border-radius:24px 24px 0 0;
  box-shadow:0 -14px 45px rgba(0,0,0,.22);
}
.close{
  position:absolute;
  right:14px;
  top:14px;
  width:40px;
  height:40px;
  border-radius:13px;
  border:0;
  background:rgba(255,255,255,.94);
  font-size:24px;
  box-shadow:var(--shadow-soft);
}
.sheet-image{
  width:100%;
  height:285px;
  object-fit:cover;
}
.sheet-copy{padding:22px}
.sheet-copy h1{
  font-size:29px;
  line-height:1.14;
  letter-spacing:-.025em;
  margin:10px 0 12px;
}
.deck{
  color:#626d79;
  line-height:1.6;
  font-size:15px;
}
.bodycopy{
  font-family:Georgia,serif;
  font-size:17px;
  line-height:1.8;
  white-space:pre-wrap;
  color:#2c3138;
}

@media(min-width:541px){
  body{padding:18px 0}
  .phone-shell{
    min-height:calc(100vh - 36px);
    border-radius:24px;
    overflow:hidden;
  }
  .opera-bottom{bottom:18px;border-radius:0 0 24px 24px}
}
