* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0f0f0f;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

.wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.player {
    position: relative;
    background: #000;
    margin: 0 0;
}

.player-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.player-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
}

.video-info {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 1;
}

.vid-badge {
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.vid-length {
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
    z-index: 2;
    cursor: pointer;
}

.play-btn:hover {
    transform: scale(1.06);
    background: rgba(255,0,0,0.75);
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.spinner-sm {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.controls {
    position: relative;
    background: #0a0a0a;
    padding: 0 12px 10px;
}

.ctrl-top {
    position: relative;
    margin-bottom: 8px;
    padding: 0;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: #333;
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #ff0000;
    border-radius: 2px;
    transition: width 0.3s;
    position: relative;
    z-index: 2;
}

.progress-buffer {
    height: 100%;
    width: 70%;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.ctrl-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ctrl-left, .ctrl-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.time {
    color: #aaa;
    font-size: 12px;
}

.ctrl-right svg {
    opacity: 0.6;
    cursor: pointer;
}

.ctrl-right svg:hover {
    opacity: 1;
}

.video-meta {
    padding: 16px;
    color: #fff;
}

.video-meta h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.channel strong {
    display: block;
    font-size: 13px;
}

.channel span {
    font-size: 11px;
    color: #888;
}

.actions {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
}

.actions span {
    background: #222;
    padding: 6px 12px;
    border-radius: 20px;
}

.description {
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
}

.description span {
    display: block;
    margin-bottom: 6px;
    color: #888;
}
