:root{
  --red:#d71920;
  --blue:#0b2a6f;
  --border:#e5e5e5;
  --text:#111;
  --muted:#666;
  --bg:#ffffff;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  padding:24px;
  font-family:"Segoe UI", Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
}

/* Airmail frame */
.frame{
  max-width:1200px;
  margin:0 auto;
  padding:10px;
  border-radius:26px;
  background:repeating-linear-gradient(
    45deg,
    var(--red) 0 14px,
    #fff 14px 28px,
    var(--blue) 28px 42px,
    #fff 42px 56px
  );
}

/* Inner panel */
.panel{
  background:#fff;
  border-radius:20px;
  padding:22px 22px 18px;
  border:1px solid var(--border);
}

/* Top bar: title left, logo right */
.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.h1{
  font-size:42px;
  line-height:1.05;
  margin:0;
  font-weight:800;
}

.logo{
  width:260px;
  height:auto;
}

@media (max-width: 700px){
  body{ padding:14px; }
  .h1{ font-size:34px; }
  .logo{ width:170px; }
  .topbar{ align-items:center; }
}

/* Buttons */
.btn{
  width:100%;
  padding:18px 18px;
  border-radius:18px;
  border:2px solid #3a3a3a;
  background:#fff;
  font-size:22px;
  cursor:pointer;
  transition:transform .02s ease, background .15s ease;
}

.btn:hover{ background:#fafafa; }
.btn:active{ transform:scale(0.99); }

.btn.secondary{
  border:1px solid var(--border);
  font-size:18px;
  padding:14px 14px;
  border-radius:14px;
}

.btn.small{
  width:auto;
  padding:10px 14px;
  font-size:16px;
  border-radius:12px;
}

.btn.disabled,
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  border-color:#bdbdbd;
  color:#777;
  background:#f4f4f4;
}

/* Layout blocks */
.stack{ display:flex; flex-direction:column; gap:14px; }
.row{ display:flex; gap:12px; flex-wrap:wrap; }
.row .btn{ width:auto; min-width:74px; padding:14px 16px; font-size:18px; border-radius:12px; }

.help{
  color:var(--muted);
  margin:0;
  font-size:16px;
}

/* Divider */
.hr{
  margin:18px 0;
  height:1px;
  background:var(--border);
  border:0;
}

/* Notice */
.notice{
  display:flex;
  gap:12px;
  padding:14px 14px;
  border-top:1px solid var(--border);
  margin-top:10px;
}

.notice .icon{
  font-size:24px;
  line-height:1;
  margin-top:2px;
}

.notice b{ display:block; margin-bottom:6px; }
.notice p{ margin:0; color:#333; }
.notice .fine{ margin-top:10px; color:var(--muted); }

/* Player */
.player{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background:#fff;
}

.player iframe{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  border:0;
}
