.aplyt-shell,
.aplyt-shell * { box-sizing: border-box; }

.aplyt-shell {
    width: 100%;
    margin: 28px 0;
    color: var(--aplyt-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aplyt-inner {
    width: min(calc(100% - 32px), var(--aplyt-max));
    margin: 0 auto;
    padding: var(--aplyt-pad);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--aplyt-accent) 18%, transparent), transparent 32%),
        linear-gradient(145deg, color-mix(in srgb, var(--aplyt-bg) 92%, #10141b 8%), var(--aplyt-bg));
    border: 1px solid var(--aplyt-border);
    border-radius: var(--aplyt-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.aplyt-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.aplyt-eyebrow {
    margin-bottom: 7px;
    color: var(--aplyt-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.aplyt-head h2 {
    margin: 0;
    max-width: 900px;
    color: var(--aplyt-text);
    font-family: Oswald, Inter, sans-serif;
    font-size: clamp(28px, 3.1vw, 48px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.02em;
}

.aplyt-more,
.aplyt-subscribe,
.aplyt-link {
    text-decoration: none !important;
}

.aplyt-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--aplyt-border);
    border-radius: 999px;
    color: var(--aplyt-text) !important;
    background: rgba(255,255,255,.03);
    font-weight: 800;
    font-size: 13px;
    transition: .2s ease;
}

.aplyt-more:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--aplyt-accent) 60%, var(--aplyt-border)); }

.aplyt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: stretch;
}

.aplyt-featured-card,
.aplyt-channel-card,
.aplyt-list {
    background: var(--aplyt-card);
    border: 1px solid var(--aplyt-border);
    border-radius: calc(var(--aplyt-radius) - 6px);
}

.aplyt-featured-card { overflow: hidden; min-width: 0; }

.aplyt-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.aplyt-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.aplyt-featured-meta { padding: 17px 18px 19px; }

.aplyt-now,
.aplyt-item-kicker {
    display: block;
    color: var(--aplyt-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.aplyt-current-title {
    margin: 6px 0 0;
    color: var(--aplyt-text);
    font-size: clamp(18px, 1.8vw, 26px);
    line-height: 1.2;
    font-weight: 850;
}

.aplyt-side {
    display: grid;
    gap: 14px;
    min-width: 0;
    align-content: start;
}

.aplyt-channel-card { padding: 19px; }

.aplyt-channel-top {
    display: flex;
    gap: 13px;
    align-items: center;
}

.aplyt-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
}

.apl-yt-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--aplyt-accent);
    font-weight: 900;
    font-size: 24px;
}

.aplyt-channel-name {
    color: var(--aplyt-text);
    font-family: Oswald, Inter, sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.aplyt-subs {
    margin-top: 5px;
    color: var(--aplyt-muted);
    font-size: 13px;
    font-weight: 700;
}

.aplyt-description {
    margin: 15px 0 0;
    color: var(--aplyt-muted);
    font-size: 14px;
    line-height: 1.55;
}

.aplyt-actions {
    display: flex;
    gap: 10px;
    margin-top: 17px;
    flex-wrap: wrap;
}

.aplyt-subscribe,
.aplyt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 11px;
    padding: 11px 15px;
    font-weight: 900;
    line-height: 1;
}

.aplyt-subscribe {
    gap: 8px;
    color: #fff !important;
    background: var(--aplyt-accent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--aplyt-accent) 30%, transparent);
}

.aplyt-link {
    color: var(--aplyt-text) !important;
    border: 1px solid var(--aplyt-border);
    background: rgba(255,255,255,.03);
}

.aplyt-youtube-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 16px;
    border-radius: 5px;
    color: var(--aplyt-accent);
    background: #fff;
    font-size: 9px;
}

.aplyt-list {
    padding: 8px;
    display: grid;
    gap: 7px;
}

.aplyt-video-item {
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.aplyt-video-item:hover,
.aplyt-video-item:focus-visible {
    outline: none;
    background: rgba(255,255,255,.05);
}

.aplyt-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: #000;
}

.aplyt-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aplyt-mini-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--aplyt-accent) 92%, #000 8%);
    color: #fff;
    font-size: 11px;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
}

.aplyt-item-copy { min-width: 0; }

.aplyt-item-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    color: var(--aplyt-text);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
}

.aplyt-empty {
    padding: 16px;
    border: 1px dashed #b9b9b9;
    background: #fff8d8;
    color: #222;
}

@media (max-width: 980px) {
    .aplyt-grid { grid-template-columns: 1fr; }
    .aplyt-side { grid-template-columns: .9fr 1.1fr; }
    .aplyt-list { align-content: start; }
}

@media (max-width: 720px) {
    .aplyt-shell { margin: 18px 0; }
    .aplyt-inner {
        width: min(calc(100% - 18px), var(--aplyt-max));
        padding: max(16px, calc(var(--aplyt-pad) * .72));
        border-radius: max(18px, calc(var(--aplyt-radius) - 4px));
    }
    .aplyt-head { align-items: flex-start; margin-bottom: 16px; }
    .aplyt-more { display: none; }
    .aplyt-side { grid-template-columns: 1fr; }
    .aplyt-channel-card { padding: 16px; }
    .aplyt-avatar { width: 50px; height: 50px; flex-basis: 50px; }
    .aplyt-video-item { grid-template-columns: 104px minmax(0, 1fr); }
    .aplyt-current-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .aplyt-more,
    .aplyt-video-item { transition: none; }
}
