:root{
  --bg:#0A0E16;
  --bg-raised:#111827;
  --bg-card:#151E2E;
  --line:#22304A;
  --white:#F4F7FB;
  --grey:#9AA9BD;
  --blue:#2F6FED;
  --blue-bright:#4C8CFF;
  --blue-deep:#122349;
  --blue-glow: rgba(76,140,255,.35);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--white);
  font-family:'Inter', sans-serif; -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
::-webkit-scrollbar{height:0; width:8px;}
::-webkit-scrollbar-thumb{background:var(--line); border-radius:8px;}
ul{margin:0; padding:0;}

/* ===== Top nav ===== */
.topnav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 44px; transition:background .25s ease, box-shadow .25s ease;
}
.topnav.solid{background:rgba(8,11,18,.94); box-shadow:0 2px 18px rgba(0,0,0,.4); backdrop-filter:blur(6px);}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; font-size:1.35rem; letter-spacing:-0.02em;}
.brand .mark{width:26px; height:26px; border-radius:7px; background:linear-gradient(135deg,var(--blue-bright),var(--blue-deep)); display:flex; align-items:center; justify-content:center; font-size:.85rem;}
.nav-links{display:flex; align-items:center; gap:28px;}
.nav-links a{font-size:.9rem; font-weight:600; color:var(--grey); transition:color .15s;}
.nav-links a:hover{color:var(--white);}
.country-select{position:relative;}
.country-select > button{font-size:.9rem; font-weight:600; color:var(--grey); display:flex; align-items:center; gap:6px;}
.country-select > button:hover{color:var(--white);}
.country-dropdown{
  position:absolute; top:130%; left:0; background:var(--bg-raised); border:1px solid var(--line);
  border-radius:8px; padding:8px; min-width:190px; display:none; flex-direction:column; gap:2px;
  box-shadow:0 20px 40px rgba(0,0,0,.5);
}
.country-select:hover .country-dropdown{display:flex;}
.country-dropdown a{padding:9px 12px; border-radius:6px; font-size:.87rem; font-weight:500; color:var(--grey);}
.country-dropdown a:hover{background:var(--bg-card); color:var(--white);}

/* ===== Home Hero ===== */
.hero{
  position:relative; height:88vh; min-height:560px; display:flex; align-items:flex-end;
  padding:0 44px 70px; overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(76,140,255,.35), transparent 55%),
    linear-gradient(180deg, rgba(10,14,22,0) 0%, rgba(10,14,22,.4) 55%, var(--bg) 100%),
    linear-gradient(115deg, #0D1424 0%, #16264A 45%, #0A0E16 100%);
}
.hero-content{position:relative; z-index:1; max-width:640px;}
.hero-tag{display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:700; color:var(--blue-bright); margin-bottom:16px;}
.hero-tag .dot{width:7px; height:7px; border-radius:50%; background:var(--blue-bright); box-shadow:0 0 10px var(--blue-glow);}
.hero h1{font-size:3.4rem; font-weight:900; line-height:1.05; letter-spacing:-0.03em; margin:0 0 18px;}
.hero p{font-size:1.05rem; color:var(--grey); line-height:1.55; margin:0 0 28px; max-width:56ch;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:10px; font-weight:700; font-size:.95rem;
  padding:13px 26px; border-radius:6px; transition:transform .12s ease, background .15s ease;
}
.btn-primary{background:var(--white); color:#0A0E16;}
.btn-primary:hover{background:#DCE6F5; transform:translateY(-1px);}
.btn-secondary{background:rgba(255,255,255,.1); color:var(--white); border:1px solid rgba(255,255,255,.18);}
.btn-secondary:hover{background:rgba(255,255,255,.16);}
.btn .ic{width:0; height:0; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent currentColor;}

.chip-strip{position:relative; z-index:1; display:flex; gap:10px; margin-top:32px; flex-wrap:wrap;}
.chip{
  display:flex; align-items:center; gap:9px; padding:7px 16px 7px 8px; border-radius:30px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); font-size:.83rem; font-weight:600;
  color:var(--grey); transition:all .15s ease;
}
.chip:hover{background:rgba(76,140,255,.16); border-color:var(--blue); color:var(--white);}
.chip .flagicon{width:24px; height:16px; border-radius:3px; overflow:hidden; flex-shrink:0; display:block; border:1px solid rgba(255,255,255,.2);}
.chip .flagicon svg{width:100%; height:100%; display:block;}

/* ===== Rows ===== */
main{position:relative; z-index:2; padding-bottom:80px; margin-top:-90px;}
.row-section{padding:0 44px; margin-bottom:42px;}
.row-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px;}
.row-head h2{font-size:1.35rem; font-weight:800; letter-spacing:-0.01em; margin:0;}

