body {
    background-color: #0d0d1a;
    color: #a0b1c5;
}
.page-container {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 50px;
}
.banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0d0d1a 8%, transparent 70%);
}
.main-content-wrapper {
    max-width: 1200px;
    margin: -180px auto 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}
.content-grid {
    display: flex;
    gap: 32px;
}
.left-sidebar {
    flex-shrink: 0;
    width: 215px;
}
.cover-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.list-actions {
    margin-top: 8px;
}
.btn-add-to-list {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: #0D5C8C;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-add-to-list:hover {
    background-color: #2ca3e0;
    transform: translateY(-2px);
}
.btn-rate-anime {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: transparent;
    color: #3db4f2;
    border: 1px solid #3db4f2;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-top: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-rate-anime:hover {
    background-color: rgba(61, 180, 242, 0.1);
    color: #3db4f2; /* Hover durumunda rengin değişmemesini sağla */
}
.stats-card {
    margin-top: 12px;
    background-color: #151f2e;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.score {
    display: flex;
    align-items: center;
    gap: 8px;
}
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.rating-count {
    font-size: 0.9rem;
    color: #a0b1c5;
    margin-left: 4px;
}
.anime-evreni-icon {
    font-size: 18px; /* Diğer ikonla boyutunu eşitlemek için */
    color: #3db4f2; /* Sitenin ana mavi rengi */
    vertical-align: text-bottom; /* Dikey hizalama */
}
.score-percent {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #a0b1c5;
}
.stat-item strong {
    color: white;
    font-weight: 600;
}
.right-content {
    flex: 1;
    min-width: 0;
}
.anime-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}
.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: #343f51;
    color: #e2e8f0;
}
.badge-primary {
    background-color: #0D5C8C;
    color: white;
}
.badge-genre {
    background-color: #151f2e;
    border: 1px solid #1c2938;
    color: #3db4f2;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s ease;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
}
.badge-genre:hover {
    background-color: #1c2938;
    border-color: #3db4f2;
    transform: translateY(-2px);
}
.tabs-container {
    margin-top: 24px;
}
.tabs-list {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #1c2938;
}
.tab-trigger {
    padding-bottom: 12px;
    font-size: 1rem;
    color: #a0b1c5;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab-trigger:hover {
    color: white;
}
.tab-trigger.active {
    color: white;
    border-bottom-color: #3db4f2;
}
.tabs-content {
    margin-top: 24px;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.tab-loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 48px 0;
}
.description {
    line-height: 1.6;
    color: #d1d5db;
}

.description-wrapper {
    position: relative;
    background-color: #151f2e;
    border-radius: 8px;
    padding: 24px;
}

.description-content {
    max-height: 125px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
}

.description-content.expanded {
    max-height: 1500px;
}

.description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #151f2e 20%, transparent);
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

.description-wrapper.expanded .description-fade {
    opacity: 0;
}

.description-toggle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #3db4f2;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2;
}
.section {
    margin-top: 32px;
}
.section-title {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    background-color: #151f2e;
    border-radius: 8px;
    padding: 24px;
}
.info-item {
    display: flex;
    flex-direction: column;
}
.info-item span {
    font-size: 0.875rem;
    color: #a0b1c5;
    margin-bottom: 4px;
}
.info-item strong {
    color: white;
    font-weight: 500;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #151f2e;
    border-radius: 6px;
    padding: 6px 12px;
    transition: background-color 0.2s, transform 0.2s ease;
    text-decoration: none;
    min-width: 120px;
}
.tag-item:hover {
    background-color: #1c2938;
    transform: translateY(-2px);
}
.tag-name {
    font-size: 0.875rem;
    color: #a0b1c5;
    font-weight: 500;
}
.tag-rank {
    font-size: 0.75rem;
    color: #3db4f2;
    font-weight: 600;
    margin-left: 12px;
}
.empty-state-placeholder {
    color: #a0b1c5;
    text-align: center;
    padding: 48px 0;
}
.custom-popover {
    --bs-popover-bg: #1c2938;
    --bs-popover-border-color: transparent;
    --bs-popover-header-bg: #151f2e;
    --bs-popover-header-color: white;
    --bs-popover-body-color: #a0b1c5;
    max-width: 300px;
    border-radius: 8px;
}
.custom-popover .popover-arrow::before,
.custom-popover .popover-arrow::after {
}
.custom-popover.bs-popover-top > .popover-arrow::after {
    border-top-color: var(--bs-popover-bg) !important;
}

