/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 倒计时覆盖层样式 - 简约清新风格 */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8f9fa;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.countdown-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.countdown-container {
    text-align: center;
    color: #333;
    max-width: 800px;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.countdown-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #ff6b9d;
    letter-spacing: -0.5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    min-width: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.time-unit:hover {
    transform: translateY(-2px);
    border-color: #ff6b9d;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
}

.time-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #ff6b9d;
}

.time-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #6c757d;
    font-weight: 500;
}

.hearts-animation {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hearts-animation i {
    font-size: 1.8rem;
    color: #ff6b9d;
    animation: heartbeat 2s infinite;
}

.hearts-animation i:nth-child(2) {
    animation-delay: 0.3s;
}

.hearts-animation i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

/* 飘动爱心背景 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: rgba(255, 107, 157, 0.3);
    font-size: 1.5rem;
    animation: floatUp 8s linear infinite;
    pointer-events: none;
}

/* 爱心符号样式 */
.floating-heart:has(💕),
.floating-heart:has(💖),
.floating-heart:has(💗),
.floating-heart:has(💝) {
    color: rgba(255, 107, 157, 0.4);
    font-size: 1.5rem;
}

/* 星星符号样式 */
.floating-heart:has(✨),
.floating-heart:has(⭐),
.floating-heart:has(🌟),
.floating-heart:has(💫) {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
}

/* 花朵符号样式 */
.floating-heart:has(🌸),
.floating-heart:has(🌺),
.floating-heart:has(🌻),
.floating-heart:has(🌷) {
    color: rgba(255, 182, 193, 0.5);
    font-size: 1.3rem;
}

/* 其他符号样式 */
.floating-heart:has(🦋),
.floating-heart:has(💎) {
    color: rgba(255, 192, 203, 0.4);
    font-size: 1.1rem;
}

/* 星星闪烁动画 */
@keyframes twinkle {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 倒计时进度条 */
.countdown-progress {
    margin: 2rem 0;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #ffb6c1, #ffc0cb);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}


/* iPhone 手机适配 */
@media screen and (max-width: 768px) {
    .countdown-container {
        max-width: 90vw;
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .countdown-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }
    
    .countdown-timer {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }
    
    .time-number {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
    
    .countdown-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hearts-animation i {
        font-size: 1.5rem;
    }
}

/* iPhone SE 和更小屏幕 */
@media screen and (max-width: 375px) {
    .countdown-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-timer {
        gap: 0.8rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 1rem 0.6rem;
    }
    
    .time-number {
        font-size: 1.8rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .countdown-message {
        font-size: 0.9rem;
    }
}

/* iPhone 横屏适配 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .countdown-container {
        padding: 1rem;
        max-width: 95vw;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .countdown-timer {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 0.8rem 0.5rem;
    }
    
    .time-number {
        font-size: 1.6rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .countdown-message {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hearts-animation {
        margin-top: 1rem;
    }
}

/* 全屏视频样式 */
.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* 视频页面的飘动爱心 */
.floating-hearts {
    z-index: 2;
}

/* 当视频显示时，飘动元素样式调整 */
.floating-hearts .floating-heart {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

/* 视频页面的爱心符号 */
.floating-hearts .floating-heart:has(💕),
.floating-hearts .floating-heart:has(💖),
.floating-hearts .floating-heart:has(💗),
.floating-hearts .floating-heart:has(💝) {
    color: rgba(255, 107, 157, 0.5);
    font-size: 1.3rem;
}

/* 视频页面的星星符号 */
.floating-hearts .floating-heart:has(✨),
.floating-hearts .floating-heart:has(⭐),
.floating-hearts .floating-heart:has(🌟),
.floating-hearts .floating-heart:has(💫) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* 视频页面的花朵符号 */
.floating-hearts .floating-heart:has(🌸),
.floating-hearts .floating-heart:has(🌺),
.floating-hearts .floating-heart:has(🌻),
.floating-hearts .floating-heart:has(🌷) {
    color: rgba(255, 182, 193, 0.6);
    font-size: 1.2rem;
}

/* 视频页面的其他符号 */
.floating-hearts .floating-heart:has(🦋),
.floating-hearts .floating-heart:has(💎) {
    color: rgba(255, 192, 203, 0.5);
    font-size: 1rem;
}

/* iPhone 视频页面适配 - 全屏优化 */
@media screen and (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(15px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .header.hidden {
        transform: translateY(-100%);
    }
    
    .header .container {
        padding: 0 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .logo h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .birthday-message-header {
        flex: 1;
        text-align: right;
        min-width: 0;
    }
    
    .birthday-message-header h2 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .birthday-message-header p {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .fullscreen-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
    }
    
    .fullscreen-video iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
}

@media screen and (max-width: 375px) {
    .header {
        padding: 0.4rem 0;
    }
    
    .header .container {
        padding: 0 0.8rem;
        gap: 0.3rem;
    }
    
    .logo h1 {
        font-size: 0.9rem;
    }
    
    .birthday-message-header h2 {
        font-size: 0.8rem;
    }
    
    .birthday-message-header p {
        font-size: 0.65rem;
    }
}

/* iPhone 横屏视频适配 - 全屏优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 0.3rem 0;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .header .container {
        padding: 0 0.8rem;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 0.9rem;
    }
    
    .birthday-message-header h2 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }
    
    .birthday-message-header p {
        font-size: 0.65rem;
    }
}

/* iPhone 全屏视频时的标题隐藏/显示 */
@media screen and (max-width: 768px) {
    .header.auto-hide {
        animation: slideUp 0.3s ease forwards;
    }
    
    .header.auto-show {
        animation: slideDown 0.3s ease forwards;
    }
}

@keyframes slideUp {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* 头部样式 */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.birthday-message-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
}

.birthday-message-header h2 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: right;
}

.birthday-message-header p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    color: #ff69b4;
    font-size: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    padding: 0.5rem;
    width: 200px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 主要内容区域 */
.main {
    margin-top: 80px;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://via.placeholder.com/1920x1080/1a1a1a/ffffff?text=视频播放器背景') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '❤️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.cta-btn:hover::before {
    opacity: 1;
    animation: float 1s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* 视频播放器区域 */
.video-player-section {
    background: #1a1a1a;
    padding: 3rem 0;
    margin: 2rem 0;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
}

.youtube-iframe {
    width: 100%;
    height: 450px;
    border-radius: 15px;
}

.local-video {
    display: none;
}

/* YouTube動画用のレスポンシブ対応 */
@media (max-width: 768px) {
    .youtube-iframe {
        height: 250px;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(255, 107, 107, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-pause-btn:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    max-width: 50%;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* 视频控制栏 */
.video-controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* 動画ソース切り替えボタン */
.video-source-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 105, 180, 0.3);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    border-color: #ff69b4;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.toggle-btn i {
    font-size: 1.2rem;
}

.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 0.9rem;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.volume-slider {
    margin-left: 1rem;
}

.volume-slider input[type="range"] {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
}

/* 愛のメッセージセクション */
.love-message {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.love-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="rgba(255,255,255,0.1)">❤️</text></svg>') repeat;
    animation: float 20s linear infinite;
}

.message-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.2);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.message-card h2 {
    color: #ff69b4;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.message-card p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.love-quotes {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.love-quotes blockquote {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
    animation: float 3s ease-in-out infinite;
}

.love-quotes blockquote:nth-child(2) {
    animation-delay: 1s;
}

.love-quotes blockquote:nth-child(3) {
    animation-delay: 2s;
}

.love-quotes blockquote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.love-quotes blockquote::after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    bottom: -20px;
    right: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.video-details {
    padding: 1.5rem;
}

.video-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.video-details p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.duration {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .video-list {
        grid-template-columns: 1fr;
    }
    
    .control-buttons {
        justify-content: center;
    }
    
    .volume-slider {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        height: 50vh;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .video-details {
        padding: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item {
    animation: fadeInUp 0.6s ease forwards;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }
.video-item:nth-child(5) { animation-delay: 0.5s; }
.video-item:nth-child(6) { animation-delay: 0.6s; }

/* 爱心动画容器 */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.heart {
    position: absolute;
    color: #ff69b4;
    font-size: 20px;
    animation: heartFall 3s linear infinite;
    pointer-events: none;
}

@keyframes heartFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 生日祝福消息 */
.birthday-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-in-out;
}

.message-content {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
    animation: bounceIn 0.8s ease-out;
}

.message-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.message-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.close-message {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-message:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 播放按钮爱心效果 */
.play-overlay i {
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff69b4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
