/* ==========================================================================
   y4ttaze Official Fan Site & Discography - 90s/00s Retro Style
   ========================================================================== */

:root {
  --bg-color: #f0f0ee;
  --container-bg: #ffffff;
  --text-color: #222222;
  --text-muted: #555555;
  --link-color: #0000cc;
  --link-visited: #551a8b;
  --link-hover: #cc0000;
  --accent-color: #b22222;
  --accent-blue: #0055aa;
  --border-color: #888888;
  --border-light: #cccccc;
  --tag-bg: #e6e9ee;
  --font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Meiryo", "MS PGothic", sans-serif;
  --mono-family: "Courier New", Courier, "Consolas", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(#d0d0d0 1px, transparent 1px);
  background-size: 10px 10px;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.65;
  padding: 16px 8px;
  letter-spacing: 0.02em;
}

/* Site Wrapper */
.site-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--container-bg);
  border: 1px solid var(--border-color);
  padding: 24px 28px;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  .site-wrapper {
    padding: 16px 14px;
  }
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:hover, a:active {
  color: var(--link-hover);
  background-color: #ffffcc;
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #111111;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.site-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Marquee bar */
.marquee-box {
  background-color: #000000;
  border: 1px solid #444444;
  padding: 4px 8px;
  font-size: 12px;
  color: #ffff00;
  margin-bottom: 12px;
  font-family: var(--mono-family);
}

/* Access Counter */
.counter-box {
  display: inline-block;
  background-color: #f7f7f7;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  font-size: 13px;
  margin-bottom: 10px;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.counter-digits {
  font-family: var(--mono-family);
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  background-color: #000000;
  padding: 2px 6px;
  letter-spacing: 0.15em;
  margin: 0 4px;
  border: 1px solid #333333;
}

.counter-role {
  font-weight: bold;
  color: #cc0000;
  background-color: #fff0f0;
  padding: 2px 6px;
  border: 1px dashed #cc0000;
  margin: 0 4px;
  transition: all 0.2s ease;
}

.counter-role.rare-role {
  display: inline-block;
  color: #b8860b;
  background: linear-gradient(135deg, #fffdf0 0%, #ffe680 50%, #fffdf0 100%);
  background-size: 200% 200%;
  border: 2px solid #d4af37;
  padding: 3px 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8), inset 0 0 6px rgba(255, 255, 255, 0.8);
  animation: rareShine 2s infinite linear, rarePulse 1.5s infinite alternate ease-in-out;
}

@keyframes rareShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rarePulse {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  to {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 215, 0, 1), 0 0 24px rgba(255, 140, 0, 0.6);
  }
}

/* 激レア当選特別バナー */
.rare-banner {
  margin: 10px auto 4px auto;
  padding: 6px 12px;
  background: #000000;
  border: 2px dashed #ffd700;
  color: #ffff33;
  font-size: 13px;
  font-weight: bold;
  font-family: var(--mono-family);
  text-align: center;
  max-width: 520px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  animation: bannerBlink 1.2s infinite ease-in-out alternate;
}

@keyframes bannerBlink {
  from { border-color: #ffd700; color: #ffff33; }
  to { border-color: #ff3333; color: #ffffff; }
}

/* レトロ紙吹雪パーティクル */
.retro-confetti-particle {
  position: fixed;
  top: -20px;
  z-index: 9999;
  pointer-events: none;
  border-radius: 1px;
}

.meta-info {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono-family);
}

/* Navigation */
.site-nav {
  text-align: center;
  background-color: #e8e8e5;
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  margin-bottom: 24px;
  font-size: 13px;
  font-family: var(--mono-family);
  line-height: 1.8;
}

.site-nav a {
  font-weight: bold;
  margin: 0 2px;
}

/* Sections */
section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-light);
}

section:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #111111;
  background-color: #e0e0dc;
  border-left: 6px solid var(--accent-color);
  padding: 5px 10px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

/* Profile Card */
.profile-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: #fafafa;
  border: 1px solid var(--border-light);
  padding: 14px;
  margin-bottom: 16px;
}

@media (max-width: 540px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border: 1px solid #777777;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #eeeeee;
}

.profile-desc {
  flex: 1;
}

.profile-sns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  list-style: none;
}

.profile-sns-list li a {
  display: inline-block;
  padding: 2px 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-size: 12px;
}

.profile-sns-list li a:hover {
  background-color: #ffffcc;
}

/* Featured Music Grid */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.featured-card {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  padding: 14px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.08);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.featured-tag {
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  background-color: var(--accent-color);
  padding: 2px 6px;
  border-radius: 2px;
}

.featured-title {
  font-size: 15px;
  font-weight: bold;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background-color: #000000;
  margin-bottom: 10px;
  border: 1px solid #555555;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.featured-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Latest EP Featured Box */
.latest-ep-box {
  display: flex;
  gap: 16px;
  background-color: #fdfdf8;
  border: 2px solid var(--accent-color);
  padding: 14px;
  margin-top: 10px;
  align-items: center;
}

@media (max-width: 580px) {
  .latest-ep-box {
    flex-direction: column;
    text-align: center;
  }
}

.latest-ep-jacket {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #444444;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* What's New */
.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.news-table th, .news-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.news-date {
  font-family: var(--mono-family);
  font-weight: bold;
  white-space: nowrap;
  width: 105px;
  color: var(--text-muted);
}

/* Discography Components */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 4px 10px;
  background-color: #f0f0ee;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--mono-family);
  font-weight: bold;
}

.filter-btn:hover {
  background-color: #ffffcc;
}

.filter-btn.active {
  background-color: #222222;
  color: #ffffff;
  border-color: #000000;
}

/* Release Card */
.release-card {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.06);
}