@media (max-width: 992px) {
    .main-content-wrapper {
        padding: 0 16px;
    }
    .content-grid {
        gap: 24px;
    }
    .left-sidebar {
        width: 180px;
    }
    .anime-title {
        font-size: 1.875rem;
    }
    .info-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .banner {
        height: 250px;
    }
    .main-content-wrapper {
        margin-top: -80px;
    }
    .content-grid {
        flex-direction: column;
    }
    .left-sidebar {
        width: 100%;
        display: flex;
        gap: 12px;
        align-items: flex-end;
    }
    .cover-image {
        width: 120px;
        flex-shrink: 0;
    }
    .sidebar-main-actions {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }
    .list-actions {
        margin-top: 0;
    }
    .stats-card {
        margin-top: 0;
        flex: 1;
        padding: 8px;
        gap: 4px;
    }
    .score-percent {
        font-size: 1.25rem;
    }
    .stat-item {
        font-size: 0.75rem;
    }
    .btn-add-to-list {
        padding: 10px;
        font-size: 0.9rem;
    }
    .anime-title {
        font-size: 1.5rem;
    }
    .tabs-list {
        gap: 16px;
    }
    .tab-trigger {
        font-size: 0.875rem;
        padding-bottom: 8px;
    }
    .trailer-container,
    .left-sidebar > .section-title {
        flex-basis: 100%;
        flex-wrap: wrap;
    }
    .trailer-container {
        margin-top: 0 !important;
    }

    .trailer-title,
    .trailer-wrapper {
        display: none !important;
    }
}

.trailer-container {
    margin-top: 24px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.trailer-container img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.trailer-container:hover img {
    transform: scale(1.05);
}

.trailer-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.trailer-container:hover .trailer-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    }

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}

.recommendation-card {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-4px);
}

.recommendation-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    background-color: #1c2938;
}

.recommendation-card-title {
    font-size: 0.8rem;
    color: #a0b1c5;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.recommendation-card-subtitle {
    font-size: 0.7rem;
    color: #a0b1c5;
    opacity: 0.7;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comments-section {
    margin-top: 48px;
    background-color: #151f2e;
    border-radius: 8px;
    padding: 24px;
}

.comments-section-title {
    color: white;
    font-weight: 600;
    margin-bottom: 24px;
}

.comment-form-container {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.comment-form-container .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-form-container form {
    flex-grow: 1;
}

.comment-form-container textarea {
    background-color: #1c2938;
    border: 1px solid #343f51;
    color: #d1d5db;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.comment-form-container textarea:focus {
    outline: none;
    border-color: #3db4f2;
    box-shadow: 0 0 0 3px rgba(61, 180, 242, 0.2);
}

.comment-form-container .btn-primary {
    background-color: #3db4f2;
    border-color: #3db4f2;
    font-weight: 600;
}
.comment-form-container .btn-primary:hover {
    background-color: #2ca3e0;
    border-color: #2ca3e0;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment {
    display: flex;
    gap: 16px;
}

.comment.is-reply {
    margin-left: 56px;
    margin-top: 16px;
}

.comment-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-body {
    flex-grow: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author-name {
    font-weight: 600;
    color: white;
    text-decoration: none;
}
.comment-author-name:hover {
    text-decoration: underline;
}

.comment-author-container {
    display: flex;
    align-items: center;
}

.comment-author-badge {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    position: relative;
    top: 2px;
    margin-left: 0;
    cursor: help;
}

.comment-date {
    font-size: 0.8rem;
    color: #a0b1c5;
}

.comment-content p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.6;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #a0b1c5;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}
.comment-action-btn:hover:not(:disabled) {
    color: white;
}
.comment-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.like-btn.liked {
    color: #e53e3e;
}
.like-btn.liked:hover {
    color: #c53030;
}

.delete-btn:hover:not(:disabled) {
    color: var(--wrong-color, #dc3545);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.comments-section-title {
    margin-bottom: 0;
}

.comment-sort-options {
    display: flex;
    gap: 8px;
    background-color: #1c2938;
    padding: 6px;
    border-radius: 8px;
}

.sort-btn {
    background: none;
    border: none;
    color: #a0b1c5;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-btn.active {
    background-color: #343f51;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.comment-content-wrapper {
    position: relative;
}

.comment-content-wrapper.truncated .comment-content {
    max-height: 105px;
    overflow: hidden;
    position: relative;
}

.comment-content-wrapper.truncated .comment-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, #151f2e, transparent);
    pointer-events: none;
}

.toggle-comment-content {
    background: none;
    border: none;
    color: #3db4f2;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
    font-size: 0.85rem;
}

.replies-toggle-container {
    margin-top: 16px;
}

.toggle-replies-btn {
    background: none;
    border: none;
    color: #a0b1c5;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.toggle-replies-btn:hover {
    color: white;
}

.toggle-replies-btn i {
    transition: transform 0.3s ease;
}

.reply-form-container {
    margin-top: 20px;
    margin-bottom: 0 !important;
    padding-left: 56px;
}

@media (max-width: 420px) {
    .comment-sort-options {
        flex-direction: column;
        width: 100%;
    }

    .rating-stars {
        gap: 2px; /* Yıldızlar arası boşluğu azalt */
        padding: 0 4px; /* Kenarlara hafif boşluk ver */
    }
    .rating-stars i {
        font-size: 1.4rem; /* Yıldız ikonlarını küçült */
    }
    .star-number {
        font-size: 0.6rem; /* Sayıları küçült */
    }
}

@media (max-width: 576px) {
    .comment.is-reply {
        margin-left: 24px;
    }
    .comments-section {
        padding: 16px;
    }
}

.comment.highlight {
    background-color: rgba(61, 180, 242, 0.1);
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(61, 180, 242, 0.4);
    transition: background-color 0.5s ease-out, box-shadow 0.5s ease-out;
}

.add-to-list-modal-content {
    background-color: #151f2e;
    color: #d1d5db;
    border: 1px solid #343f51;
    border-radius: 8px;
}

.add-to-list-modal-content .modal-header {
    border-bottom: 1px solid #343f51;
}

.add-to-list-modal-content .modal-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.add-to-list-modal-content .modal-body {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.user-list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-list-item:hover {
    background-color: #1c2938;
}

.list-item-info {
    display: flex;
    flex-direction: column;
}

.list-item-name {
    font-weight: 500;
    color: #e2e8f0;
}

.list-item-meta {
    font-size: 0.8rem;
    color: #a0b1c5;
}

.list-item-toggle .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    background-color: #343f51;
    border-color: #343f51;
}

.list-item-toggle .form-switch .form-check-input:checked {
    background-color: #3db4f2;
    border-color: #3db4f2;
}

.add-to-list-modal-content .modal-footer {
    border-top: 1px solid #343f51;
    justify-content: center;
}

.btn-create-new-list {
    width: 100%;
    text-align: center;
    color: #3db4f2;
    font-weight: 600;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.btn-create-new-list:hover {
    background-color: rgba(61, 180, 242, 0.1);
}

.comments-section .alert-secondary {
    background-color: #1c2938;
    border-color: #343f51;
    color: #a0b1c5;
}

.comments-section .alert-secondary a {
    color: #3db4f2;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.star-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.star-number {
    font-size: 0.7rem;
    color: #a0b1c5;
    margin-top: 2px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.star-wrapper:hover .star-number {
    opacity: 1;
}

.rating-stars i {
    font-size: 2rem;
    color: #4a5568;
    transition: color 0.2s ease-in-out;
}

.rating-stars i.hover,
.rating-stars i.active {
    color: #f5c518;
}