@import url('https://fonts.googleapis.com/css2?family=Livvic:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background-color: #1e1e1e;
    --text-color: #fff;
    --container-bg: rgba(0, 0, 0, 0.14);
    --border-color: rgba(0, 0, 0, 0.68);
    --header-bg: url('Srrc/8月壁紙.jpg');
    --content-text-color: #999;
    --article-blockquote-color: #181818;
    --detail-color: #ccc;
}

body.light-mode {
    --background-color: #fff;
    --text-color: #000;
    --container-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(255, 255, 255, 0.68);
    --header-bg: url('Srrc/1月壁紙_PC.png');
    --content-text-color: #272626;
    --article-blockquote-color: #e5e9f0;
    --detail-color: #000000;
}

html, body {
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 50px;
}

body .container {
    max-width: 1000px;
    width: 100%;
    margin-bottom: 50px; /* Add margin to accommodate extra content */
}

body .container header {
    background: var(--header-bg) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 20px 50px 60px;
    border-radius: 16px;
}

body .container header .category {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

body .container header .info {
    text-align: center;
}

body .container header .info .tags i {
    font-size: 18px;
    margin-right: 4px;
}

body .container header .info .tags span {
    font-size: 0.8rem;
}

body .container header .info .title {
    margin: 20px 0;
    font-size: 3rem;
    font-weight: bold;
}

body .container header .info .subtitle {
    min-height: 70%;
    margin: 0 auto 20px;
    font-size: 1rem;
}

body .details {
    display: flex;
    justify-content: space-between;
    background: var(--container-bg);
    margin-top: 50px;
    padding: 20px 50px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

body .specter {
    background: url('Srrc\星街すいせい 2nd AlbumSPECTERクロスフェード_720pFH.mp4') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 20px 50px 60px;
    border-radius: 16px;
}

body .suilep {
    background: url('Srrc/3月壁紙.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 20px 50px 60px;
    border-radius: 16px;
}

body .details .item .item-title {
    color: var(--detail-color); 
}

body .details .item .item-text {
    margin-top: 12px;
    font-size: 1.5rem;
}

body .article {
    margin-top: 50px;
    padding-bottom: 20px;
    line-height: 1.70;
}

body article h4 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

body article p {
    margin-bottom: 20px;
    color: var(--content-text-color);
    font-size: 1.1rem;
}

body article blockquote {
    margin: 40px 0;
    background-color: var(--article-blockquote-color);
    padding: 30px;
    border-radius: 16px;
}

@media screen and (max-width: 768px) {
    body .container header {
        padding: 10px 20px 30px;
        min-height: 300px;
    }

    body .container header .category {
        font-size: 0.9rem;
    }

    body .container header .info .title {
        font-size: 2.2rem;
    }

    body .container header .info .subtitle {
        font-size: 0.8rem;
    }

    body .container .details {
        flex-direction: column;
    }

    body .container .details .item:not(:last-child) {
        margin-bottom: 30px;
    }
}

#theme-toggle {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: #eceff4;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

#theme-toggle svg {
    fill: #4c566a;
}

#theme-toggle svg:last-child {
    display: none;
}

body.light-mode #theme-toggle svg:first-child {
    display: none;
}

body.light-mode #theme-toggle svg:last-child {
    display: block;
}

footer.credit {
    margin-top: 50px;
    text-align: center;
    color: var(--text-color);
    background-color: var(--article-blockquote-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.spotify-player {
    width: 100%;
    max-width: 300px;
    height: 380px;
    margin: 20px 0;
    border: none;
}

.comments {
    margin-top: 50px;
    padding: 20px;
    background: var(--container-bg);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.comments h4 {
    margin-bottom: 20px;
}

.comments form {
    display: flex;
    flex-direction: column;
}

.comments input, .comments textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--background-color);
    color: var(--text-color);
}

.comments button {
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comments button:hover {
    background: #0056b3;
}

.comment {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    background: var(--container-bg);
    border: 1px solid var(--border-color);
}
    