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

body {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(0deg, #131521 0%, #262B42 70%, #353B5B 100%);
    font-family: "Inknut Antiqua", serif;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Blood canvas effect */
#bloodCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

main {
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

nav {
    position: relative;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.leftnav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.bat {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 5;
}

.content {
    padding: 20px 0;
}

.hero-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 60px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.heading {
    font-size: clamp(48px, 8vw, 110px);
    margin-top: 0;
    color: #FFFFFF;
    user-select: none;
}

.blood-text {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: text-shadow 0.3s ease;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

.blood-quote {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    transition: text-shadow 0.3s ease;
    position: relative;
}

@keyframes bloodGlitch {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    25% {
        text-shadow: -2px 0 #8B0000, 2px 0 #FF0000, 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px #8B0000, 0 0 50px #FF0000;
    }
    75% {
        text-shadow: 2px 0 #8B0000, -2px 0 #FF0000, 0 0 20px rgba(255, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
}

@keyframes bloodPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px #8B0000, 0 0 40px #FF0000;
    }
}

.blood-text {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: text-shadow 0.3s ease;
}

.blood-quote {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    transition: text-shadow 0.3s ease;
}

@keyframes bloodGlitch {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    25% {
        text-shadow: -2px 0 #8B0000, 2px 0 #FF0000, 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px #8B0000, 0 0 50px #FF0000;
    }
    75% {
        text-shadow: 2px 0 #8B0000, -2px 0 #FF0000, 0 0 20px rgba(255, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
}

@keyframes bloodPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px #8B0000, 0 0 40px #FF0000;
    }
}

.quote {
    max-width: 100%;
    font-size: 16px;
    line-height: 30px;
    font-weight: 100;
    margin-top: 30px;
    margin-bottom: 40px;
}

.ChristianBale {
    flex: 0 0 auto;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.film-card {
    position: relative;
    height: auto;
    min-height: 200px;
}

.film-card-inner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 30, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid #FFD700;
    padding: 25px;
    border-radius: 0;
    transition: all 0.9s ease-out;
    max-height: 200px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.film-card:hover .film-card-inner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.06) 100%);
    border-color: #FFD700;
    max-height: 650px;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), inset 0 0 40px rgba(255, 215, 0, 0.2);
    transform: rotateX(2deg) rotateY(-2deg) translateZ(20px);
}

.film-card-front,
.film-card-back {
    width: 100%;
    transition: all 0.7s ease-in-out;
}

.film-card-front {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.film-card-back {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.film-card:hover .film-card-front {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
}

.film-card:hover .film-card-back {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.film-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #FFD700;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.film-card:hover h3 {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.4);
    letter-spacing: 5px;
    transform: scaleY(1.1);
}

.film-card .year {
    font-size: 14px;
    color: #CCCCCC;
    margin-bottom: 12px;
    letter-spacing: 1px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.7;
}

.film-card:hover .year {
    color: #FFD700;
    opacity: 1;
    letter-spacing: 3px;
    transform: scale(1.1);
}

.film-card .description {
    color: #AAAAAA;
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 15px;
    border-left: 3px solid #FFD700;
    padding-left: 12px;
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.6;
}

.film-card:hover .description {
    color: #DDDDDD;
    border-left-color: #FFD700;
    opacity: 1;
    padding-left: 18px;
    transform: translateX(8px);
}

.film-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-tag {
    font-size: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: #FFD700;
    padding: 8px 12px;
    border-radius: 0;
    border: 1px solid rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0) scale(0.95);
    opacity: 0.8;
}

.film-card:hover .detail-tag {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.12) 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: translateX(10px) scale(1);
    opacity: 1;
}

.bio-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #FFD700;
    border-radius: 4px;
}

.bio-section h2 {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 15px;
}

.bio-section p {
    font-size: 16px;
    line-height: 28px;
    color: #DDDDDD;
}

/* Gallery Styles - American Psycho & Batman Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    background: #000;
    border: 2px solid #FFD700;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(100%) contrast(1.2);
}

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.15) rotate(1deg);
    filter: grayscale(0%) contrast(1.4) brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.7), transparent);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 2px solid #FFD700;
}

.gallery-image-wrapper:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-overlay p {
    font-size: 14px;
    color: #CCCCCC;
    letter-spacing: 1px;
}

/* Modal Styles - Batman Style */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    animation: fadeInDark 0.4s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInDark {
    from {
        opacity: 0;
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.98);
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUpDark 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #FFD700;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 30, 0.9) 100%);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.8);
}

@keyframes slideUpDark {
    from {
        transform: translateY(80px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 48px;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.modal-close:hover {
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.2) rotate(90deg);
}

.modal-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border: 2px solid #FFD700;
    margin-bottom: 25px;
    filter: contrast(1.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.modal-info {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 15px;
    width: 100%;
}

.modal-info h2 {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.modal-info p {
    font-size: 18px;
    color: #CCCCCC;
    letter-spacing: 2px;
}

.modal-nav {
    display: flex;
    gap: 30px;
}

.modal-prev,
.modal-next {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 28px;
    padding: 15px 25px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.modal-prev:hover,
.modal-next:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.15) 100%);
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    main {
        max-width: 100%;
    }
    
    .heading {
        font-size: clamp(36px, 6vw, 80px);
    }
    
    .quote {
        max-width: 100%;
        font-size: 14px;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .ChristianBale {
        max-width: 100%;
        flex: 1;
    }
    
    .films-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .film-card-inner {
        max-height: 180px;
    }
    
    .film-card:hover .film-card-inner {
        max-height: 550px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .leftnav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .heading {
        font-size: clamp(28px, 5vw, 60px);
        margin-top: 40px;
    }
    
    .quote {
        font-size: 14px;
        line-height: 24px;
    }
    
    .bat {
        width: 40px;
        height: 40px;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    
    .ChristianBale {
        max-width: 100%;
    }
    
    .films-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .film-card-inner {
        padding: 15px;
        max-height: 160px;
        border: 2px solid #FFD700;
    }
    
    .film-card:hover .film-card-inner {
        max-height: 500px;
    }
    
    .film-card h3 {
        font-size: 18px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-image-wrapper {
        border: 2px solid #FFD700;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        border: 2px solid #FFD700;
        padding: 20px;
    }
    
    .modal-image {
        max-height: 50vh;
        border: 2px solid #FFD700;
    }
    
    .modal-close {
        top: -35px;
        font-size: 32px;
    }
    
    .modal-info h2 {
        font-size: 22px;
    }
    
    .modal-prev,
    .modal-next {
        padding: 10px 15px;
        font-size: 20px;
        border: 2px solid #FFD700;
    }
}