@keyframes glow {
    to {
        background-position: 1000%;
    }
}

@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorChange {

    0%,
    100% {
        color: red;
    }

    15% {
        color: orange;
    }

    30% {
        color: yellow;
    }

    45% {
        color: green;
    }

    60% {
        color: blue;
    }

    75% {
        color: indigo;
    }

    90% {
        color: purple;
    }
}

@keyframes bgColorChange {

    0%,
    100% {
        background-color: rgba(255, 0, 0, 0.5);
    }

    15% {
        background-color: rgba(255, 145, 0, 0.5);
    }

    30% {
        background-color: rgba(242, 255, 0, 0.5);
    }

    45% {
        background-color: rgba(64, 255, 0, 0.5);
    }

    60% {
        background-color: rgba(0, 200, 255, 0.5);
    }

    75% {
        background-color: rgba(51, 0, 255, 0.5);
    }

    90% {
        background-color: rgba(217, 0, 251, 0.5);
    }
}

@keyframes textGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

#blog-title {
    cursor: pointer;
}

#header {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

    h1 {
        cursor: default;
        font-size: 1.875rem;
        font-weight: 700;
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);

        a {
            animation: colorChange 10s infinite;
            text-decoration: none;
        }
    }

    nav {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        display: flex;
        padding: 1rem 2rem;
        backdrop-filter: blur(10px);
        border-radius: 24px;
        animation: bgColorChange 10s infinite;

        ul {
            display: flex;
            gap: 2rem;

            li {
                list-style: none;
            }
        }

        a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        a:hover {
            color: #40a9ff;
        }

        a:hover::after {
            transform: scaleX(1);
        }

        a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 100%;
            height: 2px;
            background: #40a9ff;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
    }
}

#banner {
    position: relative;
    padding: 4rem 2rem 6rem;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: default;

    h2 {
        font-size: 3.5rem;
        line-height: 2.5;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    }

    p {
        text-align: center;
        font-size: 1.25rem;
        color: #eee;
        margin-bottom: 2rem;
        opacity: 0.9;
    }
}

#bodyer {
    margin-top: 2em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    width: 80vw;
    cursor: default;

    hr {
        border: 0;
        border-bottom: solid 1px rgba(144, 144, 144, 0.25);
        margin: 2em 0;
    }

    h2 {
        cursor: default;
        animation: colorChange 10s infinite;
    }

    details {
        cursor: pointer;
    }
}

#rec_src a {
    margin-left: 1em;
    text-decoration: none;
    color: rgb(112, 112, 0);
}

#footer {
    padding: 3em 0 1em 0;
    background: #f6f6f6;
    color: #aaa;
    text-align: center;
    min-height: 10vh;

    a {
        -moz-transition: color 0.2s ease-in-out;
        -webkit-transition: color 0.2s ease-in-out;
        -ms-transition: color 0.2s ease-in-out;
        transition: color 0.2s ease-in-out;
        color: #aaa;
        text-decoration: none;
    }

    a:active,
    a:hover {
        color: #666;
    }

    .icons {
        font-size: 1.5em;

        li {
            padding-right: 2.5em;
        }

        li:last-child {
            padding-right: 0;
        }
    }

    .copyright {
        margin: 2em 0;
        padding: 0;
        text-align: center;

        li {
            border-left: solid 1px rgba(144, 144, 144, 0.25);
            display: inline-block;
            list-style: none;
            margin-left: 1.5em;
            padding-left: 1.5em;
        }

        li:first-child {
            border-left: 0;
            margin-left: 0;
            padding-left: 0;
        }
    }
}

