/* ============================================================
   Product page (video-detail.php) - /video/{slug}
   Dark theme; colors come from the CSS variables of the header.
   ============================================================ */

.detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.detail__main {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---- Player + key frames ---------------------------------- */
.detail__playerwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.detail__player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.detail__framelayer {
    position: absolute;
    inset: 0;
    background: #000;
    cursor: zoom-out;
}

.detail__framelayer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail__frames {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail__frame {
    display: block;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.detail__frame img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail__frame:hover {
    border-color: var(--color-accent);
}

@media (max-width: 720px) {
    .detail__frames {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Formats / actions ------------------------------------ */
.detail__panel {
    margin-top: 20px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px;
}

.detail__h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--color-text);
}

.detail__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

/* .format-option, .format-option__name, .format-option__price,
   .btn, .btn--accent are shared styles from css/style.css. */

.detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Brighter, larger prices on the product page (radios stay intact). */
.detail__formats .format-option__price {
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ---- Stock marketplace plates ------------------------------- */
.detail__stock {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail__stock-link {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    color: var(--color-accent);
    font-size: 0.9rem;
    background: transparent;
    text-decoration: none;
}

.detail__stock-link:hover {
    background: rgba(79, 195, 247, 0.12);
}

/* ---- Aside (info, pager, similar) ------------------------- */
.detail__aside {
    flex: 0 0 340px;
    max-width: 340px;
}

.detail__h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--color-text);
}

.detail__meta {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.detail__desc {
    margin: 0 0 18px;
    color: var(--color-text);
    line-height: 1.65;
}

/* ---- Technical specs panel --------------------------------- */
.detail__specs {
    margin-top: 20px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
}

.detail__specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px 20px;
    margin: 0;
}

.detail__specs-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail__specs-item dt {
    color: var(--color-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail__specs-item dd {
    margin: 0;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
	word-break: break-word;
}

.detail__pager {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.detail__similar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.detail__similar-item {
    display: block;
    position: relative;
    color: var(--color-text);
}

.detail__similar-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.detail__similar-item:hover img {
    opacity: 0.85;
}

.detail__similar-title {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 960px) {
    .detail {
        flex-direction: column;
    }

    .detail__aside {
        flex: 1 1 auto;
        max-width: none;
    }

    .detail__similar {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ---- Inline order form fields (email + comment) - removed in stage 5A. */