:root {
  --primary-color: #ff2a7e;
  --primary-hover: #e0005a;
  --secondary-color: #a855f7;
  --bg-dark: #050a18;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-sidebar: rgba(5, 10, 24, 0.95);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --gold: #fbbf24;
  --header-height: 80px;
  --sidebar-width: 260px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
  font-family: 'Inter', 'Outfit', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 42, 126, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.main-wrapper {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 900;
  transition: var(--transition);
}

.sidebar h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav li {
  margin-bottom: 0.5rem;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(255, 42, 126, 0.15);
  color: var(--primary-color);
  transform: translateX(5px);
}

.sidebar nav a i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

/* Content Area */
.content-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem 3rem;
  max-width: 1200px;
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .content-area {
    margin-left: 0;
    padding: 1.5rem;
  }
}

header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2a7e, #a855f7, #fbbf24, #ff2a7e);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  letter-spacing: -0.05rem;
}

@keyframes shine {
  to { background-position: 300% center; }
}

header nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 99px;
}

header nav a:hover {
  color: #fff;
  background: rgba(255, 42, 126, 0.2);
  box-shadow: 0 0 10px rgba(255, 42, 126, 0.4);
}

.hero-banner {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 24px;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}
.hero-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
}
.hero-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
}
.hero-text h2 {
  font-size: 3rem;
  border-bottom: none;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero-text p {
  font-size: 1.2rem;
  color: #ddd;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 42, 126, 0.15);
  border-color: rgba(255, 42, 126, 0.3);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.idol-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.idol-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(255, 42, 126, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.idol-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.idol-card:hover::before {
  left: 200%;
}

.idol-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Affiliate Buttons */
.btn-affiliate {
  display: inline-block;
  background: linear-gradient(135deg, #ff2a7e, #ff6b6b);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 42, 126, 0.4);
  text-align: center;
}

.btn-affiliate:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 42, 126, 0.6);
  color: white;
}

.btn-rakuten { background: linear-gradient(135deg, #bf0000, #ff4c4c); box-shadow: 0 4px 15px rgba(191, 0, 0, 0.4); }
.btn-amazon { background: linear-gradient(135deg, #f90, #ffb347); box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4); }
.btn-tower { background: linear-gradient(135deg, #e5df18, #d6d013); color: #333; box-shadow: 0 4px 15px rgba(229, 223, 24, 0.4); }
.btn-tower:hover { color: #000; box-shadow: 0 8px 25px rgba(229, 223, 24, 0.6); }

.tag {
  background: linear-gradient(135deg, rgba(255, 42, 126, 0.2), rgba(255, 42, 126, 0.5));
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 42, 126, 0.5);
  display: inline-block;
  margin-bottom: 1rem;
}

/* Decorative Elements */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 1rem;
}

.era-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.recommend-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recommend-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recommend-card:hover {
    background: rgba(255, 42, 126, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.disc-list {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.disc-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.disc-list li::before {
    content: '▶';
    font-size: 0.6rem;
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.search-container:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 42, 126, 0.2);
}

.search-container input {
  background: transparent;
  border: none;
  color: #fff;
  flex: 1;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.search-container button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.ad-space::after {
  content: 'AD';
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  margin-top: 4rem;
}

/* Timeline Components */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--secondary-color), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

.timeline-content {
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 600px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
}