.row-scroll-wrap{position:relative;}
.row-scroll{display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x proximity; padding:4px 2px 14px;}
.row-arrow{
  position:absolute; top:0; bottom:14px; width:52px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(90deg, var(--bg), transparent); z-index:5; opacity:0; transition:opacity .15s;
}
.row-arrow.right{right:0; left:auto; background:linear-gradient(270deg, var(--bg), transparent);}
.row-scroll-wrap:hover .row-arrow{opacity:1;}
.row-arrow span{font-size:1.4rem; color:var(--white); background:rgba(0,0,0,.5); width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;}

.card{flex:0 0 300px; scroll-snap-align:start; cursor:pointer; transition:transform .2s ease; position:relative;}
.card:hover{transform:scale(1.045); z-index:3;}
.card-thumb{
  aspect-ratio:16/9; border-radius:8px; overflow:hidden; position:relative;
  background:linear-gradient(135deg, var(--t1,#1B3A78), var(--t2,#0A1730));
  border:1px solid rgba(255,255,255,.06);
}
.card-thumb::after{content:""; position:absolute; inset:0; opacity:0; transition:opacity .2s ease; background:linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 45%);}
.card:hover .card-thumb::after{opacity:1;}
.card-thumb .badge{position:absolute; top:10px; left:10px; font-size:.66rem; font-weight:800; letter-spacing:.02em; padding:3px 8px; border-radius:4px; background:rgba(0,0,0,.55); color:var(--blue-bright); text-transform:uppercase;}
.card-thumb .dur{position:absolute; bottom:9px; right:9px; font-size:.7rem; font-weight:700; padding:2px 7px; background:rgba(0,0,0,.65); border-radius:4px;}
.card-thumb .playbtn{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(.8); opacity:0; width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.94); display:flex; align-items:center; justify-content:center; transition:all .2s ease;}
.card:hover .playbtn{opacity:1; transform:translate(-50%,-50%) scale(1);}
.card-thumb .playbtn::after{content:""; border-style:solid; border-width:9px 0 9px 14px; border-color:transparent transparent transparent #0A0E16; margin-left:3px;}
.card-title{font-size:.86rem; font-weight:700; margin-top:9px; line-height:1.3;}
.card-sub{font-size:.75rem; color:var(--grey); margin-top:3px;}
.card.short{flex-basis:170px;}
.card.short .card-thumb{aspect-ratio:9/16;}

/* ===== Country grid (home) ===== */
.country-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.country-card{
  background:var(--bg-card); border:1px solid var(--line); border-radius:10px; padding:18px;
  display:flex; flex-direction:column; gap:10px; transition:transform .15s ease, border-color .15s ease;
}
.country-card:hover{transform:translateY(-3px); border-color:var(--blue);}
.country-card-flag{width:44px; height:29px; border-radius:4px; overflow:hidden; border:1px solid rgba(255,255,255,.15);}
.country-card-flag svg{width:100%; height:100%; display:block;}
.country-card-name{font-weight:800; font-size:1.05rem;}
.country-card-headline{font-size:.82rem; color:var(--grey); line-height:1.4;}

footer{border-top:1px solid var(--line); padding:36px 44px; color:var(--grey); font-size:.8rem;}
footer .disclaimer{max-width:78ch; line-height:1.6; margin-bottom:10px;}

/* ===== Country detail page ===== */
.c-hero{position:relative; padding:170px 44px 60px; overflow:hidden; min-height:420px;}
.c-hero-bg{position:absolute; inset:0; z-index:0;}
.c-hero-bg::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,14,22,.15) 0%, var(--bg) 92%);}
.c-hero-content{position:relative; z-index:1;}
.crumb{font-size:.82rem; color:var(--grey); margin-bottom:18px;}
.crumb a:hover{color:var(--white);}
.flag-wrap{width:64px; height:43px; border-radius:6px; overflow:hidden; border:1px solid rgba(255,255,255,.25); box-shadow:0 6px 18px rgba(0,0,0,.4); margin-bottom:16px;}
.flag-wrap svg{width:100%; height:100%; display:block;}
.c-hero h1{font-size:3rem; font-weight:900; letter-spacing:-0.02em; margin:0 0 14px;}
.c-hero .headline{font-size:1.05rem; color:var(--grey); max-width:66ch; line-height:1.55; margin-bottom:26px;}
.stat-row{display:flex; gap:36px; margin-bottom:30px; flex-wrap:wrap;}
.stat-row .st .num{font-size:1.9rem; font-weight:900; display:block; color:var(--white);}
.stat-row .st .lbl{font-size:.76rem; color:var(--grey); margin-top:2px; max-width:20ch;}

