/* Podcast Page Specific Styles */

/* General Page Styling to override/supplement new.css */
body.podcast-page {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.podcast-container {
    max-width: 1000px;
    margin: 80px auto 50px;
    /* Top margin accounts for fixed header */
    padding: 0 20px;
    text-align: center;
}

/* Section Common */
.podcast-container section {
    margin-bottom: 80px;
    padding-top: 40px;
    /* anchor offset if needed, or visual spacing */
}

.section-header {
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 2.5rem;
    color: #adadad;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.section-header .sub-header {
    font-size: 1rem;
    color: #888;
    display: block;
    margin-top: -5px;
}

/* Update Header Links Color for Dark Mode compatibility if needed */
/* Since header is white bg in index.html, we might want to keep it white or invert.
   The HTML uses ../new.css which defines header styles.
   If header background is white, links are black. That works.
*/

/* Hero Section */
.podcast-hero {
    background: linear-gradient(314deg, #82d9f3 0%, #038cb6 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-icon {
    position: static;
    width: 280px;
    height: 280px;
    object-fit: cover;
    margin-right: 50px;
    border-radius: 15px;
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0.9;
}

.hero-schedule {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: bold;
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.platform-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: white;
}

.platform-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.platform-btn.spotify {
    background-color: #1DB954;
}

.platform-btn.apple {
    background-color: #a639bf;
    /* purple-ish for podcast */
}

.platform-btn.amazon {
    background-color: #4600f1;
    border: none;
}

.platform-btn.youtube {
    background-color: #FF0000;
}

/* Latest Episode */
.latest-card {
    background: #252525;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.latest-video {
    width: 100%;
    max-width: 800px;
}

.latest-video iframe {
    width: 100%;
    /* aspect-ratio removed for Spotify embed */
    border-radius: 12px;
}

.latest-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.listen-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
}

.listen-btn:hover {
    background: #fff;
    color: #000;
}

/* Archive */
.archive-container {
    background: #252525;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
}

.archive-search {
    margin-bottom: 20px;
    text-align: center;
}

.search-input {
    width: 80%;
    max-width: 400px;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #555;
    background: #333;
    color: white;
    font-size: 1rem;
}

.episode-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #444;
}

/* Custom Scrollbar for Episode List */
.episode-ul::-webkit-scrollbar {
    width: 6px;
}
.episode-ul::-webkit-scrollbar-track {
    background: #252525;
    border-radius: 3px;
}
.episode-ul::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}
.episode-ul::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.episode-li {
    border-bottom: 1px solid #444;
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
}

.episode-li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ep-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.ep-date {
    font-size: 0.9rem;
    color: #888;
    flex-shrink: 0;
    width: 90px;
    text-align: left;
}

.ep-title {
    font-size: 1rem;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.ep-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ep-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    background: #444;
    transition: transform 0.2s, background 0.2s;
}

.ep-btn:hover {
    transform: scale(1.1);
    color: white;
}

.ep-btn.spotify {
    background: #1DB954;
}

.ep-btn.amazon {
    background: #4600f1;
}

.ep-btn.youtube {
    background: #FF0000;
}

.ep-btn.apple {
    background: #a639bf;
}

/* Mobile styling for left alignment */
@media screen and (max-width: 768px) {
    .episode-li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ep-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 5px;
    }

    .ep-date {
        width: auto;
    }

    .ep-title {
        white-space: normal;
        padding-right: 0;
        font-size: 1.1rem;
    }

    .ep-links {
        margin-top: 5px;
    }
}

.archive-links.little-margin {
    margin-top: 30px;
    border-top: 1px dashed #444;
    padding-top: 20px;
}

.archive-note {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.archive-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer */
#footer {
    color: white;
    background: #111;
    padding: 20px 0;
}

#footer a {
    color: white !important;
}

/* About */
.about-content {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content p {
    text-align: left;
    max-width: 600px;
    width: fit-content;
}

.about-scenes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.scene-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
}

.scene-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #666;
}

/* Contact */
.contact-card {
    background: #252525;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card p {
    text-align: left;
    max-width: 600px;
    width: fit-content;
}

.form-btn {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: bold;
    margin: 20px 0;
    font-size: 1.1rem;
    transition: background 0.3s;
    white-space: nowrap;
    /* Prevent wrapping */
}

.form-btn:hover {
    background: #4338ca;
    color: white;
}

/* Force white text on buttons to override new.css :visited style */
.platform-btn,
.platform-btn:visited,
.listen-btn,
.listen-btn:visited,
.archive-btn,
.archive-btn:visited,
.form-btn,
.form-btn:visited {
    color: white !important;
}

.discord-promo {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #bbb;
}

.discord-link {
    color: #7289da;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .podcast-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-icon {
        margin: 0 auto 30px;
        width: 180px;
        height: 180px;
        margin-right: auto;
        /* Reset margin-right */
    }

    .platform-links {
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .platform-links {
        flex-direction: column;
        align-items: stretch;
    }

    .form-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 10px;
        font-size: 1rem;
    }

    .platform-btn {
        justify-content: center;
    }

    .about-scenes {
        gap: 20px;
    }

    .section-header h3 {
        font-size: 2rem;
    }
}

/* Display switching */
.pc-only {
    display: none !important;
}

.sp-only {
    display: none !important;
}

@media screen and (min-width: 769px) {
    .pc-only {
        display: block !important;
    }
    /* If it's a badge, we want inline-block but block !important works for hiding/showing general elements */
    .new-badge.pc-only {
        display: inline-block !important;
    }
}

@media screen and (max-width: 768px) {
    .sp-only {
        display: block !important;
    }
    .new-badge.sp-only {
        display: inline-block !important;
    }
}

/* かじゅぽけぱーてぃ Specific Styles */
.kajupoke-hero {
    background: linear-gradient(314deg, #ffdf60 0%, #ff7f50 100%) !important;
}

.new-badge {
    background: #fff;
    color: #ff7f50;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kajupoke-logo {
    width: 100%;
    max-width: 420px;
    margin-bottom: 15px;
}

/* PC Only badge positioning */
@media screen and (min-width: 769px) {
    .kajupoke-hero .hero-content {
        position: relative;
    }

    .kajupoke-hero .pc-only.new-badge {
        position: absolute;
        top: -10px;
        left: -15px;
        z-index: 10;
        transform: rotate(-5deg);
    }

    .kajupoke-logo {
        transform: translateX(30px);
    }
}

/* SP Adjustments */
@media screen and (max-width: 768px) {
    .kajupoke-hero {
        padding-top: 30px !important;
    }

    .kajupoke-hero .new-badge.sp-only {
        margin-bottom: 20px;
    }

    .kajupoke-logo {
        max-width: 300px;
    }
}
