body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #2a2a2a, #1a1a1a);
    font-family: Arial, sans-serif;
    color: #ffffff;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 30px;
    overflow: hidden;
    padding: 60px 60px 80px 60px;
    /* Woodgrain effect */
    background: 
        linear-gradient(90deg, 
            rgba(160, 120, 80, 0.2),
            rgba(120, 80, 40, 0.2) 20%,
            rgba(160, 120, 80, 0.2) 40%,
            rgba(120, 80, 40, 0.2) 60%,
            rgba(160, 120, 80, 0.2) 80%,
            rgba(120, 80, 40, 0.2)
        ),
        #2b2b2b;
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(0, 0, 0, 0.6);
}

/* TV Frame */
.video-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -50px;
    bottom: -15px;
    background: linear-gradient(45deg, #3d3d3d, #2b2b2b);
    border-radius: 35px;
    z-index: -1;
    box-shadow: 
        0 5px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

/* TV Antenna */
.video-container::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    width: 120px;
    height: 80px;
    transform: translateX(-50%);
    background: 
        /* Left antenna */
        linear-gradient(45deg, transparent 40%, #4a4a4a 40%, #4a4a4a 60%, transparent 60%),
        /* Right antenna */
        linear-gradient(-45deg, transparent 40%, #4a4a4a 40%, #4a4a4a 60%, transparent 60%),
        /* Center pole */
        linear-gradient(to bottom, #4a4a4a 0%, #4a4a4a 100%);
    background-size: 100% 100%, 100% 100%, 10px 100%;
    background-position: center, center, center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* TV Screen Bezel */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border: 25px solid #1a1a1a;
    border-radius: 20px;
    background: #000;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 1;
}

#videoFrame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.thumbnail-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 3;
    pointer-events: none;
}

.thumbnail-container.hidden {
    opacity: 0;
}

.loading-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.9; }
    100% { opacity: 0.7; }
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background: linear-gradient(45deg, #4a4a4a, #3d3d3d);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

button:hover {
    background: linear-gradient(45deg, #545454, #474747);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 1400px) {
    .container,
    .video-container {
        max-width: 90%;
    }
}

@media (max-width: 1000px) {
    .container,
    .video-container {
        max-width: 95%;
    }
    
    .video-container {
        padding: 30px 30px 50px 30px;
    }
    
    .video-wrapper {
        border-width: 15px;
    }
}

@media (max-width: 600px) {
    .container,
    .video-container {
        max-width: 98%;
    }
    
    .video-container {
        padding: 15px 15px 35px 15px;
    }
    
    .video-wrapper {
        border-width: 10px;
    }
}

/* Position iframe absolutely within the container */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* TV Controls */
.tv-controls {
    position: absolute;
    bottom: 10px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 3;
}

.tv-control {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 40% 40%, #4a4a4a, #2b2b2b);
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
}

.tv-control:hover {
    transform: scale(1.1);
    background: radial-gradient(circle at 40% 40%, #5a5a5a, #3b3b3b);
}

.tv-control:active {
    transform: scale(0.95);
}

.control-icon {
    font-size: 18px;
    line-height: 1;
}

/* Add speaker grills */
.tv-speakers {
    position: absolute;
    bottom: -10px;
    left: 40px;
    width: 120px;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a,
        #1a1a1a 2px,
        #2b2b2b 2px,
        #2b2b2b 6px
    );
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Remove the old static background styles */
.static-background {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: -2;
}

/* Create static effect using multiple layers of noise */
.static-background::before,
.static-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-radial-gradient(circle at 50% 50%, #000 0, #000 2px, transparent 2px, transparent 4px),
        repeating-radial-gradient(circle at 30% 30%, #000 0, #000 2px, transparent 2px, transparent 4px),
        repeating-radial-gradient(circle at 70% 70%, #000 0, #000 2px, transparent 2px, transparent 4px);
    background-size: 6px 6px, 8px 8px, 10px 10px;
    background-position: 0 0, 2px 2px, -2px -2px;
    animation: staticNoise1 0.2s infinite steps(2);
    opacity: 0.25;
}

.static-background::after {
    background-image: 
        repeating-radial-gradient(circle at 30% 30%, #fff 0, #fff 2px, transparent 2px, transparent 4px),
        repeating-radial-gradient(circle at 70% 70%, #fff 0, #fff 2px, transparent 2px, transparent 4px),
        repeating-radial-gradient(circle at 50% 50%, #fff 0, #fff 2px, transparent 2px, transparent 4px);
    background-size: 8px 8px, 6px 6px, 10px 10px;
    animation: staticNoise2 0.2s infinite steps(2);
    opacity: 0.2;
}

/* Make animations more dramatic */
@keyframes staticNoise1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, -2%); }
    50% { transform: translate(2%, 2%); }
    75% { transform: translate(-2%, 2%); }
    100% { transform: translate(2%, -2%); }
}

@keyframes staticNoise2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2%, 2%); }
    50% { transform: translate(-2%, -2%); }
    75% { transform: translate(2%, -2%); }
    100% { transform: translate(-2%, 2%); }
}

/* Add a subtle scan line effect */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: -1;
}

.description {
    color: #e6e6e6;
    font-size: 1.4rem;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding: 25px 35px;
    background: rgba(43, 43, 43, 0.6);
    border: 2px solid #3d3d3d;
    border-radius: 15px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Add mobile styles */
@media (max-width: 600px) {
    .description {
        font-size: 1.1rem;
        padding: 20px 25px;
        line-height: 1.5;
        margin: 0 auto 20px;
    }
}

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

.modal-content {
    position: relative;
    background: #2b2b2b;
    margin: 15% auto;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    border: 2px solid #3d3d3d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-button:hover {
    color: #fff;
}

.modal-content h2 {
    margin-top: 0;
    color: #fff;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    color: #fff;
}

.modal-content input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #3d3d3d;
    background: #1a1a1a;
    color: #fff;
}

.modal-content button {
    align-self: flex-start;
}

.admin-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

.video-count {
    background: #333;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #fff;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
}

.preview-btn {
    background: #4a4a4a;
    color: white;
}

.preview-btn:hover {
    background: #5a5a5a;
}

.suggestion-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.suggestion-url {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
    word-break: break-all;
}

.suggestion {
    background: #2a2a2a;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.suggestion-info {
    margin-bottom: 15px;
}

.suggestion-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.suggestion-url {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 8px;
    word-break: break-all;
    font-family: monospace;
}

.suggestion-date {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 4px;
}

.suggestion-ip {
    font-size: 0.8em;
    color: #666;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.suggestion-actions button {
    padding: 8px 16px;
    font-size: 0.9em;
}

.preview-btn {
    background: #4a4a4a;
    color: white;
}

.preview-btn:hover {
    background: #5a5a5a;
}

.add-btn {
    background: #2e7d32;
    color: white;
}

.add-btn:hover {
    background: #388e3c;
}

.delete-btn {
    background: #c62828;
    color: white;
}

.delete-btn:hover {
    background: #d32f2f;
} 