/**
 * KURENAI ANIME - レスポンシブ＆モバイルレイアウト
 */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 6, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-jp);
}
.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 0;
}
.drawer-nav a:hover, .drawer-nav a.is-active {
  color: var(--accent-primary);
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(18, 19, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-jp);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
}
.bottom-nav-item.is-active {
  color: var(--accent-primary);
}
.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .player-playlist-col {
    max-height: 350px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .radio-widget {
    display: none;
  }
  .search-shortcut {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .hero-section {
    min-height: 480px;
  }
  .hero-title-ru {
    font-size: 2.1rem;
  }
  .hero-title-en {
    font-size: 0.95rem;
  }
  .hero-controls {
    right: 20px;
    bottom: 20px;
  }

  .detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .detail-poster {
    width: 160px;
  }
  .detail-actions {
    justify-content: center;
  }
  .detail-tabs-nav {
    padding: 0 16px;
    overflow-x: auto;
  }
  .detail-tab-content {
    padding: 20px 16px;
  }
  .detail-backdrop-wrap {
    padding: 24px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-content {
    padding: 10px 12px;
  }
  .card-title {
    font-size: 0.88rem;
  }
  .character-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .char-vote-row {
    width: 100%;
  }
}
