@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #e0e0e0;
    line-height: 1.6;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(360deg);
}

.logo span {
    font-size: 1.5em;
    font-weight: 700;
    color: #87ceeb;
    text-transform: uppercase;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu {
    display: flex;
    list-style: none;
}
.menu ui {
    margin-bottom: 0;
}
ul {
    margin-bottom: 0px;
}

.menu li {
    margin-left: 25px;
}

.menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #87ceeb;
}

.cover {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

main {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.alert {
    background: #333;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 5px solid #87ceeb;
}

.dubbing-grid, .voiceover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.dubbing-item, .voiceover-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dubbing-item:hover, .voiceover-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.poster-wrapper {
    position: relative;
    display: inline-block;
}

.dubbing-item img, .voiceover-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.dubbing-item:hover img, .voiceover-item:hover img {
    transform: scale(1.1);
}

.dubbing-item p, .voiceover-item p {
    margin-top: 10px;
    font-weight: 600;
    color: #e0e0e0;
}

.rating-badge, .type-badge {
    position: absolute;
    padding: 5px 10px;
    background: rgba(51, 51, 51, 0.9);
    color: #e0e0e0;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10;
}

.rating-badge {
    top: 10px;
    left: 10px;
    border: 1px solid #87ceeb;
}

.type-badge {
    top: 10px;
    right: 10px;
    border: 1px solid #ff6b6b;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #2c2c2c;
    border-top: 1px solid #444;
}

footer a {
    color: #87ceeb;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.ani-description {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.ani-poster {
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.section-header {
    font-size: 1.8em;
    margin: 20px 0 10px;
    color: #87ceeb;
    border-bottom: 2px solid #87ceeb;
    padding-bottom: 5px;
}

.ani-info li {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.ani-gallery-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.ani-gallery {
    display: flex;
    gap: 15px;
}

.ani-gallery img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ani-gallery img:hover {
    transform: scale(1.05);
}

.ani-watch {
    margin: 30px 0;
}

.buttonContainer {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.select-plr, .select-ep {
    padding: 12px 20px;
    background: #444;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.select-plr:hover, .select-ep:hover {
    background: #555;
}

.select-plr.active, .select-ep.active {
    background: #87ceeb;
    color: #1a1a1a;
}

.iframeContainerPl {
    display: none;
}

.iframeContainerPl.active {
    display: block;
}

.player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #333;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member-name {
    font-weight: 600;
    color: #87ceeb;
}

.team-member-role {
    color: #bbb;
}

.comment-form {
    margin: 30px 0;
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    background: #333;
    color: #e0e0e0;
    border: none;
    padding: 15px;
    border-radius: 8px;
    resize: vertical;
}

.comment-form button {
    padding: 12px 25px;
    background: #87ceeb;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.comment-form button:hover {
    background: #add8e6;
}

.comments {
    margin-top: 30px;
}

.comment {
    background: #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #87ceeb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.modal-content {
    display: block;
    margin: 50px auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #87ceeb;
}

.auth-form {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.auth-form label {
    font-weight: 600;
    color: #87ceeb;
}

.auth-form input {
    padding: 12px;
    background: #444;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
}

.auth-form button {
    padding: 12px;
    background: #87ceeb;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.auth-form button:hover {
    background: #add8e6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.support-section, .contacts-section {
    background: #333;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.support-section h2, .contacts-section h2 {
    color: #87ceeb;
    margin-bottom: 20px;
}

.support-section p, .contacts-section p {
    margin-bottom: 15px;
}

.support-section a, .contacts-section a {
    color: #87ceeb;
    text-decoration: none;
}

.support-section a:hover, .contacts-section a:hover {
    text-decoration: underline;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #444;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    padding: 12px 25px;
    background: #87ceeb;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #add8e6;
}

@media (max-width: 768px) {
    .header-content {
        padding: 10px 20px;
    }
    .hamburger {
        display: flex;
    }
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #2c2c2c;
        width: 250px;
        padding: 20px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.5);
    }
    .menu.active {
        display: flex;
    }
    .menu li {
        margin: 15px 0;
    }
    .cover {
        height: 250px;
    }
    .ani-description {
        flex-direction: column;
    }
    .ani-poster {
        max-width: 100%;
    }
}