* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", sans-serif;
    background: linear-gradient(135deg, #ffc0e3 0%, #ffb3d9 25%, #c9a2d8 50%, #a891d8 75%, #8e7cc3 100%);
    color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 182, 193, 0.5);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

/* Logo區域 */
.logo-section {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.brand-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(255, 182, 193, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* 收音機頂部 */
.radio-top {
    margin-bottom: 30px;
    padding-top: 20px;
}

.speaker-grill {
    height: 40px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 182, 193, 0.3) 20%, 
        rgba(255, 182, 193, 0.3) 80%, 
        transparent 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.speaker-grill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 182, 193, 0.4) 0px,
        rgba(255, 182, 193, 0.4) 3px,
        transparent 3px,
        transparent 8px
    );
}

/* 電台顯示屏 */
.radio-display {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 192, 203, 0.2) 100%);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 
        0 10px 40px rgba(255, 182, 193, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    border: 2px solid rgba(255, 192, 203, 0.5);
    backdrop-filter: blur(10px);
}

.frequency-dial {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.8) 0%, rgba(255, 105, 180, 0.6) 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 4px 10px rgba(255, 105, 180, 0.3),
        0 0 30px rgba(255, 182, 193, 0.6);
    border: 3px solid rgba(255, 192, 203, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dialGlow 3s ease-in-out infinite;
}

@keyframes dialGlow {
    0%, 100% {
        box-shadow: 
            inset 0 4px 10px rgba(255, 105, 180, 0.3),
            0 0 30px rgba(255, 182, 193, 0.6);
    }
    50% {
        box-shadow: 
            inset 0 4px 10px rgba(255, 105, 180, 0.3),
            0 0 50px rgba(255, 182, 193, 0.9);
    }
}

.dial-needle {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #ff69b4 0%, rgba(255, 105, 180, 0) 100%);
    transform-origin: center bottom;
    transform: translateX(-50%);
    animation: needleMove 4s ease-in-out infinite;
}

@keyframes needleMove {
    0%, 100% { transform: translateX(-50%) rotate(-10deg); }
    50% { transform: translateX(-50%) rotate(10deg); }
}

.frequency-number {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.station-name {
    text-align: center;
}

.station-name h1 {
    font-size: 32px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8), 0 2px 10px rgba(255, 182, 193, 0.6);
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 3px;
}

.signal-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 30px;
}

.signal-wave span {
    width: 4px;
    background: linear-gradient(to top, #ff69b4, #ffb6c1);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.signal-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.signal-wave span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.signal-wave span:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.signal-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.signal-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* 副標題區域 */
.subtitle {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.vinyl-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    animation: vinylSpin 4s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-outer {
    fill: rgba(255, 192, 203, 0.3);
    stroke: #ff69b4;
    stroke-width: 2;
}

.vinyl-middle {
    fill: rgba(255, 182, 193, 0.5);
}

.vinyl-center {
    fill: #ff69b4;
}

.subtitle p {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.6);
}

/* 歌單標題 */
.playlist-header {
    text-align: center;
    margin-bottom: 30px;
}

.tape-icon {
    width: 100px;
    height: 70px;
    margin: 0 auto 15px;
}

.tape-body {
    fill: rgba(255, 192, 203, 0.3);
    stroke: #ff69b4;
    stroke-width: 2;
}

.tape-reel {
    fill: rgba(255, 182, 193, 0.5);
    stroke: #ff69b4;
    stroke-width: 1;
}

.tape-center {
    fill: #ff69b4;
}

.tape-line {
    stroke: #ff69b4;
    stroke-width: 1;
}

.playlist-header h2 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.6);
}

/* 曲目卡片 */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.track-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 240, 245, 0.85) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* 卡片吉祥物裝飾 */
.card-mascot {
    position: absolute;
    top: -20px;
    right: -15px;
    width: 120px;
    height: 120px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.card-mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(10deg);
    filter: blur(0.5px);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.6);
    border-color: rgba(255, 105, 180, 0.7);
}

.track-card:hover .card-mascot {
    opacity: 0.4;
    animation: mascotBounce 0.6s ease;
}

@keyframes mascotBounce {
    0%, 100% { transform: rotate(10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.15); }
}

.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 182, 193, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.track-card:hover::before {
    left: 100%;
}

.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff69b4 50%, 
        transparent 100%);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.track-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.6);
}

.track-header h3 {
    font-size: 24px;
    color: #4a4a4a;
    font-weight: 500;
}

.flavor-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 182, 193, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 105, 180, 0.5);
    position: relative;
    z-index: 2;
}

.flavor-icon {
    width: 20px;
    height: 20px;
    fill: #ff69b4;
}

.flavor-tag span {
    color: #c71585;
    font-size: 16px;
    font-weight: 600;
}

.dj-message {
    position: relative;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 182, 193, 0.2);
    border-radius: 15px;
    border-left: 3px solid #ff69b4;
    z-index: 2;
}

.quote-icon {
    position: absolute;
    left: 12px;
    top: 15px;
    font-size: 24px;
}

.dj-message p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
}

/* CTA區域 */
.cta-section {
    text-align: center;
    margin: 50px 0 40px;
}

.cta-text {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.6);
}

.tune-button {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tune-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.8);
}

.tune-button:active {
    transform: scale(0.98);
}

.button-dial {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: buttonDialRotate 3s linear infinite;
}

@keyframes buttonDialRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dial-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dial-lines::before,
.dial-lines::after {
    content: '';
    position: absolute;
    background: #ffffff;
    border-radius: 2px;
}

.dial-lines::before {
    width: 3px;
    height: 15px;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
}

.dial-lines::after {
    width: 15px;
    height: 3px;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
}

.dial-center {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
}

/* 頁尾 */
.footer {
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ff69b4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff1493;
}

.separator {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-copyright p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* 響應式設計 */
@media (max-width: 375px) {
    .container {
        padding: 15px;
    }
    
    .station-name h1 {
        font-size: 28px;
    }
    
    .track-header h3 {
        font-size: 20px;
    }
    
    .tune-button {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.track-card {
    animation: fadeInUp 0.6s ease-out;
}

.track-card:nth-child(1) { animation-delay: 0.1s; }
.track-card:nth-child(2) { animation-delay: 0.2s; }
.track-card:nth-child(3) { animation-delay: 0.3s; }

/* 模態確認框樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    border: 2px solid rgba(255, 182, 193, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.modal-title {
    font-size: 24px;
    color: #ff69b4;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-btn-cancel {
    background: rgba(200, 200, 200, 0.3);
    color: #666;
    border: 2px solid rgba(200, 200, 200, 0.5);
}

.modal-btn-cancel:hover {
    background: rgba(200, 200, 200, 0.5);
    transform: scale(1.05);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.modal-btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
    transform: scale(1.05);
}

.modal-btn:active {
    transform: scale(0.95);
}

