/* ══════════════════════════════════════
   MONTAGNA TAKAO FC — Shared Styles
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy: #000228;
  --navy-mid: #001050;
  --navy-light: #0a1a6e;
  --gray: #938F8E;
  --gray-mid: #c5c2c2;
  --gray-light: #e8e7e7;
  --white: #FFFFFF;
  --accent: #d4af37;
  --shadow: rgba(0,2,40,0.18);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--gray);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 70px;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--gray);
  flex-shrink: 0;
}
.logo-emblem img { width: 40px; height: 40px; object-fit: contain; }
.logo-text { line-height: 1; white-space: nowrap; }
.logo-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: block;
  white-space: nowrap;
}
.logo-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray);
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
}
.nav-links a:hover { background: var(--navy-mid); color: var(--white); }
@media(max-width: 700px) { .nav-links { display: none; } }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Menu button */
.menu-tab-btn {
  background: none;
  border: 1px solid rgba(147,143,142,0.4);
  border-radius: 4px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--gray-mid);
  transition: all 0.2s;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.menu-tab-btn:hover { background: rgba(147,143,142,0.15); }
.menu-tab-btn svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════
   MEGA MENU
   ══════════════════════════════════════ */
.mega-menu {
  position: fixed;
  top: 73px;
  right: 0;
  width: 300px;
  background: var(--white);
  border-left: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: -6px 6px 24px var(--shadow);
  display: none;
  z-index: 400;
  max-height: calc(100vh - 73px);
  overflow-y: auto;
}
.mega-menu.open { display: block; }
.mega-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-light);
}
.mega-section:last-child { border-bottom: none; }
.mega-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 10px;
}
.mega-item {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(232,231,231,0.6);
  transition: color 0.15s;
}
.mega-item:hover { color: var(--gray); }
.mega-item:last-child { border-bottom: none; }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  height: 440px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(147,143,142,0.12) 0%, transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, #000510 100%);
}
.hero-mountain {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 170px;
  opacity: 0.08;
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-emblem { width: 140px; height: 140px; flex-shrink: 0; }
.hero-emblem img { width: 100%; height: 100%; object-fit: contain; }
.hero-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gray);
  border: 1px solid rgba(147,143,142,0.4);
  display: inline-block;
  padding: 3px 11px;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero h1 span { color: var(--gray-mid); }
.hero-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gray);
}
@media(max-width: 600px) {
  .hero-content { flex-direction: column; padding: 0 20px; text-align: center; }
  .hero-emblem { width: 100px; height: 100px; }
  .hero { height: auto; padding: 40px 0; }
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.1em;
  color: var(--navy);
}
.section-title-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 12px;
  color: var(--gray);
}
.section-more {
  margin-left: auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  cursor: pointer;
}
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ══════════════════════════════════════
   NEWS
   ══════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media(max-width: 700px) { .news-grid { grid-template-columns: 1fr; } }

a.news-card { text-decoration: none; color: inherit; display: block; }
.news-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  display: block;
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.4s ease both;
}
.news-card:nth-child(2) { animation-delay: 0.08s; }
.news-card:nth-child(3) { animation-delay: 0.16s; }
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--shadow);
  border-color: var(--navy);
}
.news-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #1a1f4e 60%, #2d355a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.news-img-emoji {
  font-size: 42px;
  z-index: 1;
  position: relative;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.news-body { padding: 13px; }
.news-cat {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  margin-bottom: 5px;
}
.news-cat.match { background: #c0392b; }
.news-cat.report { background: var(--gray); }
.news-cat.info { background: var(--navy-light); }
.news-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 5px;
}
.news-excerpt {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date { font-size: 10px; color: var(--gray); }

/* Category filter */
.cat-filter-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  color: var(--gray);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-filter-btn.active,
.cat-filter-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ══════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════ */
#section-article {
  background: #f4f4f0;
  min-height: 100vh;
  padding-bottom: 60px;
}
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 80px;
  background: var(--white);
  box-shadow: 0 4px 32px rgba(0,2,40,0.10);
}
.article-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 20px 40px;
  transition: color 0.2s;
  text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  background: #f4f4f0;
  border-bottom: 1px solid rgba(147,143,142,0.2);
}
.article-back:hover { color: var(--navy); }
.article-back::before { content: '\2190'; font-family: sans-serif; font-size: 16px; }

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--navy) 0%, #1a1f4e 60%, #2d355a 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.article-hero-emoji {
  font-size: 64px;
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.article-content-wrap { padding: 36px 40px 0; }
.article-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-cat {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  text-transform: uppercase;
}
.article-date-tag { font-size: 11px; color: var(--gray); letter-spacing: 0.04em; }
.article-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 22px;
}
.article-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(147,143,142,0.3) 100%);
  margin-bottom: 32px;
}

