* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    background-image: url('bg2.webp');
background-attachment: fixed;	
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible;
}

header {
    text-align: center;

    background: linear-gradient(135deg, #912cd9 0%, #7a2ee5 100%);
    color: white;
    position: relative;
}

h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.location {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.description {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 0;
}

.header-image {
    display: block;
    width: 50%;
    height: auto;
    margin: auto;
}

.content {
    padding: 5px 40px;
    background-color: transparent;
    background-image: url('bg2.webp');
    margin: 0 -10px;
}

.cta-section {
    text-align: center;
    margin: 0 0 50px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.cta-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #3d9d2e, #24ff00);
    color: white;
    padding: 12px 35px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(238, 39, 84, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: sunRayGlow 2.5s ease-in-out infinite alternate;
    filter: brightness(1.05) contrast(1.05);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: sunRayMove 3s ease-in-out infinite;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 70%
    );
    animation: sunRayRotate 6s linear infinite;
    z-index: 1;
    mix-blend-mode: overlay;
}

@keyframes sunRayGlow {
    0% {
        filter: brightness(1.05) contrast(1.05) saturate(1.1);
        box-shadow: 
            0 2px 10px rgba(238, 39, 84, 0.4),
            0 0 15px rgba(255, 215, 0, 0.3);
    }
    100% {
        filter: brightness(1.15) contrast(1.15) saturate(1.3);
        box-shadow: 
            0 4px 20px rgba(238, 39, 84, 0.6),
            0 0 25px rgba(255, 165, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
}

@keyframes sunRayMove {
    0%, 100% {
        left: -100%;
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        left: 100%;
        opacity: 0.5;
    }
}

@keyframes sunRayRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.4;
    }
}

.cta-button .sun-rays {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.1) 30deg,
            transparent 60deg,
            rgba(255, 255, 255, 0.1) 90deg,
            transparent 120deg,
            rgba(255, 255, 255, 0.1) 150deg,
            transparent 180deg,
            rgba(255, 255, 255, 0.1) 210deg,
            transparent 240deg,
            rgba(255, 255, 255, 0.1) 270deg,
            transparent 300deg,
            rgba(255, 255, 255, 0.1) 330deg,
            transparent 360deg
        );
    border-radius: 30px;
    animation: rayPulse 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
}

.cta-button:hover .sun-rays {
    opacity: 1;
}

@keyframes rayPulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.cta-button:hover {
    animation: sunRayGlowHover 1.5s ease-in-out infinite alternate;
    transform: translateY(-2px) scale(1.05);
}

@keyframes sunRayGlowHover {
    0% {
        filter: brightness(1.2) contrast(1.1) saturate(1.4);
        box-shadow: 
            0 6px 25px rgba(238, 39, 84, 0.8),
            0 0 30px rgba(255, 165, 0, 0.7),
            0 0 50px rgba(255, 215, 0, 0.5);
    }
    100% {
        filter: brightness(1.3) contrast(1.2) saturate(1.6);
        box-shadow: 
            0 8px 30px rgba(238, 39, 84, 1),
            0 0 40px rgba(255, 165, 0, 0.9),
            0 0 60px rgba(255, 215, 0, 0.7);
    }
}

.faq-section {
    margin-top: 20px;
}

.faq-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    padding: 15px 20px;
    background-color: rgba(11, 20, 34, 0.8);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(18, 32, 54, 0.8);
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(11, 20, 34, 0.8);
    font-size: 15px;
    color: #fff;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
}

footer {
    background: rgba(51, 170, 51, .2);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff69b4;
}

.gallery-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.character-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 380px;
    background: #0f3460;
    touch-action: pan-y;
    cursor: pointer;
}

.character-card.online {
    animation: onlineGlow 2s infinite alternate;
}