.colorfulBox {
    animation: glow 8s linear infinite;
    position: relative;
    margin: 15px 0;
    padding: 0 15px;
    border-radius: 20px;
    color: white;
    background-color: white;
    font-size: 45px;
    border: transparent;
    outline: transparent;
    background: linear-gradient(90deg, #00dbde, #fc00ff, #00dbde);
    background-size: 300%;
    z-index: 1;
    text-decoration: none;
}

.colorfulBox::before {
    filter: blur(8px);
    animation: glow 8s linear infinite;
    position: absolute;
    content: "";
    top: -3px;
    left: -3px;
    bottom: -3px;
    right: -3px;
    background: inherit;
    background-size: inherit;
    border-radius: 4em;
    transition: 0.5s;
    z-index: -1;
}

.colorfulBox:hover::before {
    filter: blur(20px);
}

.search-container {
    margin: 20px auto 30px;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    outline: none;
    background-color: white;
    padding-left: 45px;
}

.search-input:focus {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.link-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    position: relative;
    border: 1px solid #f0f0f0;
    transform: translateY(0);
}

.link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.res_title {
    color: #333;
    text-align: left;
    padding: 0;
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.link-card:hover .res_title {
    color: #0066cc;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-url {
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.favicon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-top {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 40px auto;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
}

.empty-state-message {
    font-size: 0.95rem;
    line-height: 1.5;
}

.music-card {
    display: flex;
    width: 450px;
    margin: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.song-info {
    margin-bottom: 10px;
}

.song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.song-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.player-controls {
    padding: 10px 0;
}

.play-pause {
    background-color: #1db954;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto 10px;
    position: relative;

    .pause-icon {
        display: none;
        position: absolute;
        top: 25%;
        left: 30%;
    }
}

.play-pause:hover {
    background-color: #1ed760;
}

.progress-container {
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #1db954;
    border-radius: 3px;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.card-image {
    position: relative;
    width: 200px;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-image:hover img {
    transform: scale(1.1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

#rec_music {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;

    .tutorial-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 20px;
        transition: transform 0.3s ease;
    }

    .tutorial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .card-title {
        font-size: 1.3em;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .card-desc {
        color: #555;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .card-meta {
        font-size: 0.9em;
        color: #7f8c8d;
        margin-bottom: 15px;
    }

    .btn-readmore {
        display: inline-block;
        padding: 8px 20px;
        background: linear-gradient(100deg, #00dbde, #74f81b, #00dbde);
        color: #fff;
        text-decoration: none;
        animation: glow 8s linear infinite;
        border-radius: 20px;
        outline: transparent;
        background-size: 300%;
    }

    .btn-readmore:hover {
        animation: glow 32s linear infinite;
    }

    .page-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 30px 20px;
    }

    .back-link {
        display: inline-block;
        margin-bottom: 20px;
        color: #7f8c8d;
        text-decoration: none;
    }

    .back-link:hover {
        color: #3498db;
    }

    .tutorial-content h2 {
        margin: 30px 0 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
    }

    .code-block {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 6px;
        overflow-x: auto;
        margin: 15px 0;
        font: 14px/1.5 'Courier New', Courier, monospace;
    }
}

details {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

details:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(90deg, #00dbde, #fc00ff, #00dbde);
    background-size: 300%;
    animation: glow 8s linear infinite;
    filter: blur(5px);
    opacity: 0.7;
}

summary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    position: relative;
    background: white;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #666;
    margin-left: 10px;
}

details[open] summary::after {
    transform: rotate(90deg);
}

details>div {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

summary:hover {
    background-color: #f8f9fa;
}

summary::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    background-size: 200% 100%;
    animation: borderMove 5s linear infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

summary:hover::before {
    transform: scaleX(1);
}

details>div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

details[open]>div {
    max-height: 2000px;
}

summary {
    color: #ff6b6b;
}

summary span {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: textGradient 5s ease infinite;
}

summary:hover span {
    animation-duration: 3s;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

details>div .card-title {
    text-align: center;
    animation: colorChange 10s infinite;
    position: relative;
    display: inline-block;
}

details>div .card-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    transition: width 0.3s ease;
}

details>div .card-title:hover::after {
    width: 60%;
}