/**
 * OtakuPulse.de — Dark Theme Styles
 *
 * Farbschema:
 * - Background:  #0D1117 / #161B22
 * - Surface:     #1C2333 / #21283B
 * - Accent:      #7B2FF7 (Neon Purple)
 * - Accent 2:    #FF6B9D (Sakura Pink)
 * - Text:        #E6EDF3 / #8B949E
 * - Border:      #30363D
 */

:root {
    --op-bg-primary: #0D1117;
    --op-bg-secondary: #161B22;
    --op-bg-surface: #1C2333;
    --op-bg-surface-hover: #21283B;
    --op-accent: #7B2FF7;
    --op-accent-light: #9B5BFA;
    --op-accent-pink: #FF6B9D;
    --op-text-primary: #E6EDF3;
    --op-text-secondary: #8B949E;
    --op-text-muted: #6E7681;
    --op-border: #30363D;
    --op-success: #3FB950;
    --op-warning: #D29922;
    --op-score-gold: #FFD700;
    --op-radius: 8px;
    --op-radius-lg: 12px;
    --op-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --op-transition: 0.2s ease;
}

/* ═══════════════ CONTAINER ═══════════════ */

.op-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════ HERO BANNER ═══════════════ */

.op-hero {
    position: relative;
    background-color: var(--op-bg-secondary);
    background-size: cover;
    background-position: center 30%;
    min-height: 400px;
}

.op-hero__overlay {
    background: linear-gradient(to right, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.7) 60%, rgba(13, 17, 23, 0.4) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.op-hero__content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 40px 20px;
}

.op-hero__cover {
    width: 220px;
    min-width: 220px;
    border-radius: var(--op-radius-lg);
    box-shadow: var(--op-shadow);
}

.op-hero__info {
    flex: 1;
}

.op-hero__title {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--op-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.op-hero__subtitle {
    font-size: 1.1em;
    color: var(--op-text-secondary);
    margin: 0 0 16px 0;
}

.op-hero__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.op-hero__genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ═══════════════ BADGES & TAGS ═══════════════ */

.op-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    background: var(--op-bg-surface);
    color: var(--op-text-primary);
    border: 1px solid var(--op-border);
}

.op-badge--score {
    background: linear-gradient(135deg, #1a1a2e, #2d1f4e);
    border-color: var(--op-accent);
    color: var(--op-score-gold);
}

.op-badge--rank {
    background: var(--op-accent);
    border-color: var(--op-accent);
    color: white;
}

.op-badge--status {
    background: rgba(63, 185, 80, 0.15);
    border-color: var(--op-success);
    color: var(--op-success);
}

.op-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    background: rgba(123, 47, 247, 0.15);
    color: var(--op-accent-light);
    text-decoration: none;
    transition: background var(--op-transition);
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.op-tag:hover {
    background: rgba(123, 47, 247, 0.3);
    color: white;
}

.op-tags--large .op-tag {
    padding: 8px 16px;
    font-size: 0.9em;
}

.op-tag__count {
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 4px;
}

/* ═══════════════ BUTTON ═══════════════ */

.op-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--op-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--op-transition);
    border: none;
    cursor: pointer;
}

.op-btn--trailer {
    background: var(--op-accent);
    color: white;
}

.op-btn--trailer:hover {
    background: var(--op-accent-light);
    transform: translateY(-1px);
}

/* ═══════════════ ANIME LAYOUT (Single) ═══════════════ */

.op-anime-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 60px;
}

/* ═══════════════ SIDEBAR ═══════════════ */

.op-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.op-info-box {
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
    padding: 20px;
}

.op-info-box__title {
    font-size: 1em;
    font-weight: 700;
    color: var(--op-text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--op-border);
}

.op-info-list {
    margin: 0;
}

.op-info-list dt {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--op-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
}

.op-info-list dd {
    margin: 2px 0 0 0;
    color: var(--op-text-primary);
    font-size: 0.9em;
}

.op-info-list dd a {
    color: var(--op-accent-light);
    text-decoration: none;
}

.op-info-list dd a:hover {
    color: var(--op-accent-pink);
}

/* Streaming Badges */
.op-streaming-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--op-border);
}

.op-streaming-links h4 {
    font-size: 0.85em;
    color: var(--op-text-muted);
    margin: 0 0 8px 0;
}

.op-streaming-badge {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    border-radius: var(--op-radius);
    background: rgba(255, 107, 157, 0.15);
    color: var(--op-accent-pink);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 157, 0.3);
    transition: all var(--op-transition);
}

