body {
    background-color: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
header {
    background-color: #111;
    padding: 15px 20px;
    border-bottom: 2px solid #222;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Website Name in Red */
header h3 {
    margin: 0;
    color: red;
    font-size: 24px;
    font-weight: 600;
}

/* Login/Logout Buttons (Blue) */
.btn-header {
    background-color: blue;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-header:hover {
    background-color: darkblue;
}

/* Search Input */
header input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: #fff;
    box-sizing: border-box;
}

/* General Buttons (Blue) */
.btn {
    display: inline-block;
    background-color: blue;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: darkblue;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Pay Button (Red) */
.btn-pay {
    background-color: red !important;
}

.btn-pay:hover {
    background-color: darkred !important;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    box-sizing: border-box;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.video-info {
    padding: 8px 0 0 0;
}

.video-title {
    margin: 0 0 5px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.video-views {
    color: #aaa;
    font-size: 13px;
}

/* Player Area */
.video-player-container {
    position: relative;
}

.video-player-container video {
    width: 100%;
    max-height: 500px;
    background: #000;
}

#paywall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#paywall .form-control {
    max-width: 300px;
}

/* Custom Video Player Controls */
.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    padding: 0 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    z-index: 50;
    transition: opacity 0.3s;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 8px;
}

.control-btn:hover {
    color: #3b82f6;
}

.volume-slider {
    width: 80px;
    cursor: pointer;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.seek-bar-container {
    width: 100%;
    padding: 0 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.seek-bar {
    width: 100%;
    cursor: pointer;
    height: 4px;
    transition: height 0.1s;
}
.seek-bar:hover {
    height: 6px;
}

.quality-select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 2px 5px;
}

.skip-overlay {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 60;
}