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

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: #0a0e27;
}

/* Background container với hiệu ứng chuyển đổi */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.background-image.active {
    opacity: 1;
}

/* Background cho từng danh mục */
.background-image[data-category="anime"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.background-image[data-category="animetm"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.background-image[data-category="manga"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.background-image[data-category="movie"] {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.background-image[data-category="liveaction"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Logo container */
.logo-container {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.site-title {
    font-family: 'Pirata One', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 140, 0, 0.4);
    letter-spacing: 5px;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.8),
            0 5px 15px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(255, 140, 0, 0.6);
    }
}

.site-subtitle {
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
}

/* Base button styles */
.op-button {
    position: relative;
    display: block;
    text-decoration: none;
    padding: 30px 40px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Hiệu ứng ánh sáng chạy */
.op-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.op-button:hover::before {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

/* Hiệu ứng viền sáng xung quanh */
.op-button::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: rotate 3s linear infinite;
    animation-play-state: paused;
}

.op-button:hover::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.op-button:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px currentColor,
        0 0 50px currentColor,
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.button-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

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

.op-button:hover .button-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
    animation: none;
}

.button-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.op-button:hover .button-text {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 50px currentColor;
    transform: scale(1.1);
}

.button-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.op-button:hover .button-subtitle {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Màu nền rực rỡ cho từng nút */

/* One Piece Anime - Tím xanh huyền bí */
.anime-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #a78bfa;
}

.anime-button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(167, 139, 250, 0.8),
        0 0 70px rgba(167, 139, 250, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* One Piece Thuyết Minh - Hồng rực rỡ */
.animetm-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fb7185;
}

.animetm-button:hover {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #fb7185 100%);
    box-shadow: 
        0 20px 50px rgba(240, 147, 251, 0.6),
        0 0 40px rgba(251, 113, 133, 0.8),
        0 0 70px rgba(251, 113, 133, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* One Piece Manga - Vàng cam rực lửa */
.manga-button {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fbbf24;
}

.manga-button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    box-shadow: 
        0 20px 50px rgba(250, 112, 154, 0.6),
        0 0 40px rgba(251, 191, 36, 0.8),
        0 0 70px rgba(251, 191, 36, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* One Piece Movie - Xanh cyan sáng */
.movie-button {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: #22d3ee;
}

.movie-button:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%);
    box-shadow: 
        0 20px 50px rgba(48, 207, 208, 0.6),
        0 0 40px rgba(34, 211, 238, 0.8),
        0 0 70px rgba(34, 211, 238, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* One Piece Live Action - Hồng pastel */
.liveaction-button {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #f9a8d4;
}

.liveaction-button:hover {
    background: linear-gradient(135deg, #ec4899 0%, #f9a8d4 50%, #fbcfe8 100%);
    box-shadow: 
        0 20px 50px rgba(168, 237, 234, 0.6),
        0 0 40px rgba(249, 168, 212, 0.8),
        0 0 70px rgba(249, 168, 212, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .button-text {
        font-size: 1.3rem;
    }

    .button-icon {
        font-size: 2.5rem;
    }

    .op-button {
        padding: 25px 30px;
    }

    .button-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .button-text {
        font-size: 1.1rem;
    }

    .button-subtitle {
        font-size: 0.85rem;
    }

    .op-button {
        padding: 20px 25px;
    }
}