body {
    background-color: #111;
    color: #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
    line-height: 1.6;
}

h2 {
    color: #00ff88;
}

a {
    color: #00d4ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

input[type="file"],
input[type="text"],
button {
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}

button:hover {
    background-color: #00ff88;
    color: #111;
    cursor: pointer;
}

#result {
    margin-top: 15px;
    padding: 10px;
    background: #222;
    border-left: 4px solid #00ff88;
}
#latestVideos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-entry {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.video-entry:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.video-entry img {
    width: 100%;
    height: auto;
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}


.video-entry a {
    color: #00ff88;
    font-weight: bold;
    text-decoration: none;
}

.video-entry a:hover {
    text-decoration: underline;
}


video {
    margin-top: 10px;
    border: 2px solid #00ff88;
    border-radius: 10px;
    max-width: 100%;
}

.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: black;
    text-align: center;
    position: relative;
}

.video-wrapper video {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    border: 2px solid #00ff88;
    border-radius: 10px;
}

.views {
    margin-top: 12px;
    color: #888;
    font-size: 16px;
}

#replayOverlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    flex-direction: column;
}

#replayOverlay button {
    padding: 12px 24px;
    font-size: 18px;
    background: #00ff88;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: 5vh auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    background: #111;
    border-radius: 10px;
    color: white;
}

.close {
    color: #ccc;
    float: right;
    font-size: 28px;
    cursor: pointer;
}
.close:hover {
    color: #fff;

}

body.dragging {
    background-color: #181818;
    transition: background-color 0.3s ease;
}

.drag-hint {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff88;
    font-size: 20px;
    display: none;
}

body.dragging .drag-hint {
    display: block;
}

#uploadModal .modal-content {
    background: #111;
    color: #eee;
}

#openUploadModal,
#openLoginModal {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 9999;
    background-color: #00ff88;
    color: #111;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 16px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff8866;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#openUploadModal:hover,
#openLoginModal:hover  {
    background-color: #00dd77;
    transform: scale(1.1);
}

.video-entry {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
    cursor: pointer;
}

.video-entry:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.video-entry img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.video-title {
    padding: 3px;
    font-weight: bold;
    color: #00ff88;
}

.video-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.video-views {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}


.button-group {
  display: flex;
  gap: 10px; /* Adjust as needed */
  justify-content: center;
}

.copy-btn,
.edit-btn {
    padding: 4px 8px;
    gap: 3px;
    font-size: 14px;
    background: #00ff88;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #111;
}

.copy-btn:hover,
.edit-btn:hover {
    background: #00dd77;
}

.deleted-message {
    padding: 30px;
    font-size: 20px;
    color: #ff7777;
    text-align: center;
    animation: fadeSlide 0.6s ease-out forwards;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    color: #00ff88;
    font-size: 28px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
}

.video-entry img[src*="spinner.gif"] {
    object-fit: contain;
    background: #111;
    padding: 10px;
    border-radius: 8px;
}

#messageBox {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  font-family: sans-serif;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
  z-index: 9999;
  display: none;
}

.video-entry.highlight {
    box-shadow: 0 0 10px #00ff88;
    transition: box-shadow 0.3s ease;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
  flex-wrap: wrap;
}

.pagination button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #ddd;
  cursor: pointer;
}

.pagination button:hover { filter: brightness(1.15); }
.pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination .current {
  font-weight: bold;
  border-color: #00ff88;
}
.pagination .meta {
  color: #aaa;
  padding: 0 6px;
}
