/* ==========================================================================
   YORU LIST - Main Stylesheet
   Modern, Clean, Cute Curated Affiliate Website
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Zen+Maru+Gothic:wght@400;500;700;900&family=Yomogi&family=Outfit:wght@400;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary: #f06277;
  --primary-hover: #e04a60;
  --primary-light: #fff0f3;
  --primary-border: #ffd6df;
  --primary-glow: rgba(240, 98, 119, 0.25);
  
  --accent-pink: #f75c7e;
  --accent-heart: #ff3366;
  
  --bg-body: #f7f8fa;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-chip: #f3f4f6;
  
  --text-main: #27272a;
  --text-sub: #52525b;
  --text-muted: #8e8e93;
  --text-comment: #71717a;
  
  --border-light: #ebebeb;
  --border-subtle: #f0f0f2;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-pink: 0 4px 14px rgba(240, 98, 119, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Zen Maru Gothic', 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: 'Yomogi', cursive;
  --font-en: 'Outfit', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 70px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-cat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-cat-icon {
  transform: rotate(-6deg) scale(1.08);
}

.logo-cat-icon img,
.logo-cat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-cat-icon svg {
  width: 100%;
  height: 100%;
  stroke: #222222;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-heart {
  color: var(--primary);
  font-size: 12px;
  display: inline-block;
  animation: heartPulse 2.5s infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Nav Menu */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search Bar */
.search-container {
  position: relative;
  width: 220px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #f8f9fa;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
}

/* Fav Button in Header */
.btn-fav-header {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f75c7e, #f06277);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-pink);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-fav-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240, 98, 119, 0.45);
}

.fav-badge-count {
  background: #ffffff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}

/* ==========================================================================
   Main Page Layout
   ========================================================================== */
.main-wrapper {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  min-height: 380px;
}

.hero-visual-col {
  flex: 1.15;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-image {
  transform: scale(1.02);
}

/* Left Handwritten Floating Text */
.hero-hand-bubble-left {
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: var(--font-hand);
  font-size: 26px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 0, 0, 0.2);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-content-col {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fffcfc 100%);
}

/* Top Handwritten Catchphrase */
.hero-hand-catchphrase {
  position: relative;
  align-self: flex-start;
  margin-bottom: 20px;
}

.hero-hand-catchphrase-text {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 700;
  color: #f75c7e;
  line-height: 1.2;
  transform: rotate(-4deg);
  display: inline-block;
  background: #fff4f6;
  padding: 6px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(247, 92, 126, 0.3);
}

.hero-main-title {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #1e1e24;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-main-title .pink-heart {
  color: var(--primary);
  font-size: 28px;
}

.hero-sub-title {
  font-size: 22px;
  font-weight: 800;
  color: #2b2b2b;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  max-width: 440px;
}

/* Riho floating mini speech card in Hero */
.hero-speech-card {
  position: absolute;
  right: 30px;
  top: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 98, 119, 0.18);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 220px;
  box-shadow: 0 10px 25px rgba(240, 98, 119, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-speech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-speech-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-speech-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-border);
  object-fit: cover;
}

.hero-speech-text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ==========================================================================
   Two-Column Layout (Sidebar + Content)
   ========================================================================== */
.content-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ==========================================================================
   Left Sidebar
   ========================================================================== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 94px;
}

/* Profile Card */
.profile-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary-light);
  box-shadow: 0 4px 12px rgba(240, 98, 119, 0.15);
}