@keyframes onlineGlow {
    0% {
        box-shadow: 0 0 5px rgba(72, 239, 128, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(72, 239, 128, 0.8), 0 0 30px rgba(72, 239, 128, 0.6);
    }
}

.character-card.offline {
    animation: offlineGlow 2s infinite alternate;
}

@keyframes offlineGlow {
    0% {
        box-shadow: 0 0 5px rgba(239, 72, 72, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(239, 72, 72, 0.8), 0 0 30px rgba(239, 72, 72, 0.6);
    }
}

.character-card:hover {
    transform: translateY(-10px);
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.character-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.character-card:hover .character-image,
.character-card.touch-active .character-image {
    opacity: 0;
}

.character-card:hover .character-video,
.character-card.touch-active .character-video {
    opacity: 1;
}

.character-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    z-index: 2;
}

.info-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.character-name-age {
    font-size: 22px;
    font-weight: 700;
}

.character-role, .character-traits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.svg-icon {
    width: 18px;
    height: 18px;
}

.action-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.icon {
    width: 36px;
    height: 36px;
    background: rgba(38, 15, 75, 0.47);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.icon:hover {
    background: rgba(233, 69, 96, 0.8);
}

.video-icon img {
    width: 16px;
    height: 12px;
}

.card-chat-icon img {
    width: 29px;
    height: 29px;
}

.status-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.status-online {
    background-color: #48EF80;
    animation: pulseOnline 2s infinite;
}

.status-offline {
    background-color: #EF4848;
    animation: pulseOffline 2s infinite;
}

@keyframes pulseOnline {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 239, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(72, 239, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 239, 128, 0);
    }
}

@keyframes pulseOffline {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 72, 72, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 72, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 72, 72, 0);
    }
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

.show-more-btn {
    background: linear-gradient(45deg, #fffacd, #fff176);
    color: #333;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 250, 205, 0.5);
    animation: gentlePulse 2s infinite ease-in-out;
}

.show-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 250, 205, 0.8);
}

@keyframes gentlePulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 250, 205, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 250, 205, 0.8);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 250, 205, 0.5);
        transform: scale(1);
    }
}

.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.profile-overlay.active {
    display: flex;
}

.profile-card {
    background: rgba(40, 40, 40, 0.95);
    border-radius: 20px;
    overflow: hidden;
    width: auto;
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-video-section {
    height: 45%;
    position: relative;
    overflow: hidden;
}

.profile-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.profile-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-left: 5px;
    text-align: left;
    flex: 1;
}

.profile-age {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-right: 5px;
    text-align: right;
    flex: 1;
}

.interpunct {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
}

.profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    width: 85%;
    margin: 0 auto;
}

.profile-bio {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 20px;
    color: white;
    text-align: left;
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.attribute-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.attribute-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.attribute-icon {
    width: 20px;
    height: 20px;
}

.character-card.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .characters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 10px;
        overflow: visible;
    }
    
    .content {
        padding: 5px 25px;
        margin: 0 -5px;
    }
    
    header {
        padding: 10px 20px 0;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .faq-title {
        font-size: 22px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin: 5px 0;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 16px;
        animation: sunRayGlowMobile 2.5s ease-in-out infinite alternate;
    }
    
    @keyframes sunRayGlowMobile {
        0% {
            box-shadow: 
                0 2px 8px rgba(238, 39, 84, 0.4),
                0 0 10px rgba(255, 215, 0, 0.2);
        }
        100% {
            box-shadow: 
                0 3px 15px rgba(238, 39, 84, 0.6),
                0 0 20px rgba(255, 165, 0, 0.4);
        }
    }
    
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-card {
        width: 95%;
        height: auto;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 7px 15px 0;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .description {
        font-size: 15px;
    }
    
    .content {
        padding: 4px 15px;
        margin: 0 -5px;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .faq-title {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .faq-answer {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 12px 15px;
    }
    
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .character-card {
        height: 320px;
    }
    
    .character-name-age {
        font-size: 18px;
    }
    
    .character-role, .character-traits {
        font-size: 12px;
    }
}


@media (hover: none) and (pointer: coarse) {
    .character-card {
        cursor: pointer;
    }
    
    .action-icons {
        gap: 4px;
    }
    
    .icon {
        width: 34px;
        height: 34px;
    }
    
    .video-icon img {
        width: 15px;
        height: 11px;
    }
    
    .card-chat-icon img {
        width: 27px;
        height: 27px;
    }
}