/* Series Hero — rich header card used on files.php */

.series-hero {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 14px;
    margin: 8px 0 12px;
    font-family: Calibri, sans-serif;
}

.series-hero-poster {
    position: relative;
    flex: 0 0 auto;
    width: 110px;
    height: 165px;
    border-radius: 6px;
    overflow: hidden;
    background-image: linear-gradient(to right bottom, #ff0000, #ff0044, #ff007b, #ff00b5, #ff00f0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.series-hero-poster a,
.series-hero-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: var(--theme-on-media);
    text-decoration: none;
}

.series-hero-poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--theme-on-accent);
    line-height: 1.2;
}

.series-hero-body {
    flex: 1 1 auto;
    min-width: 0;
}

.series-hero-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.series-hero-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--theme-text);
}

.series-hero-title a {
    color: inherit;
    text-decoration: none;
}

.series-hero-title a:hover {
    color: var(--theme-accent);
}

.series-hero-section {
    display: inline-block;
    padding: 2px 8px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.series-hero-section:hover {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: var(--theme-on-accent);
}

.series-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.series-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
    white-space: nowrap;
}

.series-hero-chip a {
    color: inherit;
    text-decoration: none;
}

.series-hero-status-ongoing {
    background: var(--status-ok-bg);
    border-color: var(--status-ok-border);
    color: var(--status-ok-text);
}

.series-hero-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-ok-solid);
    box-shadow: 0 0 0 0 rgba(43, 178, 76, 0.6);
    animation: series-hero-pulse 1.8s ease-out infinite;
}

@keyframes series-hero-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(43, 178, 76, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(43, 178, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 178, 76, 0); }
}

.series-hero-status-ended {
    background: var(--theme-border);
    border-color: #cfcfcf;
    color: #555;
}

.series-hero-status-upcoming {
    background: var(--status-info-bg);
    border-color: var(--status-info-border);
    color: var(--status-info-text);
}

.series-hero-cert {
    background: var(--theme-surface-deep);
    border-color: #666;
    color: #333;
}

.series-hero-rating {
    background: var(--status-rating-bg);
    border-color: var(--status-rating-border);
    color: var(--status-rating-text);
}

.series-hero-rating-star {
    color: var(--status-rating-star);
}

.series-hero-rating-count {
    color: #9a8400;
    font-weight: 500;
}

.series-hero-extlink {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
}

.series-hero-extlink-imdb {
    background: #f5c518;
    border-color: #c99e00;
    color: #1a1a1a;
}

.series-hero-extlink-imdb:hover {
    background: #ffd633;
    color: #000;
}

.series-hero-extlink-tvdb {
    background: #6cd491;
    border-color: #2f8f52;
    color: #0f3d22;
}

.series-hero-extlink-tvdb:hover {
    background: #85e0a5;
}

.series-hero-awards {
    background: var(--status-rating-bg);
    border-color: var(--status-rating-border);
    color: var(--status-rating-text);
    cursor: pointer;
}

.series-hero-awards:hover {
    background: #f9e8c2;
}

.series-hero-awards-panel {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--theme-surface-warm);
    border: 1px solid var(--decor-warm-border);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.series-hero-awards-panel.is-open {
    display: block;
}

.series-hero-awards-group {
    margin-bottom: 6px;
}

.series-hero-awards-group:last-child {
    margin-bottom: 0;
}

.series-hero-awards-group-title {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.series-hero-awards-won .series-hero-awards-group-title {
    color: var(--status-ok-text);
}

.series-hero-awards-nom .series-hero-awards-group-title {
    color: var(--status-rating-text);
}

.series-hero-awards-item {
    color: var(--theme-text-soft);
}

.series-hero-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.series-hero-meta b {
    color: #333;
}

.series-hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.series-hero-genre-pill {
    display: inline-block;
    padding: 3px 10px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-text-soft);
    text-decoration: none;
    transition: all 0.15s ease;
}

.series-hero-genre-pill:hover {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: var(--theme-on-accent);
}

.series-hero-plot {
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    margin-bottom: 8px;
}

.series-hero-credits {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 6px;
}

.series-hero-credits b {
    color: #333;
}

.series-hero-credits a {
    color: var(--theme-accent);
    text-decoration: none;
}

.series-hero-credits a:hover {
    text-decoration: underline;
}

.series-hero-footer {
    font-size: 11px;
    color: #888;
}

.series-upcoming-note {
    margin: 10px 0;
    padding: 12px 14px;
    background: var(--theme-surface-warm);
    border: 1px solid var(--decor-warm-border);
    border-left: 4px solid var(--theme-accent);
    border-radius: 8px;
    color: var(--theme-text-soft);
    font-family: Calibri, sans-serif;
}

.series-upcoming-note.is-compact {
    margin: 8px 0;
    padding: 10px 12px;
}

.series-upcoming-kicker {
    margin-bottom: 3px;
    color: var(--theme-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.series-upcoming-title {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 800;
}

.series-upcoming-episode,
.series-upcoming-date {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
}

.series-upcoming-date {
    color: var(--decor-warm-text);
    font-weight: 700;
}

@media (max-width: 480px) {
    .series-hero {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .series-hero-poster {
        width: 120px;
        height: 180px;
    }

    .series-hero-body {
        width: 100%;
    }

    .series-hero-title {
        font-size: 17px;
    }
}