.c-panel{padding:10px 44px 80px;}
.grid-rows{display:flex; flex-direction:column; gap:44px; max-width:1400px;}
.section-title{font-size:1.35rem; font-weight:800; margin:0 0 14px; letter-spacing:-0.01em;}
.lede{max-width:76ch; color:var(--grey); line-height:1.65; font-size:.98rem; margin:0 0 18px;}

.disputed{background:var(--bg-card); border:1px solid var(--line); border-left:3px solid var(--blue); padding:16px 20px; border-radius:8px; max-width:780px; font-size:.87rem; line-height:1.6; color:var(--grey);}
.disputed b{color:var(--white);}

.ep-list{display:grid; gap:0; max-width:900px;}
.ep-item{display:grid; grid-template-columns:150px 1fr; gap:20px; padding:20px 0; border-bottom:1px solid var(--line); align-items:center;}
.ep-thumb{aspect-ratio:16/9; border-radius:6px; background:linear-gradient(135deg,var(--t1,#1B3A78),var(--t2,#0A1730)); position:relative; display:flex; align-items:center; justify-content:center;}
.ep-thumb .playbtn{width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center;}
.ep-thumb .playbtn::after{content:""; border-style:solid; border-width:7px 0 7px 11px; border-color:transparent transparent transparent #0A0E16; margin-left:2px;}
.ep-date{font-size:.72rem; color:var(--blue-bright); font-weight:700; margin-bottom:5px;}
.ep-title{font-weight:700; font-size:.98rem; margin-bottom:5px;}
.ep-body{font-size:.85rem; color:var(--grey); line-height:1.5;}

.action-box{background:var(--bg-card); border:1px solid var(--line); border-radius:12px; padding:26px 28px; max-width:640px;}
.action-list{list-style:none; display:flex; flex-direction:column; gap:12px;}
.action-list li{position:relative; padding-left:26px; font-size:.92rem; color:var(--white); line-height:1.5;}
.action-list li::before{content:"→"; position:absolute; left:0; color:var(--blue-bright); font-weight:700;}

.not-just{border-top:1px solid var(--line); padding-top:24px; font-size:.92rem; color:var(--grey); line-height:1.6;}
.not-just a{color:var(--blue-bright); font-weight:600;}
.not-just a:hover{text-decoration:underline;}

@media(max-width:860px){
  .topnav{padding:14px 20px;}
  .nav-links{gap:16px;}
  .hero{padding:0 20px 50px; height:76vh;}
  .hero h1{font-size:2.2rem;}
  .row-section{padding:0 20px;}
  .card{flex-basis:220px;}
  .c-hero, .c-panel{padding-left:20px; padding-right:20px;}
  .c-hero{padding-top:130px;}
  .ep-item{grid-template-columns:110px 1fr;}
  .country-grid{grid-template-columns:repeat(2,1fr);}
  .stat-row{gap:22px;}
}
