/* ================================
   全体
================================ */
body {
    margin: 0;
    font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    background: radial-gradient(circle at 50% 20%, #2b2d42, #0d0d0f 70%);
    color: #e8e8f0;
    letter-spacing: 0.5px;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(150,150,255,0.4);
}

/* ================================
   ヒーローセクション
================================ */
.hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(180deg, rgba(80,80,120,0.4), rgba(0,0,0,0));
}

.hero-title {
    font-size: 48px;
    color: #d6d6ff;
    text-shadow: 0 0 12px rgba(150,150,255,0.6);
}

.hero-sub {
    font-size: 18px;
    opacity: 0.8;
    margin-top: 10px;
}

/* ボタン */
.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin: 0 10px;
    font-size: 16px;
}

.btn-primary {
    background: #6c63ff;
    color: white;
    box-shadow: 0 0 12px rgba(120,120,255,0.6);
}

.btn-secondary {
    border: 1px solid #aaa;
    color: #ddd;
}

/* ================================
   検索バー
================================ */
.search-bar {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-bar input {
    width: 300px;
    padding: 12px;
    border-radius: 30px;
    border: none;
    outline: none;
}

.search-bar button {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: #6c63ff;
    color: white;
}

/* ================================
   カテゴリー
================================ */
.categories {
    padding: 40px 20px;
    text-align: center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(150,150,255,0.2);
    transition: 0.3s;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 14px rgba(150,150,255,0.4);
}

/* ================================
   セクション共通
================================ */
.section {
    padding: 40px 20px;
}

/* ================================
   新着音声カード
================================ */
.audio-list {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.audio-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    padding: 18px;
    border-radius: 16px;
    width: 220px;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(100,100,150,0.2);
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 18px rgba(150,150,255,0.4);
}

.audio-card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 10px;
}

.audio-card h3 {
    font-size: 18px;
    margin: 5px 0;
    color: #e0e0ff;
}

.tags {
    font-size: 13px;
    opacity: 0.7;
}

.duration {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 5px;
}

.no-audio {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* ================================
   人気ランキング
================================ */
.ranking-list {
    max-width: 700px;
    margin: 0 auto;
}

.ranking-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.rank-number {
    font-size: 24px;
    width: 40px;
    text-align: center;
    color: #d6d6ff;
}

.ranking-card img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 15px;
}

.ranking-title {
    font-size: 16px;
}

.ranking-plays {
    font-size: 12px;
    opacity: 0.7;
}

/* ================================
   プレイリスト
================================ */
.playlist-list {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.playlist-card {
    background: rgba(255,255,255,0.05);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(150,150,255,0.3);
}

/* ================================
   クリエイター
================================ */
.creator-list {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.creator-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 16px;
}

/* ================================
   プレミアム案内
================================ */
.premium {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.03);
    margin-top: 40px;
    border-radius: 20px;
}

.premium ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.premium li {
    margin: 8px 0;
}

/* ================================
   フッター
================================ */
.footer {
    text-align: center;
    padding: 20px;
    opacity: 0.6;
    font-size: 14px;
}

/* ================================
   スマホ対応
================================ */
@media (max-width: 800px) {
    .audio-card {
        width: 45%;
    }
    .ranking-card {
        flex-direction: column;
        text-align: center;
    }
}

/* カテゴリーページの小さめヒーロー */
.small-hero {
    padding: 80px 20px 40px;
}

/* ================================
   リンク色（全体）
================================ */
a {
    color: #e0e0ff; /* 柔らかい薄紫 */
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(180,180,255,0.7);
}

/* カテゴリー内のリンク */
.category-item a {
    color: #e0e0ff;
    text-decoration: none;
}

.category-item a:hover {
    color: #ffffff;
}

/* 音声カードのタイトルリンク */
.audio-card h3 a {
    color: #e0e0ff;
}

.audio-card h3 a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(180,180,255,0.7);
}

/* 関連音声カード */
.related-card p {
    color: #e0e0ff;
}

.related-card:hover p {
    color: #ffffff;
}

.ranking-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #e0e0ff;
    transition: 0.3s;
}

.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 14px rgba(150,150,255,0.4);
}

.small-hero {
    padding: 80px 20px 40px;
}

.playlist-card {
    display: inline-block;
    text-decoration: none;
    color: #e0e0ff;
    cursor: pointer;
}

.creator-card {
    display: inline-block;
    text-decoration: none;
    color: #e0e0ff;
    cursor: pointer;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(150,150,255,0.4);
    color: #ffffff;
}