.release-card-inner {
  display: flex;
  gap: 16px;
}

@media (max-width: 620px) {
  .release-card-inner {
    flex-direction: column;
  }
}

.release-jacket-wrapper {
  flex-shrink: 0;
  width: 130px;
}

.release-jacket {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 1px solid #666666;
  background-color: #eeeeee;
  display: block;
}

.release-no-jacket {
  width: 130px;
  height: 130px;
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
  font-size: 11px;
  color: #888888;
  text-align: center;
  padding: 6px;
}

.release-content {
  flex: 1;
}

.release-badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono-family);
  background-color: #222222;
  color: #ffffff;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: middle;
}

.release-title {
  font-size: 17px;
  font-weight: bold;
  color: #111111;
  margin-bottom: 4px;
}

.release-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono-family);
  margin-bottom: 8px;
}

.release-desc {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.55;
}

.release-tags {
  margin-bottom: 10px;
  font-size: 12px;
}

.tag {
  display: inline-block;
  background-color: var(--tag-bg);
  border: 1px solid #c2c8d2;
  padding: 1px 6px;
  font-size: 11px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-vocal {
  background-color: #ffeef2;
  border-color: #f2bac5;
  color: #a02040;
}

.tag-guest {
  background-color: #eef7ff;
  border-color: #b5daf8;
  color: #0055aa;
}

/* External Links */
.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.btn-link {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  background-color: #f7f7f5;
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-weight: bold;
}

.btn-link:hover {
  background-color: #ffffcc;
  color: var(--link-hover);
}

/* Tracklist UI & Edition Switcher */
.edition-box {
  margin-top: 12px;
  border: 1px solid var(--border-light);
  background-color: #fafafa;
  padding: 10px;
}

.edition-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.edition-tab-btn {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  cursor: pointer;
  font-family: var(--mono-family);
}

.edition-tab-btn.active {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  font-weight: bold;
}

.track-list {
  list-style: none;
  font-size: 12px;
  font-family: var(--mono-family);
  line-height: 1.7;
}

.track-list li {
  border-bottom: 1px dotted #e0e0e0;
  padding: 2px 0;
}

.track-list li:last-child {
  border-bottom: none;
}

.track-exclusive {
  color: #cc0000;
  font-weight: bold;
  font-size: 10px;
  background-color: #fff0f0;
  padding: 1px 4px;
  border: 1px solid #ffd0d0;
  margin-left: 6px;
}

/* Links Section & Banners */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.link-card {
  border: 1px solid var(--border-light);
  background-color: #fafafa;
  padding: 10px;
}

.link-banner-wrapper {
  margin-bottom: 8px;
}

.link-banner-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  aspect-ratio: 88 / 31;
  border: 1px solid #444444;
  display: block;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.link-banner-img:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.link-card-title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
}

.link-card-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.banner-box {
  background-color: #f7f7f7;
  border: 1px dashed var(--border-color);
  padding: 12px;
  text-align: center;
  margin-top: 14px;
}

.retro-banner {
  display: inline-block;
  width: 200px;
  padding: 6px 10px;
  background-color: #000000;
  color: #00ff66;
  border: 2px outset #ffffff;
  font-family: var(--mono-family);
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  border-top: 2px solid var(--border-color);
  padding-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono-family);
}

/* ==========================================================================
   Links Hub & Quick Guide (ファンの効用最大化・リンク整理)
   ========================================================================== */
.profile-links-hub {
  margin-top: 14px;
  background: #fafafa;
  border: 1px solid #d4d0c8;
  padding: 10px 12px;
}

.links-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.links-hub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  border-radius: 2px;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.05);
}

.hub-btn {
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  background: #eee;
  border: 2px outset #fff;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-btn:hover {
  background: #e0e0e0;
}

.hub-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub-role {
  font-size: 11px;
  font-weight: bold;
  color: #8b0000;
}

.hub-desc {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Guide Box */
.quick-guide-box {
  margin: 16px 0;
  background: #fffdf5;
  border: 2px dashed #b8860b;
  padding: 12px 16px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
}

.quick-guide-title {
  font-size: 13px;
  font-weight: bold;
  color: #8b0000;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.quick-step-card {
  background: #ffffff;
  border: 1px solid #e2ded4;
  padding: 8px 10px;
  border-radius: 2px;
}

.quick-step-num {
  font-size: 10px;
  font-weight: bold;
  background: #8b0000;
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 4px;
}

.quick-step-name {
  font-size: 12px;
  font-weight: bold;
  color: #222;
}

.quick-step-desc {
  font-size: 11px;
  color: #555;
  margin-top: 3px;
  line-height: 1.4;
}