.profile-badge-online {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: var(--radius-full);
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-handle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.profile-bio {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: left;
  background: #fafafa;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.btn-x-follow {
  width: 100%;
  height: 38px;
  background: #18181b;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-x-follow:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.btn-x-follow svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Sidebar Navigation */
.sidebar-nav-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.sidebar-nav-item .nav-icon {
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.sidebar-nav-item:hover {
  background: #f9fafb;
  color: var(--primary);
}

.sidebar-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   Main Content Column
   ========================================================================== */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Section Header */
.section-block {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.section-badge-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

.section-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.section-more-link:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}

/* ==========================================================================
   Today's Picks Grid (今日のおすすめ)
   ========================================================================== */
.today-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pick-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.pick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(240, 98, 119, 0.3);
}

.pick-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f5;
  cursor: pointer;
}

.pick-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pick-card:hover .pick-thumb {
  transform: scale(1.05);
}

/* Rank Badge */
.pick-rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f75c7e, #f06277);
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Heart Bookmark Button */
.btn-fav-card {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
  z-index: 2;
}

.btn-fav-card:hover {
  transform: scale(1.15);
  background: #ffffff;
  color: var(--accent-heart);
}

.btn-fav-card.active {
  color: var(--accent-heart);
  background: #ffffff;
}

.pick-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.pick-title,
.pick-riho-headline {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.pick-card:hover .pick-title,
.pick-card:hover .pick-riho-headline {
  color: var(--primary);
}

.pick-comment,
.pick-video-title {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick-action-btn {
  width: 100%;
  height: 38px;
  background: linear-gradient(135deg, #f75c7e, #f06277);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-pink);
  transition: var(--transition-fast);
  cursor: pointer;
}

.pick-action-btn:hover {
  background: linear-gradient(135deg, #f04d72, #e04a60);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 98, 119, 0.45);
}

/* ==========================================================================
   Genre Category Horizontal Scroll / Grid
   ========================================================================== */
.genre-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.genre-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.genre-card:hover, .genre-card.active {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.genre-card.active {
  background: var(--primary-light);
}

.genre-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f5;
}

.genre-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.genre-card:hover .genre-thumb {
  transform: scale(1.08);
}

.genre-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 4px;
  text-align: center;
  white-space: nowrap;
}

.genre-card.active .genre-label {
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   New Arrivals Grid (新着作品)
   ========================================================================== */
.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.item-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(240, 98, 119, 0.3);
}

.item-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f5;
  cursor: pointer;
}

.item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item-card:hover .item-thumb {
  transform: scale(1.05);
}

.item-badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f43f5e;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.item-badge-genre {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

.item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.item-title,
.item-riho-headline {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.item-card:hover .item-title,
.item-card:hover .item-riho-headline {
  color: var(--primary);
}

.item-comment,
.item-video-title {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.item-rating {
  color: #f59e0b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   Ranking Section / View
   ========================================================================== */
.ranking-tabs {
  display: flex;
  gap: 8px;
  background: #f1f2f4;
  padding: 4px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.ranking-tab-btn {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  transition: var(--transition-fast);
}

.ranking-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.ranking-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-border);
}

.rank-number {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 900;
  width: 32px;
  text-align: center;
  color: #9ca3af;
}

.rank-number.top-1 { color: #eab308; }
.rank-number.top-2 { color: #94a3b8; }
.rank-number.top-3 { color: #b45309; }

.rank-thumb {
  width: 70px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.rank-info {
  flex: 1;
}

.rank-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-video-title {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.rank-actress {
  font-size: 11.5px;
  color: var(--text-muted);
}

.rank-views {
  font-size: 12px;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Tweets / Timeline View (りほのつぶやき)
   ========================================================================== */
.tweets-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tweet-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}

.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.tweet-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tweet-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.tweet-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.tweet-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.tweet-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.tweet-actions {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tweet-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tweet-action-item:hover {
  color: var(--primary);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.modal-media-wrap {
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.modal-header-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
  display: block;
}

.modal-video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.modal-video-container iframe,
.modal-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
  display: block;
}

.modal-unmute-overlay-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.modal-unmute-overlay-btn:hover {
  background: rgba(255, 59, 92, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.04);
}

.modal-unmute-overlay-btn .unmute-icon {
  font-size: 14px;
}

.item-badge-video {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.item-badge-video .video-play-icon {
  color: #ff3366;
  font-size: 10px;
}

.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
}

.modal-video-title {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.modal-riho-comment-box {
  background: #fff5f7;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.modal-riho-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ffffff;
}

.modal-riho-comment-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-riho-comment-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.modal-riho-comment-text {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.6;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  background: #f9fafb;
  border: 1px solid #f0f0f5;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meta-key {
  color: var(--text-muted);
  min-width: 68px;
  flex-shrink: 0;
  font-weight: 500;
}

.meta-val {
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
  flex: 1;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.modal-affiliate-cta {
  width: 100%;
  min-height: 54px;
  height: auto;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f75c7e, #f06277);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(240, 98, 119, 0.4);
  transition: var(--transition-fast);
  text-decoration: none;
  border: none;
  cursor: pointer;
  gap: 2px;
}

.modal-cta-main {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
}

.modal-cta-sub {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.modal-affiliate-cta:hover {
  background: linear-gradient(135deg, #f04d72, #e04a60);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 98, 119, 0.5);
}

/* ==========================================================================
   Favorites Drawer
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -4px 0 25px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.active .drawer-container {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-close-btn {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: auto 0;
}

.fav-item-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.fav-item-row:hover {
  background: #fafafa;
}

.fav-item-img {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.fav-item-info {
  flex: 1;
  min-width: 0;
}

.fav-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-item-comment {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-item-remove {
  color: #ef4444;
  font-size: 14px;
  padding: 6px;
  cursor: pointer;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 30, 35, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-notice {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-en);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-speech-card {
    display: none;
  }
  
  .genre-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .content-layout {
    flex-direction: column;
  }
  
  .main-content {
    order: 1;
    width: 100%;
  }

  .sidebar {
    order: 2;
    width: 100%;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }
  
  .hero-card {
    flex-direction: column;
  }
  
  .hero-visual-col {
    min-height: 240px;
  }
  
  .today-picks-grid, .new-arrivals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
  
  .search-container {
    display: none;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }
  
  .genre-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .today-picks-grid, .new-arrivals-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content-col {
    padding: 24px;
  }
  
  .hero-main-title {
    font-size: 32px;
  }

  /* Modal Mobile Styles */
  .modal-container {
    width: 92%;
    max-height: 88vh;
  }

  .modal-body {
    padding: 20px 16px;
    gap: 16px;
  }

  .modal-title {
    font-size: 17px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .meta-item {
    gap: 8px;
  }

  .meta-key {
    min-width: 64px;
    font-size: 12.5px;
  }

  .meta-val {
    font-size: 13px;
  }
}
