/* Anime Detay Sayfası Stilleri */
.anime-container {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    min-height: calc(100vh - 10rem);
    color: var(--white);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

/* Yükleme Animasyonu */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
}

.spinner {
    width: 5rem;
    height: 5rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.1);
    border-top: 0.5rem solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.loading p {
    font-size: 1.8rem;
    color: var(--light-white);
}

/* Bildirim Stili */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 1.4rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Anime Başlık ve Detay Bölümü */
.anime-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.poster {
    flex: 0 0 30%;
    max-width: 30%;
}

.poster img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.details h1 {
    font-size: 3.4rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.rating i {
    color: var(--main-color);
    font-size: 2rem;
    margin-right: 0.3rem;
}

.rating span {
    font-size: 1.8rem;
    color: var(--white);
    margin-left: 0.8rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    font-size: 1.6rem;
}

.info-item .label {
    color: var(--light-white);
    margin-right: 0.5rem;
}

.studio-link {
    color: var(--main-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.studio-link:hover {
    text-decoration: underline;
    color: var(--white);
}

.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.genre {
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--main-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre:hover {
    background-color: var(--main-color);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.description {
    margin-bottom: 2.5rem;
}

.description p {
    font-size: 1.6rem;
    color: var(--light-white);
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--main-color);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-buttons i {
    margin-right: 0.8rem;
}

/* Anime List Buttons */
.anime-list-btn {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
}

.mal-btn {
    border-color: #2e51a2;
    color: #2e51a2;
    background-color: rgba(46, 81, 162, 0.1);
}

.mal-btn:hover {
    background-color: #2e51a2;
    color: white;
}

.mal-btn i {
    color: #2e51a2;
}

.mal-btn:hover i {
    color: white;
}

.anilist-btn {
    border-color: #02a9ff;
    color: #02a9ff;
    background-color: rgba(2, 169, 255, 0.1);
}

.anilist-btn:hover {
    background-color: #02a9ff;
    color: white;
}

.anilist-btn i {
    color: #02a9ff;
}

.anilist-btn:hover i {
    color: white;
}

/* Ödüller butonu stilleri */
.awards-btn {
    border-color: #ffc107;
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.awards-btn:hover {
    background-color: #ffc107;
    color: var(--black);
}

.awards-btn i {
    color: #ffc107;
}

.awards-btn:hover i {
    color: var(--black);
}

/* Ödüller modalı stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.fade-out {
    opacity: 0;
}

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

.modal-content {
    background-color: var(--black);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    flex-shrink: 0;
}

.modal-header h2 {
    color: var(--main-color);
    font-size: 2.4rem;
    margin: 0;
}

.close-modal {
    font-size: 2.8rem;
    color: var(--light-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--main-color);
    transform: scale(1.1);
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
}

/* Özel scrollbar stilleri */
.awards-list::-webkit-scrollbar {
    width: 6px;
}

.awards-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.awards-list::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

.award-year-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.year-divider {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

.year-header {
    font-size: 2rem;
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.year-header::before {
    content: '•';
    margin-right: 1rem;
    color: var(--main-color);
}

.award-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.award-icon {
    font-size: 2.5rem;
    color: #ffc107;
    width: 5rem;
    display: flex;
    justify-content: center;
}

.award-info {
    flex: 1;
}

.award-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.award-description {
    font-size: 1.4rem;
    color: var(--light-white);
}

.award-year {
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: bold;
    text-align: right;
    min-width: 6rem;
}

.no-awards {
    padding: 2rem;
    text-align: center;
    font-size: 1.6rem;
    color: var(--light-white);
}

/* Bölümler Bölümü */
.episodes-section, .related-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.episodes-section h2, .related-section h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.episodes-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#season-select {
    padding: 0.8rem 1.5rem;
    font-size: 1.6rem;
    background-color: var(--light-black);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 1rem;
}

.toggle-btn {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--light-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: var(--main-color);
    color: var(--black);
}

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

.episode-card {
    background-color: var(--light-black);
    border-radius: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.episode-card .thumbnail {
    position: relative;
    width: 100%;
    height: 14rem;
}

.episode-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-card .duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 1.2rem;
}

.episode-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card:hover .overlay {
    opacity: 1;
}

.episode-card .overlay i {
    color: var(--white);
    font-size: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.episode-card:hover .overlay i {
    background-color: var(--main-color);
    color: var(--black);
}

.episode-info {
    padding: 1.5rem;
}

.episode-number {
    font-size: 1.4rem;
    color: var(--light-white);
    display: block;
    margin-bottom: 0.5rem;
}

.episode-title {
    font-size: 1.6rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.page-btn {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-black);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not([disabled]) {
    background-color: var(--main-color);
    color: var(--black);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-page {
    font-size: 1.6rem;
    color: var(--light-white);
}

/* Benzer Animeler Bölümü */
.related-animes {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--light-black);
}

.related-animes::-webkit-scrollbar {
    height: 0.8rem;
}

.related-animes::-webkit-scrollbar-track {
    background-color: var(--light-black);
    border-radius: 1rem;
}

.related-animes::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 1rem;
}

.related-anime {
    flex: 0 0 auto;
    width: 15rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-anime img {
    width: 100%;
    height: 22rem;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.related-anime:hover {
    transform: translateY(-5px);
}

.related-anime h3 {
    font-size: 1.5rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobil Uyumlu Tasarım */
@media (max-width: 991px) {
    .anime-container {
        padding: 1.5rem;
    }

    .poster {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .details {
        padding-left: 0;
    }

    .details h1 {
        font-size: 3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .related-animes {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .anime-container {
        padding: 1rem;
    }

    .anime-header {
        flex-direction: column;
        gap: 2rem;
    }

    .poster {
        flex: 0 0 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .details h1 {
        font-size: 2.6rem;
        text-align: center;
    }

    .rating {
        justify-content: center;
    }

    .info-grid {
        text-align: center;
    }

    .genres {
        justify-content: center;
    }

    .description p {
        text-align: center;
    }

    .action-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .episodes-section h2, .related-section h2 {
        font-size: 2.2rem;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }
    
    .episode-card .thumbnail {
        height: 12rem;
    }

    .related-animes {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .anime-container {
        padding: 0.8rem;
    }

    .poster {
        max-width: 250px;
    }

    .details h1 {
        font-size: 2.2rem;
    }

    .genres {
        gap: 0.8rem;
    }

    .genre {
        font-size: 1.3rem;
        padding: 0.4rem 1.2rem;
    }

    .description p {
        font-size: 1.4rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1.4rem;
    }

    .episodes-section h2, .related-section h2 {
        font-size: 2rem;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.2rem;
    }
    
    .episode-card .thumbnail {
        height: 10rem;
    }
    
    .episode-info {
        padding: 1.2rem 1rem;
    }
    
    .episode-number {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .episode-title {
        font-size: 1.5rem;
    }

    .related-anime {
        min-width: 120px;
        cursor: pointer;
    }

    .related-anime img {
        height: 160px;
    }

    .related-anime h3 {
        font-size: 1.4rem;
    }

    .video-player-header h3 {
        font-size: 1.6rem;
    }
    
    .episodes-list .episode-card {
        height: 80px;
    }
    
    .episodes-list .thumbnail {
        flex: 0 0 120px;
    }
}

@media (max-width: 480px) {
    .poster {
        max-width: 200px;
    }

    .details h1 {
        font-size: 2rem;
    }

    .genres {
        gap: 0.6rem;
    }

    .action-buttons {
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 1.3rem;
    }

    .episodes-section h2, .related-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .episode-card .thumbnail {
        height: 8.5rem;
    }
    
    .episode-info {
        padding: 1rem 0.8rem;
    }
    
    .episode-number {
        font-size: 1.2rem;
    }
    
    .episode-title {
        font-size: 1.4rem;
    }
    
    .episode-card .overlay i {
        font-size: 2.5rem;
        width: 4rem;
        height: 4rem;
    }
    
    .related-anime {
        min-width: 100px;
        cursor: pointer;
    }
    
    .related-anime img {
        height: 140px;
    }
    
    .related-anime h3 {
        font-size: 1.3rem;
        padding: 0.5rem;
    }
}

/* Video Player Styles */
.video-player {
    background-color: var(--black);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-player-header h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
}

.close-video {
    background: none;
    border: none;
    color: var(--light-white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-video:hover {
    color: var(--main-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Sibnet videoları için ek stil */
.video-container iframe[src*="sibnet.ru"] {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.no-episodes {
    text-align: center;
    color: var(--light-white);
    font-size: 1.8rem;
    padding: 3rem 0;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    font-size: 1.6rem;
}

/* Episodes List Style */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.episodes-list .episode-card {
    display: flex;
    background-color: var(--light-black);
    border-radius: 0.8rem;
    overflow: hidden;
}

.episodes-list .thumbnail {
    flex: 0 0 280px;
}

.episodes-list .episode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.episodes-list .episode-title {
    font-size: 1.8rem;
    margin-top: 0.5rem;
    white-space: normal;
}

/* Mobile Responsive Video Player */
@media (max-width: 768px) {
    .video-player-header {
        padding: 1rem 1.5rem;
    }
    
    .video-player-header h3 {
        font-size: 1.6rem;
    }
    
    .episodes-list .thumbnail {
        flex: 0 0 180px;
    }
    
    .episodes-list .episode-info {
        padding: 1rem 1.5rem;
    }
    
    .episodes-list .episode-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .video-player-header h3 {
        font-size: 1.6rem;
    }
    
    .episodes-list .episode-card {
        height: 80px;
    }
    
    .episodes-list .thumbnail {
        flex: 0 0 120px;
    }
}

