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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.95);
    color: #fff;
    padding: 12px 24px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    letter-spacing: 0.5px;
}

.navbar .actions {
    display: flex;
    gap: 12px;
    position: absolute;
    right: 24px;
}

/* Modern navbar buttons */
.navbar .actions button,
#fullscreen-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar .actions button:hover,
#fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.navbar .actions button:active,
#fullscreen-btn:active {
    transform: translateY(1px);
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    height: calc(100vh - 3px);
    margin: 0;
    border: 3px solid white;
    margin-bottom: 3px;
}

.video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    border: 3px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modern Add URL ve Change URL butonları için ortak stiller */
.add-url,
.change-url {
    position: absolute;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.add-url:hover,
.change-url:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.add-url span {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 500;
}

.add-url::after {
    content: '+';
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.change-url {
    font-size: 15px;
    font-weight: 500;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Modern Modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(28, 28, 28, 0.95);
    padding: 24px;
    border-radius: 12px;
    z-index: 1000;
    color: white;
    min-width: 320px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.modal input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* Modern Modal buttons */
.modal-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#cancelUrl {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

#confirmUrl {
    background-color: #2563eb;
    color: white;
}

.modal-buttons button:hover {
    transform: translateY(-1px);
}

#cancelUrl:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#confirmUrl:hover {
    background-color: #1d4ed8;
}

.modal-buttons button:active {
    transform: translateY(1px);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* Tam ekran modu için ek stiller */
:fullscreen .container,
:-webkit-full-screen .container,
:-moz-full-screen .container,
:-ms-fullscreen .container {
    height: 100vh;
    border: 3px solid white;
    margin: 0;
}

:fullscreen .video,
:-webkit-full-screen .video,
:-moz-full-screen .video,
:-ms-fullscreen .video {
    border: 3px solid white;
}

.grid-control {
    display: flex;
    gap: 12px;
    margin-left: 12px;
}

#width-control,
#height-control {
    position: relative;
    padding-right: 24px;
}

.arrows {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arrow {
    font-size: 8px;
    line-height: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.arrow:hover {
    color: #fff;
    transform: scale(1.3);
}

.arrow.up:hover {
    transform: scale(1.3) translateY(-1px);
}

.arrow.down:hover {
    transform: scale(1.3) translateY(1px);
}

/* Container grid ayarları için dinamik sınıflar */
.grid-2-1 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
.grid-3-1 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
.grid-4-1 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; }
.grid-2-2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.grid-3-2 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.grid-4-2 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.grid-2-3 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
.grid-3-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.grid-4-3 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.grid-2-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
.grid-3-4 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
.grid-4-4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }