/* =============================================================
   SUBTITLES.PHP — ANİME DETAY V8.0 — ANILIST DESIGN SYSTEM
   V8.0: ad- prefix → an- prefix (reklam engelleyici uyumluluğu)
         Altyazı yorumları sekmesi
   ============================================================= */

.an-page { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }

/* --- AniList-Style Hero Banner (Cover on top) --- */
.an-hero-banner {
    position: relative;
    min-height: 100%;
    border-radius: 24px;
    overflow: visible;
    background-size: cover;
    background-position: center 30%;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 65px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}
.an-hero-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(8,12,22,0.92) 0%, rgba(8,12,22,0.78) 34%, rgba(8,12,22,0.46) 65%, rgba(8,12,22,0.64) 100%),
        linear-gradient(180deg, rgba(61,180,242,0.16), rgba(15,23,42,0.08));
}
.an-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    min-height: 430px;
    padding: 2rem 2.2rem;
}
.an-hero-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.an-hero-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8,12,22,0.92) 0%, rgba(8,12,22,0.78) 34%, rgba(8,12,22,0.46) 65%, rgba(8,12,22,0.64) 100%),
        linear-gradient(180deg, rgba(61,180,242,0.16), rgba(15,23,42,0.08));
}
.an-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    min-height: 430px;
    padding: 2rem 2.2rem;
}
.an-hero-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.an-hero-banner-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(8,12,22,0.92) 0%, rgba(8,12,22,0.78) 34%, rgba(8,12,22,0.46) 65%, rgba(8,12,22,0.64) 100%),
        linear-gradient(180deg, rgba(61,180,242,0.16), rgba(15,23,42,0.08));
}
.an-hero-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    min-height: 430px;
    padding: 2rem 2.2rem;
}
.an-hero-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.an-hero-poster-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.an-hero-side-widget {
    background: linear-gradient(180deg, rgba(18,24,40,0.96), rgba(10,15,28,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}
.an-cover-card {
    background: linear-gradient(180deg, rgba(18,24,40,0.96), rgba(10,15,28,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.16);
    overflow: hidden;
}
.an-cover-image-wrapper { position: relative; width: 100%; }
.an-cover-image-wrapper img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.an-cover-card-body { padding: 1.25rem; }

.an-desc-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.an-btn-readmore:hover { text-decoration: underline; }

.an-sub-item-compact:hover { background: rgba(255,255,255,0.08) !important; }
.an-sub-compact-link { text-decoration: none; display: flex; flex-direction: column; width: 100%; overflow: hidden; }
.an-hero-links-card {
    background: linear-gradient(180deg, rgba(18,24,40,0.96), rgba(10,15,28,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
}
.an-sidecard-head {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 0.85rem;
}
.an-sidecard-grid,
.an-facts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.an-sidecard-row,
.an-facts-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    font-size: 0.82rem;
}
.an-sidecard-row span,
.an-facts-row span {
    color: var(--text-muted);
    font-weight: 700;
}
.an-sidecard-row strong,
.an-facts-row strong {
    color: var(--text-bright);
    font-weight: 800;
    text-align: right;
}
.an-external-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.an-external-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-bright);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.an-external-link:hover {
    transform: translateY(-1px);
    border-color: rgba(61,180,242,0.35);
    background: rgba(61,180,242,0.08);
}
.an-external-link-label,
.an-external-link-value {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.an-external-link-label {
    font-size: 0.82rem;
    font-weight: 700;
}
.an-external-link-value {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}
.an-external-link-trailer .an-external-link-label {
    color: #ff8a8a;
}
.an-hero-info {
    min-width: 0;
}
.an-hero-banner {
    position: relative;
    min-height: 100%;
    border-radius: 24px;
    overflow: visible;
    background-size: cover;
    background-position: center 30%;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 65px rgba(0,0,0,0.2);
}
.an-hero-banner-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center 30%;
}
.an-hero-banner-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8,12,22,0.92) 0%, rgba(8,12,22,0.78) 34%, rgba(8,12,22,0.46) 65%, rgba(8,12,22,0.64) 100%),
        linear-gradient(180deg, rgba(61,180,242,0.16), rgba(15,23,42,0.08));
}
.an-hero-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    min-height: 430px;
    padding: 2rem 2.2rem;
}
.an-cover-copy {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
}
.an-cover-kicker {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fd8ff;
    margin-bottom: 0.55rem;
}
.an-cover-copy p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.92);
}

/* Breadcrumb */
.an-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
.an-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.an-breadcrumb a:hover { color: var(--accent); }
.an-breadcrumb i { font-size: 0.6rem; }

/* Anime Title */
.an-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.an-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #9fd8ff;
    margin: 0;
}

/* Spec Pills */
.an-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.an-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.an-pill i { font-size: 0.7rem; opacity: 0.7; }

/* Genre Tags */
.an-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.an-genre {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-surface);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}
.an-genre:hover { background: var(--accent); color: #000; }

/* Action Row */
.an-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.3rem; }
.an-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.an-btn:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-1px); }
.an-btn.an-btn-accent { background: var(--accent); color: #000; border-color: var(--accent); }
.an-btn.an-btn-accent:hover { box-shadow: 0 4px 20px var(--accent-glow); }
.an-btn.an-btn-active { background: var(--accent); color: #000; border-color: var(--accent); }
.an-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Watchlist Dropdown */
.an-wl-wrap { position: relative; display: inline-flex; }
.an-watchers-btn {
    white-space: nowrap;
}
.an-wl-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.an-wl-main:hover { background: rgba(255,255,255,0.12); color: #fff; }
.an-wl-main.active { background: var(--accent); color: #000; border-color: var(--accent); }
.an-wl-main:disabled { opacity: 0.5; cursor: not-allowed; }
.an-wl-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.an-wl-main:hover { background: rgba(255,255,255,0.12); color: #fff; }
.an-wl-main.active { background: var(--accent); color: #000; border-color: var(--accent); }
.an-wl-main:disabled { opacity: 0.5; cursor: not-allowed; }
.an-wl-dd-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    padding: 9px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255,255,255,0.12);
    border-left: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.an-wl-dd-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }
.an-wl-dd-toggle.active { background: var(--accent); color: #000; border-color: var(--accent); border-left: 1px solid rgba(0,0,0,0.15); }
.an-wl-dd-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.an-wl-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    padding: 6px;
    animation: anWlDdFade 0.15s ease;
}
.an-wl-dropdown.active { display: block; }
@keyframes anWlDdFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.an-wl-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.1s;
}
.an-wl-dd-item:hover { background: var(--bg-hover); color: var(--text-bright); }
.an-wl-dd-item.current { background: var(--accent-surface); color: var(--accent); }
.an-wl-dd-item i { width: 16px; text-align: center; font-size: 0.75rem; }
.an-wl-dd-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 6px;
}
.an-wl-dd-item.remove { color: var(--red); }
.an-wl-dd-item.remove:hover { background: rgba(239,83,80,0.1); }

/* --- Layout --- */
.an-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.75rem;
}
.an-main { min-width: 0; }

/* Widget */
.an-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.an-widget-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.an-widget-head i { color: var(--accent); font-size: 0.9rem; }
.an-widget-head .an-head-right { margin-left: auto; }

.an-btn-ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: var(--text-primary);
}
.an-btn-ghost:hover {
    background: rgba(61,180,242,0.12);
    border-color: rgba(61,180,242,0.26);
}
.an-poster-torrent-btn {
    width: 100%;
    justify-content: center;
}
.an-native-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.6;
    word-break: break-word;
}
.an-subtitles-section {
    margin-top: 1.25rem;
}
.an-subtitles-feature {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18,24,40,0.96), rgba(11,16,28,0.96)),
        var(--bg-card);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}
.an-subtitles-feature::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(159,216,255,0.2));
}
.an-subtitles-feature .an-widget-head {
    position: relative;
    z-index: 1;
}
.an-subtitles-feature .an-bulk-bar .an-btn {
    min-width: 220px;
}
.an-subtitles-feature .an-sub-list {
    gap: 10px;
}
.an-subtitles-feature .an-sub-item {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

/* --- Stats Bar --- */
.an-stats-bar { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.an-stat-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.an-stat-item i { color: var(--accent); font-size: 0.78rem; }
.an-stat-item strong { color: var(--text-bright); }

/* --- Torrent Search --- */
.an-torrent-search { background: var(--bg-secondary); border-radius: var(--radius); padding: 1.25rem; }
.an-form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.an-form-group { flex: 1; min-width: 120px; }
.an-form-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; display: block; }
.an-form-group input, .an-form-group select { width: 100%; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-size: 0.85rem; font-family: var(--font); outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.an-form-group input:focus, .an-form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.an-torrent-results { margin-top: 1rem; display: none; }
.an-torrent-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); margin-bottom: 6px; transition: all 0.15s; }
.an-torrent-item:hover { border-color: var(--border-light); }
.an-torrent-seed { width: 52px; text-align: center; flex-shrink: 0; }
.an-torrent-seed strong { color: var(--green); font-weight: 800; font-size: 0.9rem; }
.an-torrent-seed small { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.an-torrent-name { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); word-break: break-word; }
.an-torrent-links { white-space: nowrap; display: flex; gap: 8px; }
.an-torrent-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.15s; }
.an-torrent-links a:hover { color: var(--accent); }

body.an-modal-open { overflow: hidden; }
.an-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
}
.an-modal.is-open {
    display: flex;
}
.an-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(6px);
}
.an-modal-dialog {
    position: relative;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 0 auto;
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.35);
}
.an-modal-dialog-compact {
    width: min(640px, calc(100vw - 2rem));
}
.an-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 0;
}
.an-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-bright);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.an-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
}
.an-modal-close:hover {
    border-color: var(--border-light);
    color: var(--accent);
}
.an-modal .an-torrent-search {
    margin: 1rem 1.25rem 1.25rem;
}
.an-watchers-modal-body {
    padding: 1rem 1.25rem 1.25rem;
}
.an-watchers-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}
.an-wl-users-grid-modal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}
.an-wl-user-card {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
}
.an-wl-user-card img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
    aspect-ratio: 1 / 1;
}
.an-wl-user-card:hover img {
    transform: none;
}
.an-wl-user-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.an-wl-user-card-meta strong {
    color: var(--text-bright);
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.an-wl-user-card-meta span {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
}
.an-wl-user-card .an-wl-user-dot {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Subtitle List --- */
.an-sub-list { display: flex; flex-direction: column; gap: 8px; }
.an-sub-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-secondary); border: 1px solid transparent; transition: all 0.15s; }
.an-sub-item:hover { border-color: var(--border-light); background: var(--bg-hover); }
.an-sub-item input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.an-sub-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.an-sub-info { flex: 1; min-width: 0; }
.an-sub-title { font-size: 0.9rem; font-weight: 700; color: var(--text-bright); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-sub-title a { color: var(--text-bright); text-decoration: none; }
.an-sub-title a:hover { color: var(--accent); }
.an-sub-fansub { color: var(--accent); font-weight: 700; text-decoration: none; }
.an-sub-fansub:hover { text-decoration: underline; }
.an-source-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: var(--radius-sm); font-size: 0.68rem; line-height: 1; font-weight: 800; letter-spacing: 0; text-transform: uppercase; border: 1px solid transparent; }
.an-source-badge.bluray { color: #8bd3ff; background: rgba(61,180,242,0.12); border-color: rgba(61,180,242,0.2); }
.an-source-badge.web { color: #9be28f; background: rgba(76,202,81,0.12); border-color: rgba(76,202,81,0.2); }
.an-sub-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; font-weight: 600; }
.an-sub-meta i { margin-right: 3px; }
.an-sub-arrow { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; transition: color 0.15s; }
.an-sub-item:hover .an-sub-arrow { color: var(--accent); }
.an-bulk-bar { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }

/* --- Description --- */
.an-description { font-size: 0.88rem; line-height: 1.75; color: var(--text-secondary); word-break: break-word; max-height: 300px; overflow-y: auto; }
.an-desc-editor textarea { width: 100%; min-height: 180px; padding: 12px; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 0.88rem; resize: vertical; outline: none; box-sizing: border-box; }
.an-desc-editor textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* --- Similar Anime --- */
.an-similar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.an-similar-grid-compact {
    grid-template-columns: 1fr;
    gap: 0.8rem;
}
.an-similar-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: all 0.2s; }
.an-similar-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.an-similar-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.an-similar-grid-compact .an-similar-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: stretch;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.an-similar-grid-compact .an-similar-card:hover {
    border-color: rgba(61,180,242,0.28);
    background: rgba(61,180,242,0.08);
}
.an-similar-grid-compact .an-similar-card img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 92px;
}
.an-similar-grid-compact .an-similar-meta {
    position: static;
    display: flex;
    align-items: center;
    padding: 0.85rem 0.9rem;
    background: none;
}
.an-similar-grid-compact .an-similar-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.4;
}
.an-similar-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.an-similar-title { font-size: 0.78rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Watchlist Users Widget --- */
.an-wl-users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.an-wl-user {
    position: relative;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    overflow: visible;
}
.an-wl-user img {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--bg-card);
    transition: all 0.15s;
    display: block;
}
.an-wl-user:hover img { border-color: var(--accent); transform: scale(1.1); }
.an-wl-user-dot {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.an-wl-user-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 10px;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
}
.an-wl-dist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.an-wl-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
}
.an-wl-dist-row .dist-icon { width: 14px; text-align: center; font-size: 0.65rem; }
.an-wl-dist-row .dist-label { flex: 1; color: var(--text-secondary); }
.an-wl-dist-row .dist-count { color: var(--text-bright); font-weight: 700; }
.an-wl-dist-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    overflow: hidden;
    margin-top: 6px;
    display: flex;
}
.an-wl-dist-bar-seg { height: 100%; transition: width 0.4s ease; }

/* --- Comment Tabs --- */
.an-comment-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
}
.an-comment-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.an-comment-tab:hover { color: var(--text-bright); }
.an-comment-tab.active { color: var(--accent); }
.an-comment-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.an-comment-tab .an-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    font-size: 0.7rem;
    font-weight: 800;
}
.an-comment-tab.active .an-tab-count {
    background: var(--accent-surface);
    color: var(--accent);
}
.an-comment-panel { display: none; }
.an-comment-panel.active { display: block; }

/* --- Subtitle Comment Group --- */
.an-sub-comment-group {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.an-sub-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-bright);
    cursor: pointer;
    transition: background 0.15s;
}
.an-sub-comment-header:hover { background: var(--bg-hover); }
.an-sub-comment-header i.toggle-icon { margin-left: auto; font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s; }
.an-sub-comment-header.collapsed i.toggle-icon { transform: rotate(-90deg); }
.an-sub-comment-body { padding: 10px 14px; }
.an-sub-comment-body.collapsed { display: none; }
.an-sub-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.an-sub-link:hover { text-decoration: underline; }
.an-sub-comment-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

/* --- Comments --- */
.an-comment-form textarea { width: 100%; min-height: 90px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-input); color: var(--text-primary); font-size: 0.88rem; font-family: var(--font); resize: vertical; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.an-comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.an-comment-form textarea::placeholder { color: var(--text-muted); }

.an-rating-input { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.an-rating-input .rating-label { font-weight: 700; color: var(--text-bright); }
.an-rating-input .stars { display: flex; gap: 4px; cursor: pointer; font-size: 1.1rem; }
.an-rating-input .stars i { transition: transform 0.1s; }
.an-rating-input .stars i:hover { transform: scale(1.15); }

.an-comment-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.an-comment-submit { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--accent); color: #000; border: none; border-radius: var(--radius); font-family: var(--font); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.an-comment-submit:hover { box-shadow: 0 4px 16px var(--accent-glow); }
.an-comment-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.an-cancel-reply { display: none; background: none; border: none; color: var(--text-muted); font-family: var(--font); font-size: 0.8rem; cursor: pointer; }
.an-cancel-reply:hover { color: var(--red); }
.an-comment { padding: 14px; border-radius: var(--radius); background: var(--bg-secondary); border: 1px solid var(--border); margin-bottom: 10px; }
.an-comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.an-comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.an-comment-user a { color: var(--accent); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.an-comment-user a:hover { text-decoration: underline; }
.an-comment-date { margin-left: auto; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
.an-comment-body { font-size: 0.88rem; line-height: 1.65; color: var(--text-primary); word-break: break-word; }
.an-comment-btns { display: flex; gap: 12px; margin-top: 8px; }
.an-comment-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font); font-size: 0.78rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; transition: color 0.15s; }
.an-comment-btn:hover { color: var(--accent); }
.an-comment-btn.an-del-btn:hover { color: var(--red); }
.an-comment-msg { margin-top: 10px; font-weight: 600; font-size: 0.85rem; display: none; }
.an-login-prompt { background: var(--bg-secondary); padding: 1rem; border-radius: var(--radius); text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.an-login-prompt a { color: var(--accent); font-weight: 700; text-decoration: none; }
.an-login-prompt a:hover { text-decoration: underline; }
.an-no-comments { text-align: center; padding: 1.5rem; color: var(--text-muted); font-size: 0.88rem; }
.an-comments-sidebar {
    margin-bottom: 0;
}
.an-comments-sidebar .an-comment-panel.active {
    max-height: min(72vh, 1200px);
    overflow: auto;
    padding-right: 0.2rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .an-page { padding: 0 1rem 2rem; }
    .an-layout { grid-template-columns: 1fr; }
    .an-hero-content { grid-template-columns: 1fr; }
    .an-hero-poster-col { max-width: 100%; margin: 0 auto; }
    .an-hero-banner-content { min-height: 360px; padding: 1.4rem; }
    .an-pills { justify-content: center; }
    .an-genres { justify-content: center; }
    .an-actions { justify-content: center; }
    .an-breadcrumb { justify-content: center; }
    .an-cover-copy { margin: 0 auto; }
    .an-title, .an-subtitle, .an-cover-copy { text-align: center; }
    .an-title { font-size: 1.5rem; }
    .an-similar-grid { grid-template-columns: repeat(4, 1fr); }
    .an-similar-grid-compact { grid-template-columns: repeat(2, 1fr); }
    .an-similar-grid-compact .an-similar-card {
        display: block;
    }
    .an-similar-grid-compact .an-similar-card img {
        aspect-ratio: 2/3;
        min-height: 0;
    }
    .an-similar-grid-compact .an-similar-meta {
        position: absolute;
        display: block;
        padding: 8px 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    }
    .an-similar-grid-compact .an-similar-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .an-comment-tabs { overflow-x: auto; }
    .an-comments-sidebar .an-comment-panel.active {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}
@media (max-width: 480px) {
    .an-hero-poster-col { max-width: 180px; }
    .an-hero-banner-content { min-height: 300px; }
    .an-cover-copy p { font-size: 0.88rem; }
    .an-similar-grid { grid-template-columns: repeat(2, 1fr); }
    .an-similar-grid-compact { grid-template-columns: 1fr; }

}

/* =============================================================
   PREMIUM REVIEW SYSTEM
   ============================================================= */

.an-comment {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    transition: all 0.2s ease;
    display: block; /* Reset if needed */
}
.an-comment:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.an-comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.an-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.an-comment-user a {
    color: var(--text-bright);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}
.an-comment-user a:hover {
    color: var(--accent);
    text-decoration: none;
}
.an-comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.an-comment-score {
    margin-left: auto;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}
.an-comment-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}
.an-comment-btns {
    display: flex;
    gap: 12px;
}
.an-comment-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: color 0.2s;
}
.an-comment-btn:hover {
    color: var(--text-bright);
}
.an-comment-btn.an-del-btn:hover {
    color: var(--red);
}

/* Star Rating Input */
.an-rating-input {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.an-rating-input .rating-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}
.an-rating-input .stars {
    display: flex;
    gap: 4px;
}
.an-rating-input .stars i {
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}
.an-rating-input .stars i:hover,
.an-rating-input .stars i.fas {
    color: var(--yellow);
    transform: scale(1.15);
}

.an-comment-form textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}
.an-comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}
.an-comment-submit {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.an-comment-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.an-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- External ID Grid --- */
.an-id-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.an-id-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}
.an-id-link:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}
.an-id-link.al:hover { background: #3DB4F2; box-shadow: 0 4px 12px rgba(61,180,242,0.4); }
.an-id-link.mal:hover { background: #2e51a2; color: #fff; box-shadow: 0 4px 12px rgba(46,81,162,0.4); }
.an-id-link.kitsu:hover { background: #ef5a37; color: #fff; box-shadow: 0 4px 12px rgba(239,90,55,0.4); }
.an-id-link.imdb:hover { background: #f5c518; color: #000; box-shadow: 0 4px 12px rgba(245,197,24,0.4); }
.an-id-link.yt:hover { background: #ff0000; color: #fff; box-shadow: 0 4px 12px rgba(255,0,0,0.4); }

/* --- Modal Styles --- */
.an-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.an-modal-overlay.open {
    display: flex;
    animation: anFadeIn 0.3s;
}
.an-modal {
    background: #111622;
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    animation: anSlideUp 0.3s;
    overflow: hidden;
}
.an-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
}
.an-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-bright);
    font-weight: 800;
}
.an-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.an-modal-close:hover { color: var(--red); }
.an-modal-body { padding: 1.5rem; }
.an-modal-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}
.an-modal-input:focus { border-color: var(--accent); }

@keyframes anFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes anSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Main Subtitles Table */
.an-subtitles-table-wrapper {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.an-subtitles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.an-subtitles-table th, 
.an-subtitles-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.an-subtitles-table th {
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.an-subtitles-table tr:hover {
    background: rgba(255,255,255,0.03);
}
.an-lang-badge {
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.an-btn-icon {
    color: var(--text-muted);
    transition: color 0.2s;
}
.an-btn-icon:hover {
    color: var(--accent);
}

/* AniList Style Banner */
.an-banner {
    width: 100%;
    height: 400px;
    background-position: 50% 35%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin-top: -1.5rem; /* Offset page padding if any */
}
.an-banner-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6,13,34,0) 40%, rgba(6,13,34,0.7));
}
.an-hero-content {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .an-banner { height: 250px; }
    .an-hero-content { margin-top: -60px; }
}