.article-body {
  font-size: 15.5px;
  line-height: 2.1;
  color: #1e2240;
  font-feature-settings: 'palt';
}
.article-body p { margin: 0 0 1.6em; padding: 0; }
.article-body p:last-child { margin-bottom: 0; }
.body-heading {
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(0,2,40,0.05);
  padding: 6px 12px;
  margin: -2px -4px 6px;
  border-left: 3px solid var(--navy);
}
.body-section { display: block; font-weight: 700; color: var(--navy); margin-top: 4px; }
.body-bullet { display: block; padding-left: 1em; text-indent: -0.5em; }
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(147,143,142,0.25);
}
.article-footer-back {
  background: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.article-footer-back:hover { background: var(--navy); color: var(--white); }
@media(min-width: 601px) { #section-article { padding-top: 40px; } }
@media(max-width: 600px) {
  .article-back { padding: 16px 20px; }
  .article-content-wrap { padding: 24px 20px 0; }
}

/* ══════════════════════════════════════
   MATCH
   ══════════════════════════════════════ */
.match-section {
  background: var(--navy);
  padding: 48px 0;
}
.match-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.match-section .section-title { color: var(--white); }
.match-section .section-title-ja { color: var(--gray); }
.match-section .section-more { color: var(--gray-mid); border-color: var(--gray-mid); }

.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 11px;
}
.match-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(147,143,142,0.2);
  padding: 15px;
  transition: all 0.2s;
}
.match-card:hover {
  background: rgba(147,143,142,0.1);
  border-color: var(--gray);
}
.match-type {
  display: inline-block;
  background: rgba(147,143,142,0.2);
  color: var(--gray-mid);
  font-size: 10px;
  padding: 2px 7px;
  margin-bottom: 7px;
}
.match-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gray-mid);
  line-height: 1;
}
.match-date-sub {
  font-size: 10px;
  color: var(--gray);
  margin-bottom: 9px;
}
.match-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.match-team { flex: 1; text-align: center; min-width: 0; }
.match-team-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}
.match-team.away .match-team-name { color: var(--gray); }
.match-score-area { text-align: center; }
.match-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--white);
  line-height: 1;
}
.match-ha-badge {
  display: inline-block;
  font-size: 9px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  margin-bottom: 6px;
  border-radius: 2px;
}
.match-ha-home { background: rgba(147,143,142,0.25); color: var(--gray-mid); }
.match-ha-away {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(147,143,142,0.3);
}
.match-venue { font-size: 10px; color: var(--gray); }

/* ══════════════════════════════════════
   SOCIAL
   ══════════════════════════════════════ */
.social-section { padding: 48px 0; background: #f8f8f8; }
.social-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media(max-width: 700px) { .social-grid { grid-template-columns: 1fr; } }
.social-block h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  margin-bottom: 14px;
}
.social-link-btn:hover { background: var(--navy); color: var(--white); }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ig-post {
  overflow: hidden;
  border-radius: 6px;
}
.ig-post iframe {
  width: 100%;
  min-height: 400px;
  border: none;
}
.yt-embed { width: 100%; aspect-ratio: 16/9; background: var(--navy); }
.yt-embed iframe { width: 100%; height: 100%; border: none; }

