/* Layout estilo Netflix — páginas filme.php, serie.php, canal.php */
.detalhe-page-wrap {
    max-width: 56rem;
    margin: 0 auto;
    background: #141414;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}
@media (min-width: 640px) {
    .detalhe-page-wrap {
        border-radius: 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }
}

.detalhe-netflix { font-family: Poppins, system-ui, sans-serif; }

.detalhe-hero { position: relative; min-height: 13rem; overflow: hidden; }
@media (min-width: 640px) { .detalhe-hero { min-height: 16rem; } }
@media (min-width: 768px) { .detalhe-hero { min-height: 18rem; } }

.detalhe-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center top; transform: scale(1.02);
}
.detalhe-hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.detalhe-hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.detalhe-hero-sound {
    position: absolute; bottom: 0.65rem; right: 0.65rem; z-index: 4;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 20, 20, 0.78); color: #fff; font-size: 0.85rem;
    cursor: pointer; backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
}
.detalhe-hero-sound:hover { background: rgba(40, 40, 40, 0.92); transform: scale(1.05); }
.detalhe-hero-sound-off { background: rgba(220, 38, 38, 0.75); border-color: rgba(255, 255, 255, 0.35); }
.detalhe-hero-has-trailer { min-height: 0; aspect-ratio: 16 / 9; }
.detalhe-hero-gradient {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to top, #141414 0%, rgba(20, 20, 20, 0.92) 28%, rgba(20, 20, 20, 0.45) 62%, rgba(20, 20, 20, 0.15) 100%),
        linear-gradient(to right, #141414 0%, transparent 55%);
}
.detalhe-hero-inner { position: relative; z-index: 2; display: flex; gap: 1rem; align-items: flex-end; }
.detalhe-hero-inner-overlay { padding: 3.25rem 1.25rem 1.25rem; }
@media (min-width: 640px) {
    .detalhe-hero-inner-overlay { padding: 3.5rem 1.75rem 1.5rem; gap: 1.25rem; }
}
.detalhe-hero-inner-below {
    padding: 1.15rem 1.25rem 1.25rem; align-items: flex-start;
    background: #141414; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) {
    .detalhe-hero-inner-below { padding: 1.25rem 1.75rem 1.5rem; gap: 1.25rem; }
}

.detalhe-poster {
    width: 5.5rem; flex-shrink: 0; border-radius: 0.5rem; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55); display: none;
}
@media (min-width: 480px) { .detalhe-poster { display: block; } }
.detalhe-hero-inner-below .detalhe-poster { display: block; }
@media (min-width: 640px) { .detalhe-poster { width: 7rem; } }
.detalhe-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }

.detalhe-hero-info { flex: 1; min-width: 0; }
.detalhe-type {
    display: inline-block; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 0.2rem 0.55rem; border-radius: 9999px; margin-bottom: 0.5rem; color: #fff;
}
.detalhe-theme-filme .detalhe-type { background: rgba(37, 99, 235, 0.85); }
.detalhe-theme-serie .detalhe-type { background: rgba(147, 51, 234, 0.85); }
.detalhe-theme-canal .detalhe-type { background: rgba(22, 163, 74, 0.85); }

.detalhe-title {
    margin: 0 0 0.65rem; font-size: 1.35rem; font-weight: 700;
    line-height: 1.15; color: #fff;
}
.detalhe-hero-inner-overlay .detalhe-title { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
@media (min-width: 640px) { .detalhe-title { font-size: 1.85rem; } }
@media (min-width: 768px) { .detalhe-title { font-size: 2.15rem; } }

.detalhe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin-bottom: 0.85rem; }
.detalhe-meta-item { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: #d1d5db; }
@media (min-width: 640px) { .detalhe-meta-item { font-size: 0.78rem; } }
.detalhe-meta-rating { color: #fbbf24; font-weight: 600; }
.detalhe-meta-dot { color: #6b7280; }

.detalhe-genres { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.detalhe-genre-tag {
    font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.08);
}

.detalhe-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.detalhe-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 2.35rem; padding: 0 1rem; border-radius: 0.35rem;
    font-size: 0.82rem; font-weight: 600; text-decoration: none; cursor: pointer;
    border: none; font-family: inherit;
    transition: background 0.2s, transform 0.2s, opacity 0.2s; white-space: nowrap;
}
.detalhe-btn-play { background: #fff; color: #141414; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.detalhe-btn-play:hover { background: #f3f4f6; transform: translateY(-1px); }
.detalhe-btn-play i { font-size: 0.65rem; }

.detalhe-body { padding: 0 1.25rem 1.5rem; }
@media (min-width: 640px) { .detalhe-body { padding: 0 1.75rem 1.75rem; } }
.detalhe-section { margin-top: 1.25rem; }
.detalhe-section-title { margin: 0 0 0.65rem; font-size: 0.95rem; font-weight: 600; color: #f3f4f6; }
.detalhe-section-text { margin: 0; font-size: 0.84rem; line-height: 1.65; color: #b0b8c4; }

.detalhe-info-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
@media (min-width: 480px) { .detalhe-info-grid { grid-template-columns: 1fr 1fr; } }
.detalhe-info-item {
    padding: 0.75rem; border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
}
.detalhe-info-label {
    display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: #6b7280; margin-bottom: 0.25rem;
}
.detalhe-info-value { font-size: 0.82rem; color: #e5e7eb; line-height: 1.45; }

.detalhe-player-hero { background: #000; }
.detalhe-player-hero .detalhe-player-wrap {
    border-radius: 0; aspect-ratio: 16 / 9; min-height: 220px;
    box-shadow: none;
}
.detalhe-player-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.75rem; padding: 0.85rem 1.25rem;
    background: #141414; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) { .detalhe-player-bar { padding: 0.85rem 1.75rem; } }
.detalhe-player-title {
    margin: 0; font-size: 1rem; font-weight: 600; color: #f3f4f6;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
}
.detalhe-btn-ghost {
    background: rgba(109, 109, 110, 0.65); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.detalhe-btn-ghost:hover { background: rgba(109, 109, 110, 0.85); }

.detalhe-player-wrap {
    border-radius: 0.5rem; overflow: hidden; background: #000;
    aspect-ratio: 16 / 9; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative; min-height: 220px;
}
.detalhe-player-wrap .player-controls {
    position: absolute; top: 0.5rem; left: 0.5rem; z-index: 10;
    display: flex; gap: 0.5rem;
}

.detalhe-page-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #9ca3af; font-size: 0.875rem; text-decoration: none;
    transition: color 0.2s;
}
.detalhe-page-back:hover { color: #fff; }