.op-streaming-badge:hover {
    background: rgba(255, 107, 157, 0.3);
    color: white;
}

/* Score Box */
.op-score-box {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e, #2d1f4e);
    border-radius: var(--op-radius);
    text-align: center;
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.op-score-box__score {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--op-score-gold);
    line-height: 1;
}

.op-score-box__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.op-score-box__details span {
    font-size: 0.8em;
    color: var(--op-text-secondary);
}

/* ═══════════════ MAIN CONTENT ═══════════════ */

.op-main {
    min-width: 0;
}

.op-section {
    margin-bottom: 40px;
}

.op-section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--op-text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--op-accent);
    display: inline-block;
}

.op-text {
    color: var(--op-text-primary);
    line-height: 1.7;
    font-size: 1em;
}

.op-text p {
    margin-bottom: 1em;
}

/* ═══════════════ CHARACTERS GRID ═══════════════ */

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

.op-character-card {
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    overflow: hidden;
    transition: transform var(--op-transition);
}

.op-character-card:hover {
    transform: translateY(-2px);
}

.op-character-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.op-character-card__info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.op-character-card__info strong {
    color: var(--op-text-primary);
    font-size: 0.9em;
}

.op-character-card__role {
    font-size: 0.8em;
    color: var(--op-accent-light);
}

.op-character-card__va {
    font-size: 0.8em;
    color: var(--op-text-secondary);
}

/* ═══════════════ SONGS ═══════════════ */

.op-songs-list {
    list-style: none;
    padding: 0;
}

.op-songs-list li {
    padding: 10px 14px;
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    margin-bottom: 8px;
    color: var(--op-text-primary);
}

.op-songs-ep {
    color: var(--op-text-muted);
    font-size: 0.85em;
}

/* ═══════════════ FAQ ═══════════════ */

.op-faq-item {
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.op-faq-question {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--op-text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.op-faq-question::before {
    content: "▸";
    color: var(--op-accent);
    transition: transform var(--op-transition);
}

.op-faq-item[open] .op-faq-question::before {
    transform: rotate(90deg);
}

.op-faq-answer {
    padding: 0 18px 14px;
    color: var(--op-text-secondary);
    line-height: 1.6;
}

/* ═══════════════ ANIME GRID (Cards) ═══════════════ */

.op-anime-grid {
    display: grid;
    gap: 20px;
}

.op-anime-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.op-anime-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.op-anime-card {
    display: flex;
    flex-direction: column;
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--op-transition);
}

.op-anime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(123, 47, 247, 0.15);
    border-color: var(--op-accent);
}

.op-anime-card__image-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.op-anime-card__image-wrap img,
.op-anime-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-anime-card__score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(13, 17, 23, 0.85);
    color: var(--op-score-gold);
    padding: 4px 8px;
    border-radius: var(--op-radius);
    font-size: 0.8em;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.op-anime-card__info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.op-anime-card__title {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--op-text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-anime-card__meta {
    font-size: 0.8em;
    color: var(--op-text-muted);
}

.op-anime-card__genres {
    font-size: 0.8em;
    color: var(--op-accent-light);
}

.op-anime-card__score {
    font-size: 0.85em;
    color: var(--op-score-gold);
    font-weight: 600;
}

.op-anime-card__episodes {
    font-size: 0.8em;
    color: var(--op-text-muted);
}

.op-anime-card__badge {
    font-size: 0.75em;
    color: var(--op-text-muted);
    font-style: italic;
}

.op-anime-card--external {
    opacity: 0.6;
}

/* ═══════════════ RELATED SECTIONS ═══════════════ */

.op-section.op-relations,
.op-section.op-recommendations,
.op-section.op-genre-more,
.op-section.op-studio-more {
    padding: 30px 0;
    border-top: 1px solid var(--op-border);
}

.op-relation-type {
    font-size: 0.9em;
    color: var(--op-accent-light);
    margin: 12px 0 8px;
}

.op-link-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--op-accent-light);
    text-decoration: none;
    font-weight: 600;
}

.op-link-more:hover {
    color: var(--op-accent-pink);
}

/* ═══════════════ CALENDAR ═══════════════ */

.op-calendar__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.op-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    background: var(--op-bg-surface);
    color: var(--op-text-secondary);
    cursor: pointer;
    font-size: 0.9em;
    transition: all var(--op-transition);
}

.op-filter-btn:hover,
.op-filter-btn--active {
    background: var(--op-accent);
    color: white;
    border-color: var(--op-accent);
}

