/* =============================================================
   Evolucion YouTube — Frontend Styles
   ============================================================= */

/* ---- Variables --------------------------------------------------------- */
:root {
    --evyt-primary:    #01AEEF;
    --evyt-text:       #1d2327;
    --evyt-muted:      #646970;
    --evyt-border:     #e2e4e7;
    --evyt-radius:     8px;
    --evyt-gap:        22px;
    --evyt-tab-active: #01AEEF;
}

/* ---- Tabs nav ---------------------------------------------------------- */
.evyt-tabs {
    width: 100%;
}

.evyt-tabs__nav {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid var(--evyt-border);
}

.evyt-tabs__nav li {
    margin: 0 !important;
    padding: 0 !important;
}

.evyt-tabs__btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--evyt-muted);
    cursor: pointer;
    transition: color .18s, border-color .18s;
    border-radius: 0;
    outline: none;
}

.evyt-tabs__btn:hover {
    color: var(--evyt-primary);
}

.evyt-tabs__btn--active {
    color: var(--evyt-primary);
    font-weight: 700;
    border-bottom-color: var(--evyt-primary);
}

.evyt-tabs__btn:focus-visible {
    outline: 2px solid var(--evyt-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---- Tab panels -------------------------------------------------------- */
.evyt-tab-panel--hidden {
    display: none;
}

/* ---- Split sections (Videos / En Vivo) -------------------------------- */
.evyt-section {
    margin-bottom: 26px;
}

.evyt-section:last-child {
    margin-bottom: 0;
}

.evyt-section__title {
    margin: 0 0 12px 0 !important;
    font-size: 18px;
    line-height: 1.3;
    color: var(--evyt-text);
    border-left: 4px solid var(--evyt-primary);
    padding-left: 10px;
}

/* ---- Video grid -------------------------------------------------------- */
.evyt-grid {
    display: grid;
    gap: var(--evyt-gap);
    width: 100%;
}

.evyt-grid--cols-1 { grid-template-columns: 1fr; }
.evyt-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.evyt-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.evyt-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Responsive breakpoints ------------------------------------------- */
@media (max-width: 1024px) {
    .evyt-grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .evyt-grid--cols-3,
    .evyt-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

    .evyt-tabs__btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .evyt-grid--cols-2,
    .evyt-grid--cols-3,
    .evyt-grid--cols-4 { grid-template-columns: 1fr; }

    :root { --evyt-gap: 16px; }
}

/* ---- Video card -------------------------------------------------------- */
.evyt-card {
    display: flex;
    flex-direction: column;
}

.evyt-grid--live .evyt-card__thumb {
    box-shadow: inset 0 0 0 1px rgba(255, 0, 0, 0.18);
}

/* Thumbnail wrapper */
.evyt-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--evyt-radius);
    background: #000;
    cursor: pointer;
}

.evyt-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.evyt-card__thumb:hover img {
    transform: scale(1.03);
    opacity: .85;
}

/* Play button overlay */
.evyt-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 64px;
    height: 45px;
    transition: transform .2s ease;
    pointer-events: none; /* click handled by parent */
}

.evyt-card__thumb:hover .evyt-card__play {
    transform: translate(-50%, -50%) scale(1.12);
}

.evyt-card__play svg {
    width: 64px;
    height: 45px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Card title */
.evyt-card__title {
    margin: 10px 0 0 0 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--evyt-text);
}

/* ---- Iframe player (after click) --------------------------------------- */
.evyt-card__iframe {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--evyt-radius);
    overflow: hidden;
    background: #000;
}

.evyt-card__iframe iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Empty state ------------------------------------------------------- */
.evyt-empty {
    padding: 32px 0;
    text-align: center;
    color: var(--evyt-muted);
    font-size: 14px;
}