/* クリエイタープロフィール */
.creator-profile {
    max-width: 900px;
    margin: 60px auto;
    display: flex;
    gap: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.creator-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(150,150,255,0.4);
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-size: 32px;
    margin-bottom: 10px;
    color: #e0e0ff;
}

.creator-bio {
    opacity: 0.8;
    line-height: 1.6;
}

/* SNS ボタン */
.creator-sns {
    margin: 20px 0;
}

.sns-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #e0e0ff;
    text-decoration: none;
    transition: 0.3s;
}

.sns-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* フォローボタン */
.follow-btn {
    padding: 10px 20px;
    background: #6c63ff;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(120,120,255,0.6);
    transition: 0.3s;
}

.follow-btn:hover {
    transform: translateY(-3px);
}

img.noimage {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2b2d42, #1a1a22);
    display: block;
    object-fit: cover;
    position: relative;
}

/* “NO IMAGE” の文字を重ねる */
img.noimage::after {
    content: "NO IMAGE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaaaff;
    font-size: 14px;
    opacity: 0.6;
}

/* ================================
   スマホ最適化（全ページ共通）
================================ */
@media (max-width: 1024px) {

    /* 全体の文字サイズ・余白調整 */
    body {
        font-size: 15px;
        line-height: 1.6;
        padding: 0;
        margin: 0;
    }

    h1, h2, h3 {
        line-height: 1.3;
    }

    /* ============================
       ヒーローセクション
    ============================ */
    .hero {
        padding: 70px 20px 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-sub {
        font-size: 14px;
        margin-top: 8px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* ============================
       検索バー
    ============================ */
    .search-bar {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }

    .search-bar input {
        width: 100%;
    }

    /* ============================
       カテゴリー
    ============================ */
    .category-list {
        gap: 10px;
        padding: 0 10px;
    }

    .category-item {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* ============================
       音声カード（1列表示）
    ============================ */
    .audio-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .audio-card {
        width: 100%;
        padding: 15px;
    }

    .audio-card img {
        width: 100%;
        height: auto;
    }

    /* ============================
       人気ランキング
    ============================ */
    .ranking-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .ranking-card img {
        width: 80px;
        height: 80px;
    }

    /* ============================
       プレイリスト
    ============================ */
    .playlist-list {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .playlist-card {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* ============================
       クリエイター一覧
    ============================ */
    .creator-list {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .creator-card {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* ============================
       クリエイタープロフィール
    ============================ */
    .creator-profile {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .creator-photo {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .creator-info {
        margin-top: 10px;
    }

    .creator-name {
        font-size: 26px;
    }

    /* ============================
       詳細ページ（audio.php）
    ============================ */
    .detail-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .detail-left,
    .detail-right {
        width: 100%;
    }

    .detail-thumb {
        width: 100%;
        border-radius: 16px;
    }

    .detail-title {
        font-size: 26px;
        text-align: center;
    }

    .detail-tags {
        text-align: center;
    }

    .detail-player audio {
        width: 100%;
    }

    /* ============================
       関連音声
    ============================ */
    .related-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .related-card {
        width: 100%;
    }

    /* ============================
       プレミアム案内
    ============================ */
    .premium {
        padding: 40px 20px;
    }

    /* ============================
       フッター
    ============================ */
    .footer {
        font-size: 12px;
        padding: 15px;
    }
    .particles { display: none;  }
}

/* ページ専用の名前空間 */
.upload-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 60px 20px;
}

.upload-container {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.upload-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.upload-subtitle {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 40px;
}

.upload-box {
  border: 1px solid #333;
  padding: 40px 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.upload-label {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #555;
  cursor: pointer;
  transition: 0.2s;
}

.upload-label:hover {
  border-color: #888;
}

.upload-box input[type="file"] {
  display: none;
}

.upload-submit {
  width: 100%;
  padding: 14px 0;
  background: #fff;
  color: #000;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.upload-submit:hover {
  background: #ddd;
}


.nav-btn {
  padding: 8px 18px;
  border: 1px solid #444;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.nav-btn:hover {
  border-color: #888;
}

.welcome-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  padding-bottom: 2px;
  transition: 0.2s;
}

.welcome-link:hover {
  border-color: #888;
}

 /* ✅ 広告ブロッカー検知用の非表示要素 */
    .adsbygoogle {
      display: block;
      height: 1px;
    }

    /* ✅ 警告表示（任意） */
    #adblock-warning {
      display: none;
      background: #fff3cd;
      color: #856404;
      padding: 16px;
      border: 1px solid #ffeeba;
      margin: 16px 0;
    }