/* ══════════════════════════════════════
   TEAM / PLAYERS GRID
   ══════════════════════════════════════ */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.player-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 14px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.player-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--navy);
}
.player-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--gray-light);
  line-height: 1;
}
.player-pos {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  margin-bottom: 4px;
}
.player-name-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.player-name-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray);
  display: block;
  margin-bottom: 3px;
}
.player-from { font-size: 10px; color: var(--gray); margin-bottom: 5px; }
.player-bio-text { font-size: 10px; line-height: 1.6; color: #666; }

/* ══════════════════════════════════════
   STATIC PAGES
   ══════════════════════════════════════ */
.static-page { max-width: 800px; margin: 0 auto; padding: 48px 20px; }
.static-page h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
}
.static-page p { font-size: 15px; line-height: 1.9; color: #333; margin-bottom: 16px; }
.static-page ul { padding-left: 1.5em; margin-bottom: 16px; }
.static-page ul li { font-size: 14px; line-height: 1.8; color: #333; }
.static-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.static-back:hover { color: var(--navy); }

/* ══════════════════════════════════════
   PAGE BANNER
   ══════════════════════════════════════ */
.page-banner {
  background: var(--navy);
  padding: 36px 20px 28px;
  border-bottom: 3px solid var(--gray);
}
.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.page-banner-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}
.page-banner-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  color: var(--gray);
  padding-bottom: 5px;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 3px solid rgba(147,143,142,0.3);
  padding: 28px 20px 16px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(147,143,142,0.3);
}
.footer-logo-text {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.footer-logo-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  font-weight: 400;
}
.footer-copy { font-size: 11px; color: var(--gray); }
.footer-sns { display: flex; gap: 7px; }
.sns-link {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(147,143,142,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.sns-link:hover { background: var(--gray); color: var(--navy); }

/* ══════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════ */
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--gray), transparent); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 10px 18px;
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
}
.toast.show { transform: translateY(0); opacity: 1; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   PLAYER DETAIL PAGE
   ══════════════════════════════════════ */
body.player-page {
  background: var(--navy);
  color: var(--white);
}
body.player-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

/* Article standalone & Player page header */
.article-standalone .site-header,
.player-page .site-header {
  position: relative;
  z-index: 10;
  background: rgba(0,2,40,0.95);
  border-bottom: 2px solid rgba(147,143,142,0.25);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-emblem-wrap {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-emblem-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.header-logo-text { line-height: 1.3; }
.header-logo-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.header-logo-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gray);
  display: block;
}
.back-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(147,143,142,0.3);
  padding: 5px 12px;
  transition: all 0.2s;
}
.back-link:hover { color: var(--white); border-color: var(--gray-mid); background: rgba(147,143,142,0.1); }
.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* Player card layout */
.player-detail-page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.player-detail-card {
  position: relative;
  background: linear-gradient(165deg, #000f50 0%, #000228 50%, #000120 100%);
  border: 1px solid rgba(147,143,142,0.2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: cardIn 0.6s cubic-bezier(.22,.68,0,.99) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-slice {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(160deg, rgba(0,16,80,0.8) 0%, rgba(0,2,40,0.4) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.card-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 14px;
  border-bottom: 1px solid rgba(147,143,142,0.15);
}
.club-badge { display: flex; align-items: center; gap: 8px; }
.club-badge-emblem {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid rgba(147,143,142,0.3);
  flex-shrink: 0;
}
.club-badge-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
@media(max-width: 640px) {
  .card-body { grid-template-columns: 1fr; min-height: auto; display: block; }
}
.card-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}
.bg-number {
  position: absolute;
  top: -10px; left: -8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(180px, 26vw, 260px);
  line-height: 0.85;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, rgba(0,16,80,0.3) 0%, rgba(0,2,40,0.7) 100%);
  overflow: hidden;
}
.photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.photo-wrap:hover img { transform: scale(1.04); }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.2);
}
.photo-placeholder svg { opacity: 0.3; }
.photo-placeholder-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.pos-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(to top, rgba(0,2,40,0.95) 0%, transparent 100%);
  z-index: 2;
}
.pos-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 72px);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
}
.pos-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-top: 6px;
}

/* Right side info */
.card-right {
  position: relative;
  z-index: 2;
  padding: 32px 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media(max-width: 640px) { .card-right { padding: 28px 24px; } }

.name-block { margin-bottom: 20px; }
.name-kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.06em;
  display: block;
}
.name-roman {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.18em;
  color: var(--gray);
  display: block;
  margin-top: 4px;
}


.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(147,143,142,0.1);
  border: 1px solid rgba(147,143,142,0.12);
  flex: 1;
}
.stat-cell {
  background: #000228;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.15s;
}
.stat-cell:hover { background: #001050; }
.stat-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray);
  display: block;
}
.stat-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}

.controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(147,143,142,0.1);
  border: 1px solid rgba(147,143,142,0.12);
  border-bottom: none;
}
.control-cell {
  background: #000228;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.control-cell:hover { background: #001050; }

/* Feature block */
.feature-block {
  margin-top: 16px;
  border: 1px solid rgba(147,143,142,0.12);
  background: #000228;
}
.feature-header {
  padding: 8px 14px;
  background: rgba(147,143,142,0.08);
  border-bottom: 1px solid rgba(147,143,142,0.12);
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-header-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.feature-text {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
}

/* Bottom bar */
.card-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid rgba(147,143,142,0.15);
  background: rgba(0,0,0,0.2);
  flex-wrap: wrap;
  gap: 10px;
}
.bottom-brand {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bottom-brand-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray);
}
.share-row { display: flex; align-items: center; gap: 6px; }
.share-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-right: 4px;
}
.share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(147,143,142,0.3);
  background: rgba(255,255,255,0.04);
  color: var(--gray-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.share-btn:hover { border-color: var(--gray-mid); }
.share-x:hover { background: #000; color: #fff; border-color: #000; }
.share-ig:hover {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-color: transparent;
  color: #fff;
}
.share-line:hover { background: #06C755; border-color: #06C755; color: #fff; }
.share-link:hover { background: var(--gray-mid); color: var(--navy); border-color: var(--gray-mid); }

@media(max-width: 640px) {
  .photo-wrap { aspect-ratio: 4/3; }
  .pos-number { font-size: 44px; }
  .bg-number { font-size: 140px; }
}

/* Player page toast */
.player-page .toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  right: auto;
  background: var(--navy-light);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.player-page .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
