/* ==========================
   Me.space (retro / pop)
   ========================== */


html { overflow-y: scroll; }


:root{
  --bg: #0b0a12;
  --text: #f4f3ff;


  --panel: #15122a;
  --panel2: #110f22;


  --line: #ff3bd4;      /* ピンク線 */
  --line2: #7a5cff;     /* 紫線 */
  --bolt: #ffe600;      /* 稲妻アクセント */


  --shadow: #000;
  --hi: #ffffff;
}


body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;


  /* 下にタスクバーある前提で余白 */
  padding-bottom: 70px;
}


/* ===== Header ===== */
.mespace-header{
  width: min(980px, 92vw);
  margin: 24px auto 12px;
  text-align: center;
}


.mespace-title{
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-shadow:
    0 0 0.5px var(--bolt),
    0 0 10px rgba(255,230,0,0.12);
}


.mespace-sub{
  font-size: 12px;
  opacity: 0.85;
}


/* ===== 2-column layout ===== */
.mespace-main{
  width: min(980px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


@media (max-width: 820px){
  .mespace-main{ grid-template-columns: 1fr; }
}


/* ===== Panels (Win-ish, but pop) ===== */
.panel{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  padding: 14px;


  /* 角丸やめて、古い感じ */
  border-radius: 0;


  /* 立体っぽい枠：外枠＋内枠 */
  border: 2px solid var(--line2);
  box-shadow:
    0 0 0 2px rgba(255,59,212,0.25),
    3px 3px 0 var(--shadow);
}


/* 見出しバー */
.panel-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  margin-bottom: 12px;


  padding: 6px 8px;
  background: #2a1b6f;
  color: #fff;


  border: 2px solid var(--line);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.15),
    inset -1px -1px 0 rgba(0,0,0,0.6);
}


.panel-ico{
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}


/* ===== Album grid ===== */
.album-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}


@media (max-width: 820px){
  .album-grid{ grid-template-columns: repeat(4, 1fr); }
}


.album{
  border: 2px solid rgba(255,59,212,0.35);
  background: #0c0b16;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;


  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.10),
    inset -1px -1px 0 rgba(0,0,0,0.8);
}


.album:hover{
  border-color: var(--bolt);
}


.album img{
  display: block;
  width: 100%;
  height: auto;
}


/* ===== Player ===== */
.player{
  display: grid;
  gap: 8px;
}


.nowplaying{
  font-size: 12px;
  opacity: 0.95;
}


.nowplaying .label{
  opacity: 0.75;
  margin-right: 6px;
  color: var(--bolt);
}


audio{ width: 100%; }


/* ===== Tracklist ===== */
.tracklist{
  display: grid;
  gap: 6px;
  padding-left: 18px;
}


.track{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}


.track button{
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;


  border: 2px solid rgba(255,59,212,0.45);
  background: #0c0b16;
  color: var(--text);
  cursor: pointer;


  box-shadow: 2px 2px 0 #000;
}


.track button:hover{
  border-color: var(--bolt);
  color: var(--bolt);
}


.hint{
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}


/* ===== Comics section ===== */
.panel.comics{
  width: min(980px, 92vw);
  margin: 18px auto 0;
}


.comic-list{
  display: grid;
  gap: 10px;
}


.comic-item{
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 10px;


  padding: 10px 12px;
  border-radius: 0;
  border: 2px solid rgba(255,59,212,0.35);
  background: #0c0b16;


  color: var(--text);
  text-decoration: none;


  box-shadow: 2px 2px 0 #000;
}


.comic-item:hover{
  border-color: var(--bolt);
}


.comic-no{
  font-weight: 900;
  color: var(--bolt);
}


.badge{
  width: 44px;
  height: auto;
  image-rendering: pixelated;
}

/* ===== Pink scrollbar (Chrome/Safari/Edge) ===== */
::-webkit-scrollbar{
  width: 12px;
}
::-webkit-scrollbar-track{
  background: #1a1733;
}
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ff3bd4, #7a5cff);
  border: 2px solid #0b0a12;
}
::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #ffe600, #ff3bd4);
}

.panel-emoji{
  font-size: 18px;
  line-height: 1;
}

/* ===== COMIC 構造 ===== */


.comic-work{
  margin-top: 18px;
}


/* タイトルロゴ：左寄せ */
.comic-logo{
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 4px 0 6px; /* 左寄せ */
}


/* 仕切り線 */
.comic-sep{
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 6px 0 10px;
}


/* 読切表記 */
.comic-single{
  display: block;
  font-size: 13px;
  opacity: 0.8;
  padding-left: 2px;
}
/* ===== COMIC (works list) ===== */


/* 作品ブロック */
.comic-work{
  margin-top: 14px;
}


/* タイトルロゴ + 状況 横並び */
.comic-head{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}


/* タイトルロゴ（560x240でも潰れないように） */
.comic-logo{
  display: block;
  width: min(280px, 70vw); /* ここで 200〜280px相当を確保 */
  height: auto;
}


/* 状況ラベル */
.comic-status{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  color: #eee;
  white-space: nowrap;
}


/* 区切り線 */
.comic-sep{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 10px 0 10px;
}


/* 読切（1ボタンで「読む」） */
.comic-single{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: #eee;
  text-decoration: none;
}


.comic-single-text{
  font-weight: 700;
  font-size: 13px;
  opacity: 0.9;
}
.comic-warning{
  color: #c00000;
  font-size: 12px;
  font-weight: bold;
  margin: 6px 0 4px;
  line-height: 1.4;
}

#site-header{
  width: 100% !important;
  margin: 16px 0 !important;
  text-align: center !important;
}


#site-header img{
  display: block !important;
  margin: 0 auto !important;
  width: 600px !important;
  max-width: 100% !important;
  height: auto !important;
  image-rendering: pixelated;
}