.op-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.op-calendar__day {
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
    padding: 12px;
    min-height: 200px;
}

.op-calendar__day--today {
    border-color: var(--op-accent);
    box-shadow: 0 0 12px rgba(123, 47, 247, 0.2);
}

.op-calendar__day-label {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--op-text-primary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--op-border);
    text-align: center;
}

.op-calendar__day--today .op-calendar__day-label {
    color: var(--op-accent);
}

.op-calendar-card {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--op-bg-surface-hover);
    border-radius: var(--op-radius);
    margin-bottom: 8px;
    text-decoration: none;
    transition: all var(--op-transition);
}

.op-calendar-card:hover {
    background: rgba(123, 47, 247, 0.15);
}

.op-calendar-card__image {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}

.op-calendar-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.op-calendar-card__title {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--op-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-calendar-card__time {
    font-size: 0.7em;
    color: var(--op-accent-light);
}

.op-calendar-card__streaming {
    font-size: 0.7em;
    color: var(--op-text-muted);
}

.op-calendar__empty {
    font-size: 0.8em;
    color: var(--op-text-muted);
    text-align: center;
    font-style: italic;
}

/* ═══════════════ ARCHIVE ═══════════════ */

.op-archive__header,
.op-taxonomy__header {
    padding: 40px 0 30px;
    text-align: center;
}

.op-archive__title,
.op-taxonomy__title {
    font-size: 2em;
    font-weight: 800;
    color: var(--op-text-primary);
    margin: 0 0 8px 0;
}

.op-archive__desc,
.op-taxonomy__count {
    color: var(--op-text-secondary);
    font-size: 1.05em;
}

.op-taxonomy__description {
    max-width: 800px;
    margin: 16px auto 0;
    color: var(--op-text-secondary);
    line-height: 1.6;
}

/* Filters */
.op-archive__filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 16px;
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
}

.op-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.op-filter-label {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--op-text-muted);
    text-transform: uppercase;
}

.op-filter-select {
    padding: 8px 12px;
    background: var(--op-bg-primary);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    color: var(--op-text-primary);
    font-size: 0.9em;
    min-width: 140px;
}

/* Sort bar */
.op-taxonomy__sort {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--op-text-muted);
    font-size: 0.9em;
}

.op-taxonomy__sort a {
    color: var(--op-text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--op-radius);
}

.op-taxonomy__sort a:hover,
.op-taxonomy__sort a.active {
    color: var(--op-accent-light);
    background: rgba(123, 47, 247, 0.1);
}

/* Breadcrumb */
.op-breadcrumb {
    font-size: 0.85em;
    color: var(--op-text-muted);
    margin-bottom: 12px;
}

.op-breadcrumb a {
    color: var(--op-accent-light);
    text-decoration: none;
}

.op-breadcrumb a:hover {
    color: var(--op-accent-pink);
}

/* Pagination */
.op-pagination {
    margin-top: 40px;
    text-align: center;
}

.op-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.op-pagination li a,
.op-pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--op-radius);
    background: var(--op-bg-surface);
    border: 1px solid var(--op-border);
    color: var(--op-text-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

.op-pagination li .current,
.op-pagination li a:hover {
    background: var(--op-accent);
    color: white;
    border-color: var(--op-accent);
}

/* Seasonal header */
.op-seasonal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.op-seasonal-header h2 {
    color: var(--op-text-primary);
    margin: 0;
}

.op-seasonal-count {
    color: var(--op-text-muted);
}

.op-no-results {
    text-align: center;
    color: var(--op-text-muted);
    padding: 40px;
}

.op-loading {
    opacity: 0.5;
    pointer-events: none;
}

.op-taxonomy__related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--op-border);
}

.op-taxonomy__related h2 {
    color: var(--op-text-primary);
    margin: 0 0 16px 0;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1024px) {
    .op-anime-grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .op-calendar__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .op-anime-layout {
        grid-template-columns: 1fr;
    }

    .op-sidebar {
        position: static;
    }

    .op-hero__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .op-hero__cover {
        width: 160px;
        min-width: 160px;
    }

    .op-hero__badges,
    .op-hero__genres {
        justify-content: center;
    }

    .op-anime-grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-calendar__grid {
        grid-template-columns: 1fr;
    }

    .op-calendar__day {
        min-height: auto;
    }

    .op-characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .op-archive__filters {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .op-anime-grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .op-hero__title {
        font-size: 1.5em;
    }

    .op-hero__cover {
        width: 120px;
        min-width: 120px;
    }
}
