* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b6b;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --shadow: rgba(0, 0, 0, 0.1);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    position: relative;
    background: #fafafa;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://images.unsplash.com/photo-1464347601390-25e2842a37f7?q=80&w=1510&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 30% 20%,
            rgba(255, 107, 107, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(74, 144, 226, 0.1) 0%,
            transparent 50%
        );
    animation: subtleMove 20s ease-in-out infinite;
}

@keyframes subtleMove {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vh, 30px);
    animation: fadeIn 1.2s ease-out;
    height: 100%;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.thumbnail-border {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.thumbnail {
    width: clamp(120px, 25vw, 240px);
    height: clamp(120px, 25vw, 240px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail:hover {
    transform: scale(1.02);
}

.message-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: clamp(20px, 4vh, 40px) clamp(20px, 4vw, 40px)
        clamp(15px, 2.5vh, 25px) clamp(20px, 4vw, 40px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    overflow: hidden;
    margin-bottom: 20vh;
}

.title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: clamp(5px, 1vh, 10px);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1em, 2.5vw, 1.3em);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: clamp(10px, 2vh, 20px);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.divider {
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto clamp(15px, 2vh, 30px);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.message {
    font-size: clamp(0.85em, 2vw, 1.05em);
    line-height: clamp(1.5, 3vh, 1.7);
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.01em;
    word-break: keep-all;
}

.play-btn {
    position: fixed;
    bottom: clamp(15px, 3vh, 30px);
    right: clamp(15px, 3vw, 30px);
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: var(--accent-color);
}

.play-btn:active {
    transform: translateY(0);
}

.play-btn.playing {
    background: var(--accent-color);
}

.play-icon {
    font-size: clamp(12px, 2.5vw, 16px);
    line-height: 1;
}

.play-text {
    font-size: clamp(8px, 1.5vw, 10px);
    font-weight: 500;
    letter-spacing: 0.05em;
}

#youtube-player {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .content {
        gap: clamp(10px, 2vh, 20px);
        padding: 15px;
    }

    .thumbnail-wrapper {
        margin-bottom: 0;
    }

    .message-wrapper {
        padding: clamp(15px, 3vh, 25px) clamp(15px, 4vw, 25px)
            clamp(12px, 2vh, 20px) clamp(15px, 4vw, 25px);
    }

    .message {
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .content {
        gap: clamp(8px, 1.5vh, 15px);
        padding: 10px;
    }

    .message-wrapper {
        padding: clamp(12px, 2.5vh, 20px) clamp(12px, 3vw, 20px)
            clamp(10px, 1.5vh, 15px) clamp(12px, 3vw, 20px);
    }

    .divider {
        margin: 0 auto clamp(10px, 1.5vh, 20px);
    }
}

/* 세로 화면이 매우 작을 때 */
@media (max-height: 600px) {
    .thumbnail {
        width: clamp(80px, 15vw, 120px);
        height: clamp(80px, 15vw, 120px);
    }

    .content {
        gap: clamp(5px, 1vh, 10px);
    }

    .message-wrapper {
        padding: clamp(10px, 2vh, 15px) clamp(15px, 3vw, 20px)
            clamp(8px, 1vh, 12px) clamp(15px, 3vw, 20px);
    }

    .title {
        margin-bottom: clamp(2px, 0.5vh, 5px);
    }

    .subtitle {
        margin-bottom: clamp(5px, 1vh, 10px);
    }

    .divider {
        margin: 0 auto clamp(8px, 1vh, 15px);
    }
}
