#randomBtn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    padding: 10px 18px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.top-header {
    height: 45vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.top-header h1 {
    margin: 0;
    font-size: 32px;
    color: #333;
}

.video-item {
    min-height: auto;
    width: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    box-sizing: border-box;
}

.video-wrap {
    position: relative;
    width: min(92vw, 620px);
    background: #f8f8f8;
    border: 1px solid #d6d6d6;
    box-sizing: border-box;

    margin: 22px auto;
    border: 3px solid var(--fg);
    background: rgba(255, 255, 255, .03);
    box-shadow: 10px 10px 0 var(--shadow);
    padding: 18px 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}

.video-frame {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrap.vertical .video-frame {
    background: linear-gradient(90deg, #777, #222, #777);
}

video {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 150px);
    display: block;
    background: #000;
}

.video-wrap.vertical video {
    width: auto;
    max-width: 100%;
    height: calc(100vh - 190px);
    max-height: 720px;
}

.video-name {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.video-text {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.video-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.video-tags span {
    color: var(--accent2);
    border: 2px solid var(--accent2);
    background: #000;
    padding: 4px 8px;
    font-size: 12px;
    box-shadow: 3px 3px 0 var(--shadow);
}

.filename {
    margin-top: 10px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    word-break: break-all;
}

.video-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 86px;
    color: white;
    opacity: 0;
    cursor: pointer;
    text-shadow: 0 0 22px black;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 5;
    user-select: none;
}

.video-wrap:hover .video-icon {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.03);
}

#randomBtn,
#topBtn {
    background: #000;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0;
    box-shadow: 5px 5px 0 var(--shadow);
    font-family: inherit;
    text-transform: uppercase;
}

#randomBtn:hover,
#topBtn:hover {
    background: var(--accent);
    color: #000;
}

#randomBtn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 900;
}

#topBtn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
    display: none;
}

#topBtn.show {
    display: block;
}

/* ===== Tag lista a hero/header részben ===== */
.tag-list {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list a {
    color: var(--fg);
    background: #000;
    border: 2px solid var(--fg);
    padding: 5px 9px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--shadow);
}
.tag-list a:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}
.tag-list a.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Warning overlay ===== */
body.warning-active .video-item,
body.warning-active footer,
body.warning-active #randomBtn,
body.warning-active #topBtn {
    filter: blur(18px);
    pointer-events: none;
    user-select: none;
}
body.warning-active .hero {
    filter: none;
    pointer-events: auto;
}
#warningOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .68);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 20px;
}
.warningBox {
    position: relative;
    width: min(92vw, 520px);
    background: #000;
    color: var(--fg);
    border: 3px solid var(--fg);
    box-shadow: 10px 10px 0 var(--shadow);
    padding: 28px 24px 24px;
    text-align: center;
}
.warningBox h2 {
    margin: 0 0 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.warningBox p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.warningText { display: none; }
.warningText.active { display: block; }
.warningActions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.warningActions button,
#langToggle {
    background: #000;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--shadow);
}
.warningActions button { padding: 10px 18px; }
#langToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
}
.warningActions button:hover,
#langToggle:hover {
    background: var(--accent);
    color: #000;
}

.btn {
    background: #000;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 6px 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    box-shadow: 3px 3px 0 var(--shadow);
}

.btn:hover {
    background: var(--accent);
    color: #000;
}

.video-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.tool-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 34px;
}

.volume-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 34px;
}

.volumeBtn,
.shareBtn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volumeRange {
    width: 0;
    opacity: 0;
    margin-right: 0;
    pointer-events: none;
    accent-color: var(--accent);
    transition: width .18s ease, opacity .18s ease, margin-right .18s ease;
}

.volume-row:hover .volumeRange {
    width: 90px;
    opacity: 1;
    margin-right: 7px;
    pointer-events: auto;
}