/* =============================================
   Anisongs - スタイルシート
   Light entertainment / anime-inspired theme
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
                 "Noto Sans JP", sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #a855f7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 0.5rem;
    -webkit-text-fill-color: #94a3b8;
}

.site-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.site-nav a:hover {
    color: #1e293b;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

/* Language Toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-left: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
}

.lang-toggle a,
.lang-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

.lang-toggle a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.lang-toggle a::after {
    display: none;
}

.lang-toggle .lang-active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1e293b;
    margin: 4px auto;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 6rem 0 5rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-search {
    display: flex;
    max-width: 580px;
    margin: 0 auto;
    gap: 0.5rem;
}

/* --- Forms --- */
.search-input,
.select-input {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 0.8rem 1.1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus,
.select-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.search-input {
    flex: 1;
}

.search-btn,
.btn {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.search-btn:hover,
.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #6366f1;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.06);
    opacity: 1;
}

/* --- Stats --- */
.stats {
    padding: 2rem 0 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Sections --- */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.85rem;
    border-left: 3px solid #6366f1;
    letter-spacing: -0.01em;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-more {
    text-align: center;
    margin-top: 2rem;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

a.card {
    color: inherit;
    text-decoration: none;
    display: block;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c0c9d6;
    font-size: 0.7rem;
    font-weight: 500;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e8edf3 50%, #f1f5f9 100%);
}

.card-image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.artist-image .card-image-placeholder svg {
    width: 64px;
    height: 64px;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    color: inherit;
}

.card-stream {
    padding: 0.5rem 1rem 0.75rem;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar .search-input {
    flex: 1;
    min-width: 200px;
}

.filter-bar .select-input {
    min-width: 140px;
}

.result-count {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* --- Music Table --- */
.music-list {
    overflow-x: auto;
}

.music-table {
    width: 100%;
    border-collapse: collapse;
}

.music-table th,
.music-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.music-table th {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.music-table tbody tr {
    transition: background 0.15s;
}

.music-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.music-name {
    display: block;
    font-weight: 600;
}

.music-kana {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
}

.badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-op { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.badge-ed { background: rgba(236, 72, 153, 0.1); color: #db2777; }
.badge-in { background: rgba(251, 191, 36, 0.1); color: #d97706; }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 10px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.page-link:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #1e293b;
    border-color: rgba(99, 102, 241, 0.25);
}

.page-link.active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    border-color: transparent;
}

.page-dots {
    color: #94a3b8;
    padding: 0 0.25rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.breadcrumb li::after {
    content: '/';
    color: #cbd5e1;
    margin-left: 0.4rem;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb a:hover {
    color: #6366f1;
}

.breadcrumb .current {
    color: #1e293b;
}

/* --- Program Detail --- */
.back-link {
    display: inline-block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.back-link:hover {
    color: #6366f1;
}

.program-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.program-image {
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.program-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.program-kana {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.program-year {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.program-desc {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.program-copyright {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.program-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Artist Detail --- */
.artist-detail {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.artist-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.artist-role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.5rem;
}

.artist-sub {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.artist-group {
    color: #6366f1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.artist-desc {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.artist-sources {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.artist-sources a {
    color: #6366f1;
    text-decoration: none;
    margin-right: 0.2rem;
}

.artist-sources a:hover {
    text-decoration: underline;
}

/* --- Amazon --- */
.amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff8f0;
    border: 1px solid rgba(255, 153, 0, 0.3);
    color: #FF9900;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.amazon-btn:hover {
    background: rgba(255, 153, 0, 0.08);
    border-color: #FF9900;
    color: #e68a00;
    transform: translateY(-1px);
}

.amazon-logo {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.amazon-section {
    margin-top: 2rem;
}

.amazon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.amazon-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(255, 153, 0, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.amazon-card:hover {
    border-color: rgba(255, 153, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.amazon-card-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.amazon-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amazon-card-info {
    flex: 1;
    min-width: 0;
}

.amazon-card-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amazon-card-sub {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.amazon-card-action {
    background: linear-gradient(135deg, #FF9900, #FFB84D);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- News Cards (Top page) --- */
.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.news-card {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: inherit;
}

.news-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.news-card:hover .news-card-thumb img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1rem 1.15rem 1.25rem;
}

.news-card-date {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0.35rem 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.news-card-excerpt {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- News Card Grid (List page) --- */
.news-card-grid--list {
    grid-template-columns: repeat(3, 1fr);
}

/* --- News List (legacy) --- */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.25s;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    color: inherit;
}

.news-item-date {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
}

.news-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.4rem 0;
    letter-spacing: -0.01em;
}

.news-item-excerpt {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article-header {
    margin-bottom: 2rem;
}

.news-article-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.news-article-date {
    color: #94a3b8;
    font-size: 0.85rem;
}

.news-article-body {
    color: #374151;
    font-size: 0.95rem;
    line-height: 2;
    max-width: 780px;
}

.news-article-body p {
    margin-bottom: 1.25rem;
}

.news-article-image {
    margin: 1.5rem 0;
    max-width: 480px;
}

.news-article-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.news-article-body > img,
.news-article-body > figure img {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
}

.news-amazon-btn {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.7rem 1.5rem;
    background: #ff9900;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.news-amazon-btn:hover {
    background: #e68a00;
}

/* --- Related Program --- */
.related-program {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-program-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.related-program-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.25s;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.related-program-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    color: inherit;
}

.related-program-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.related-program-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-program-info {
    flex: 1;
    min-width: 0;
}

.related-program-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.related-program-action {
    display: block;
    color: #6366f1;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

/* --- Related Programs List (program.php) --- */
.related-programs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* --- Related News (program.php) --- */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-news-card {
    display: flex;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.related-news-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    color: inherit;
}

.related-news-thumb {
    width: 72px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.related-news-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.related-news-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.75rem;
}

.related-news-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-news-row {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.6rem 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-news-row:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: #f8fafc;
    color: inherit;
}

.related-news-row-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.related-news-row-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    .related-news-row-title {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

/* --- Admin --- */
.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .admin-title {
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
}

.admin-login {
    max-width: 400px;
    margin: 4rem auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.admin-login h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: #6366f1;
}

.admin-form textarea {
    min-height: 300px;
    resize: vertical;
    line-height: 1.8;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    background: #ef4444;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #16a34a;
}

.alert-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #dc2626;
}

.no-data {
    color: #94a3b8;
    text-align: center;
    padding: 3rem;
    font-size: 0.9rem;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    background: #f1f5f9;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.footer-desc {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #64748b;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-links li:not(:has(a)) {
    color: #94a3b8;
    font-size: 0.82rem;
}

/* --- Streaming Links --- */
.streaming-links {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.stream-ios-note {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 0.2rem;
}

.stream-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.stream-btn svg {
    width: 18px;
    height: 18px;
}

.stream-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stream-amazon_music svg { color: #25D1DA; }
.stream-apple_music svg { color: #FC3C44; }
.stream-line_music svg { color: #06C755; }
.stream-spotify svg { color: #1DB954; }
.stream-youtube_music svg { color: #FF0000; }

.stream-amazon_music:hover { border-color: #25D1DA; background: rgba(37, 209, 218, 0.06); }
.stream-apple_music:hover { border-color: #FC3C44; background: rgba(252, 60, 68, 0.06); }
.stream-line_music:hover { border-color: #06C755; background: rgba(6, 199, 85, 0.06); }
.stream-spotify:hover { border-color: #1DB954; background: rgba(30, 215, 96, 0.06); }
.stream-youtube_music:hover { border-color: #FF0000; background: rgba(255, 0, 0, 0.06); }

/* --- Streaming Compact (List pages) --- */
.stream-compact {
    position: relative;
    display: inline-flex;
}

.stream-compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: auto;
    height: 32px;
    padding: 0 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.06);
    cursor: pointer;
    color: #6366f1;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.stream-compact-btn-label {
    display: inline;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.stream-compact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}

/* Desktop: ドロップダウン */
.stream-compact-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    padding: 0.35rem 0;
    animation: streamDropIn 0.15s ease-out;
}

.stream-compact.open .stream-compact-dropdown {
    display: block;
}

/* Mobile: 背景オーバーレイ */
.stream-compact-overlay {
    display: none;
}

@keyframes streamDropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes streamSheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.stream-compact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.stream-compact-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.stream-compact-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.stream-compact-note {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.2;
}

.stream-compact-icon svg {
    width: 20px;
    height: 20px;
}

/* --- Music Cards (Mobile) --- */
.music-card-list {
    display: none;
}

.music-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.music-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.music-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
}

.music-card-kana {
    width: 100%;
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: -0.25rem;
}

.music-card-artist {
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 0.6rem;
}

.music-card-artist a {
    color: #6366f1;
}

.music-card-credits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.credit-row {
    display: flex;
    flex-direction: column;
}

.credit-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.credit-value {
    font-size: 0.82rem;
    color: #1e293b;
}

.music-card-program {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.6rem;
}

.music-card-program a {
    color: #6366f1;
}

.music-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- Nav Active --- */
.site-nav a.nav-active {
    color: #1e293b;
    font-weight: 600;
}

.site-nav a.nav-active::after {
    transform: scaleX(1);
}

/* --- Bottom Navigation --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 100;
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.bottom-nav-item.active {
    color: #6366f1;
}

/* --- Filter Chips --- */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.filter-chip-clear {
    color: #6366f1;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-decoration: none;
}

.filter-chip-clear:hover {
    opacity: 1;
    color: #6366f1;
}

.filter-clear-all {
    font-size: 0.78rem;
    color: #94a3b8;
    align-self: center;
}

/* --- Streaming Hub (Program page) --- */
.streaming-hub {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.streaming-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.streaming-hub-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.streaming-hub-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.streaming-hub-card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.streaming-hub-card-artist {
    color: #64748b;
    font-size: 0.82rem;
    width: 100%;
}

.streaming-hub-card-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --- Responsive --- */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .section {
        padding: 2.5rem 0;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .news-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card-grid--list {
        grid-template-columns: repeat(2, 1fr);
    }

    .streaming-hub-card {
        flex-direction: column;
    }

    .filter-bar .search-input {
        min-width: 160px;
    }

    .program-detail {
        gap: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}

/* Tablet portrait / large phone (768px) */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        flex-direction: column;
        gap: 0;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        font-size: 1rem;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav .lang-toggle {
        margin: 0.75rem 0 0;
        align-self: flex-start;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.82rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .program-detail {
        grid-template-columns: 1fr;
    }

    .program-image {
        max-width: 240px;
    }

    .artist-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .artist-image {
        margin: 0 auto;
    }

    /* Music: table→card switch */
    .music-table-wrapper {
        display: none;
    }

    .music-card-list {
        display: block;
    }

    /* Bottom nav visible */
    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    /* Nav active on mobile */
    .site-nav a.nav-active {
        border-left: 3px solid #6366f1;
        padding-left: 0.75rem;
        color: #6366f1;
    }

    .site-nav a.nav-active::after {
        display: none;
    }

    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .breadcrumb ol {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .amazon-cards {
        grid-template-columns: 1fr;
    }

    .news-article-title {
        font-size: 1.3rem;
    }

    /* Streaming hub: stack on mobile */
    .streaming-hub-card {
        flex-direction: column;
    }

    /* Compact streaming: モバイルCTA強化 */
    .stream-compact-btn {
        width: auto;
        height: 36px;
        padding: 0 1rem;
        border-radius: 18px;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: #ffffff;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }

    .stream-compact-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .stream-compact-btn-label {
        display: inline;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .stream-compact-btn:hover {
        transform: none;
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
    }

    /* ボトムシート方式 */
    .stream-compact-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .stream-compact.open .stream-compact-overlay {
        display: block;
    }

    .stream-compact.open .stream-compact-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        margin-top: 0;
        min-width: auto;
        border-radius: 16px 16px 0 0;
        z-index: 1000;
        padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
        animation: streamSheetUp 0.2s ease-out;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    .stream-compact.open .stream-compact-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .stream-compact.open .stream-compact-icon {
        width: 24px;
        height: 24px;
    }

    .stream-compact.open .stream-compact-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Small phones (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .breadcrumb {
        margin-bottom: 1rem;
    }

    .breadcrumb ol {
        font-size: 0.7rem;
    }

    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-card-grid--list {
        grid-template-columns: 1fr;
    }

    .related-programs-list {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .filter-bar .search-input {
        min-width: 0;
    }

    .music-card-credits {
        grid-template-columns: 1fr;
    }

    .program-image {
        max-width: 180px;
    }

    .artist-detail {
        text-align: left;
    }

    .artist-image {
        width: 100px;
        height: 100px;
    }

    .streaming-links {
        gap: 0.3rem;
    }

    .stream-btn {
        width: 30px;
        height: 30px;
    }

    .stream-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* --- Ranking --- */
.ranking-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.ranking-tab {
    padding: 0.6rem 2rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    letter-spacing: 0.02em;
}

.ranking-tab:hover {
    color: #6366f1;
}

.ranking-tab.active {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    color: #fff;
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
}

.music-card-header .rank-number {
    margin-right: 0.4rem;
}

/* --- Song Detail (song.php) --- */
.song-detail {
    max-width: 780px;
}

.song-header {
    margin-bottom: 0.75rem;
}

.song-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 0.4rem;
}

.song-kana {
    color: #94a3b8;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.song-artist {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.song-artist a {
    color: #6366f1;
}

.song-program {
    margin-bottom: 1.5rem;
}

.song-program-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    max-width: 400px;
    transition: all 0.25s;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.song-program-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    color: inherit;
}

.song-program-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.song-program-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-program-info {
    flex: 1;
    min-width: 0;
}

.song-program-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.song-program-year {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.song-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.song-credits {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.song-credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.song-credit-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.song-credit-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.song-credit-value {
    font-size: 0.95rem;
    color: #1e293b;
}

.song-credit-value a {
    color: #6366f1;
}

.song-streaming {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.song-amazon {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.song-share {
    margin-bottom: 1.5rem;
}

.song-share-x-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    color: #ffffff;
    padding: 0.7rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.song-share-x-btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-1px);
}

.song-share-x-btn svg {
    flex-shrink: 0;
}

.song-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.song-related-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.25s;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.song-related-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    color: inherit;
}

.song-related-title {
    font-weight: 600;
    font-size: 0.92rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-related-artist,
.song-related-program {
    color: #64748b;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Song Detail Responsive */
@media (max-width: 768px) {
    .song-title {
        font-size: 1.4rem;
    }

    .song-artist {
        font-size: 1rem;
    }

    .song-credits-grid {
        grid-template-columns: 1fr;
    }

    .song-related-list {
        grid-template-columns: 1fr;
    }

    .song-program-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .song-title {
        font-size: 1.25rem;
    }

    .song-credits {
        padding: 1rem;
    }

    .song-streaming {
        padding: 1rem;
    }
}

/* =============================================
   Columns
   ============================================= */

/* Category badges */
.column-category-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.column-category-badge--column { background: #ede9fe; color: #6d28d9; }
.column-category-badge--interview { background: #fce7f3; color: #be185d; }
.column-category-badge--review { background: #dbeafe; color: #1d4ed8; }
.column-category-badge--feature { background: #d1fae5; color: #047857; }

/* Filter chips */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.filter-chip {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-chip:hover { border-color: #6366f1; color: #6366f1; }
.filter-chip.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* Card meta */
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}
.news-card-author {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

/* Column thumb placeholder (no image) */
.column-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.column-thumb-placeholder .column-category-badge {
    background: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* Column article detail */
.column-article { max-width: 720px; margin: 0 auto; }

.column-article-header { margin-bottom: 2rem; }
.column-article-header .column-category-badge { margin-bottom: 0.75rem; }
.column-article-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #1f2937;
}
.column-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}
.column-article-author { font-weight: 600; color: #374151; }

.column-article-hero {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}
.column-article-hero img { width: 100%; height: auto; display: block; }

/* Column body */
.column-article-body {
    font-size: 1rem;
    line-height: 1.9;
    color: #374151;
}
.column-article-body a { color: #6366f1; text-decoration: underline; }
.column-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #6366f1;
}
.column-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 0.8rem;
}
.column-quote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #6366f1;
    background: #f9fafb;
    color: #4b5563;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.column-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.column-image img { width: 100%; height: auto; display: block; }

/* Author card */
.column-author-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.column-author-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}
.column-author-image img { width: 100%; height: 100%; object-fit: cover; }
.column-author-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}
.column-author-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.4rem;
}
.column-author-name a { color: #6366f1; text-decoration: none; }
.column-author-name a:hover { text-decoration: underline; }
.column-author-bio {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #6b7280;
}

/* Share */
.column-share { margin-top: 2rem; text-align: center; }
.btn-share-x {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Related programs grid (column detail) */
.related-programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 600px) {
    .related-programs-grid { grid-template-columns: 1fr 1fr; }
}

/* Related columns */
.column-related { margin-top: 3rem; }
.column-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.column-related-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.column-related-item:hover { background: #f3f4f6; }
.column-related-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
}
.column-related-date {
    font-size: 0.8rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .column-article-title { font-size: 1.3rem; }
    .column-heading { font-size: 1.15rem; }
    .column-author-card { flex-direction: column; align-items: center; text-align: center; }
    .column-related-item { flex-wrap: wrap; }
    .column-related-date { width: 100%; }
}

/* =============================================
   Legal / Info Pages (about, privacy, contact)
   ============================================= */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
    color: #374151;
}
.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #6366f1;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p {
    margin-bottom: 1rem;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.info-table th,
.info-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.95rem;
}
.info-table th {
    width: 30%;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
}
.info-table td a {
    color: #6366f1;
}
.legal-link {
    margin-top: 1.5rem;
    text-align: center;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #6366f1;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .info-table th {
        width: 35%;
        font-size: 0.85rem;
    }
    .info-table td {
        font-size: 0.85rem;
    }
}

/* =============================================
   Universal Search (search.php)
   ============================================= */
.search-form {
    margin-bottom: 1.5rem;
}
.search-form-inner {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
}
.search-input--full {
    flex: 1;
}
.search-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.search-tab:hover {
    color: #6366f1;
}
.search-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}
.search-tab-count {
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}
.search-tab.active .search-tab-count {
    background: #ede9fe;
    color: #6366f1;
}
.search-section {
    margin-bottom: 2rem;
}
.search-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}
.search-section-count {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* =============================================
   Column Pickup (Top page) — Visual + List
   ============================================= */
.pickup-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 280px;
}
.pickup-visual {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none;
}
.pickup-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.pickup-visual:hover img {
    transform: scale(1.03);
}
.pickup-list {
    display: flex;
    flex-direction: column;
}
.pickup-list-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}
.pickup-list-item:last-child {
    border-bottom: none;
}
.pickup-list-item:hover {
    background: #f9fafb;
}
.pickup-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pickup-list-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}
@media (max-width: 768px) {
    .pickup-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .pickup-visual {
        aspect-ratio: 16 / 9;
    }
}

/* --- Utility classes (inline style replacements) --- */
.section-title--sm {
    font-size: 1.1rem;
}
.music-card-list--block {
    display: block;
}
.related-songs-section {
    margin-top: 2rem;
}
.section-more--lg {
    margin-top: 3rem;
}
.related-program-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* =============================================
   News Hero (1st view - Top page)
   ============================================= */
.news-hero-section {
    padding-top: 0;
}

/* =============================================
   News List Compact (Below ranking - Top page)
   ============================================= */
.news-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.news-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.news-list-item:last-child {
    border-bottom: none;
}
.news-list-item:hover {
    background: #f9fafb;
    color: inherit;
}
.news-list-thumb {
    width: 56px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-thumb .no-image-placeholder {
    width: 100%;
    height: 100%;
}
.news-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.news-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list-date {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .news-list-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .news-list-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}
