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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.player-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    background: #000;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
}

.retry-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.retry-btn:hover {
    background: #ff5252;
}

.controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.video-wrapper:hover .controls-overlay,
.video-wrapper.controls-visible .controls-overlay {
    opacity: 1;
    pointer-events: all;
}

.top-controls {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    color: #00D0FF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.center-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
}

.play-pause-btn.large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-pause-btn.large:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.play-pause-btn.large svg {
    width: 40px;
    height: 40px;
    margin-left: 5px;
}

.video-wrapper.playing .center-play-button {
    opacity: 0;
    pointer-events: none;
}

.bottom-controls {
    padding: 15px 20px;
}

.progress-container {
    margin-bottom: 10px;
    height: 6px;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: #00D0FF;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
    position: relative;
    z-index: 2;
}

.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
    z-index: 1;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s;
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.progress-container:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.left-controls,
.right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.pip-icon {
    width: 24px;
    height: 24px;
}

.pip-btn.active {
    color: #00D0FF;
}

.pip-btn.active .pip-icon {
    fill: #00D0FF;
}

/* PIP butonunu mobil ve tablette gizle */
@media (max-width: 1024px) {
    .pip-btn {
        display: none !important;
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s;
    margin-top: -10px;
}

.volume-control:hover .volume-slider-container {
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
}

/* Webkit (Chrome, Safari, Edge) için dolum çubuğu */
.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
    position: relative;
    z-index: 2;
}

/* Firefox için dolum çubuğu */
.volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.volume-slider::-moz-range-progress {
    height: 4px;
    background: #00D0FF;
    border-radius: 2px;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 2;
}

.quality-selector,
.audio-selector,
.subtitle-selector {
    position: relative;
}

/* YouTube tarzı kalite popup */
.quality-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.quality-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.quality-popup-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.quality-popup-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quality-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.quality-popup-content {
    flex: 1;
    overflow-y: auto;
    background: transparent;
    padding: 4px 0;
    width: 100%;
}

.quality-popup-content .quality-option {
    padding: 14px 20px;
    font-size: 15px;
}

.quality-popup-content .quality-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtitle Settings Popup - Daha büyük ve ferah */
.subtitle-settings-popup {
    min-width: 350px !important;
    max-width: 400px;
    max-height: 500px;
}

.subtitle-settings-popup .quality-popup-header {
    padding: 16px 20px;
}

.subtitle-settings-popup .quality-popup-content {
    padding: 12px 0;
}

.subtitle-settings-popup .subtitle-settings {
    padding: 8px 20px 16px 20px;
}

.subtitle-settings-popup .subtitle-setting-item {
    margin-bottom: 20px;
    padding: 0;
}

.subtitle-settings-popup .subtitle-setting-item label {
    font-size: 14px;
    margin-bottom: 10px;
}

.subtitle-settings-popup .setting-control {
    gap: 16px;
}

.subtitle-settings-popup .setting-control input[type="range"] {
    height: 6px;
}

.subtitle-settings-popup .setting-control input[type="color"] {
    width: 50px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.subtitle-settings-popup .setting-control select {
    padding: 10px 12px;
    font-size: 14px;
}

.settings-selector {
    position: relative;
}

.settings-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
}

.settings-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.settings-selector.active .settings-icon {
    transform: rotate(90deg);
}

.settings-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    min-width: 250px;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 12px;
}

.settings-selector.active .settings-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-selector.active .quality-arrow {
    transform: rotate(180deg);
}

/* Settings Item (Kalite gibi direkt tıklanabilir item'lar) */
.settings-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
    margin-bottom: 4px;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-item-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.settings-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-item-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.settings-item-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.settings-item-arrow {
    margin-left: 8px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.settings-section {
    margin-bottom: 16px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    border-radius: 4px;
    margin-bottom: 4px;
}

.settings-section-title:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-section-title.active {
    background: rgba(255, 255, 255, 0.15);
}

.section-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.settings-section-title.active .section-arrow {
    transform: rotate(180deg);
}

.settings-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.settings-section-title.active + .settings-section-content {
    max-height: 500px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
}

.quality-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
}

.quality-btn .quality-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.quality-selector.active .quality-arrow,
.audio-selector.active .quality-arrow,
.subtitle-selector.active .quality-arrow {
    transform: rotate(180deg);
}

.subtitle-btn,
.audio-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
}

.subtitle-icon,
.audio-icon {
    width: 18px;
    height: 18px;
}

.subtitle-menu,
.audio-menu {
    min-width: 200px;
}

/* Settings menu içindeki menüler için özel stiller */
.settings-menu .quality-menu,
.settings-menu .audio-menu,
.settings-menu .subtitle-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
}


.quality-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.quality-selector.active .quality-menu,
.audio-selector.active .audio-menu,
.subtitle-selector.active .subtitle-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quality-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.quality-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quality-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: #00D0FF;
}

.quality-check {
    width: 18px;
    height: 18px;
}

.quality-option.active .quality-check {
    display: block !important;
}

.quality-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtitle Settings Styles */
.subtitle-settings {
    padding: 8px 0;
}

.subtitle-setting-item {
    margin-bottom: 16px;
    padding: 0;
}

.subtitle-setting-item:last-child {
    margin-bottom: 0;
}

.subtitle-setting-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.setting-control input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.setting-control input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.setting-control input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.setting-control input[type="range"]::-moz-range-progress {
    height: 4px;
    background: #00D0FF;
    border-radius: 2px;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00D0FF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
}

.setting-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00D0FF;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.setting-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
}

.setting-control input[type="color"] {
    width: 40px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s;
}

.setting-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.setting-control input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.setting-control input[type="color"]:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.setting-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00D0FF;
}

.setting-control select {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.setting-control select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.setting-control select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00D0FF;
}

.setting-control select option {
    background: #1a1a1a;
    color: #fff;
}

.setting-control span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 50px;
    text-align: right;
    font-weight: 500;
}

.setting-control:has(input[type="checkbox"]) {
    gap: 8px;
}

.setting-control:has(input[type="checkbox"]) span {
    min-width: auto;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

.sync-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    flex: 1;
}

.sync-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.sync-btn:active {
    transform: translateY(0);
}

.time-display {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.time-separator {
    margin: 0 4px;
    opacity: 0.6;
}

.seek-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seek-btn {
    padding: 6px !important;
    min-width: 32px;
    height: 32px;
}

.seek-btn svg {
    width: 20px !important;
    height: 20px !important;
}

.seek-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.player-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.player-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

/* Altyazı stilleri - görünürlük ve pozisyon */
video::cue {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Altyazıların video container içinde görünmesini sağla */
.video-wrapper {
    overflow: visible;
}

.video-player {
    position: relative;
}

/* Altyazı track'lerinin görünürlüğünü kontrol et */
video textTrack {
    display: block;
}

/* Sadece showing modundaki track'leri göster */
video textTrack:not([mode="showing"]) {
    display: none;
}

/* Altyazıların z-index'ini yükselt (kontrollerin üstünde) */
video::cue {
    position: relative;
    z-index: 4;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px ve altı) */
@media (max-width: 768px) {
    .video-wrapper {
        max-width: 100%;
    }
    
    .top-controls {
        padding: 15px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    .bottom-controls {
        padding: 12px 15px;
    }
    
    .control-btn {
        padding: 6px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .play-pause-btn.large {
        width: 60px;
        height: 60px;
    }
    
    .play-pause-btn.large svg {
        width: 30px;
        height: 30px;
    }
    
    .time-display {
        font-size: 12px;
    }
    
    .settings-menu {
        min-width: 220px;
        max-height: 400px;
        font-size: 13px;
    }
    
    .quality-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .volume-control:hover .volume-slider-container {
        width: 60px;
    }
    
    video::cue {
        font-size: 16px;
    }
    
    .subtitle-setting-item {
        margin-bottom: 14px;
    }
    
    .subtitle-setting-item label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .setting-control span {
        font-size: 11px;
        min-width: 45px;
    }
    
    .sync-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Mobil (480px ve altı) */
@media (max-width: 480px) {
    body {
        overflow: auto;
    }
    
    .player-container {
        min-height: 100vh;
        height: auto;
    }
    
    .video-wrapper {
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    
    .top-controls {
        padding: 10px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .bottom-controls {
        padding: 10px;
    }
    
    .control-buttons {
        gap: 8px;
    }
    
    .left-controls,
    .right-controls {
        gap: 6px;
    }
    
    .control-btn {
        padding: 5px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .play-pause-btn.large {
        width: 50px;
        height: 50px;
    }
    
    .play-pause-btn.large svg {
        width: 24px;
        height: 24px;
    }
    
    .progress-container {
        height: 5px;
        margin-bottom: 8px;
    }
    
    .time-display {
        font-size: 11px;
    }
    
    .settings-menu {
        min-width: 200px;
        max-height: 350px;
        font-size: 12px;
        right: 0;
        left: auto;
    }
    
    .settings-section-title {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .quality-option {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .volume-control:hover .volume-slider-container {
        width: 50px;
    }
    
    .volume-slider {
        height: 3px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    
    video::cue {
        font-size: 14px;
        padding: 3px 6px;
    }
    
    .center-play-button {
        opacity: 1;
    }
    
    .subtitle-setting-item {
        margin-bottom: 12px;
    }
    
    .subtitle-setting-item label {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    .setting-control {
        gap: 8px;
    }
    
    .setting-control input[type="color"] {
        width: 36px;
        height: 28px;
    }
    
    .setting-control span {
        font-size: 10px;
        min-width: 40px;
    }
    
    .sync-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Küçük mobil (360px ve altı) */
@media (max-width: 360px) {
    .top-controls {
        padding: 8px;
    }
    
    .video-title {
        font-size: 12px;
    }
    
    .bottom-controls {
        padding: 8px;
    }
    
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .play-pause-btn.large {
        width: 45px;
        height: 45px;
    }
    
    .play-pause-btn.large svg {
        width: 20px;
        height: 20px;
    }
    
    .time-display {
        font-size: 10px;
    }
    
    .settings-menu {
        min-width: 180px;
        max-height: 300px;
        font-size: 11px;
    }
    
    .settings-section-title {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .quality-option {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    video::cue {
        font-size: 12px;
    }
}

/* Büyük ekranlar (1920px ve üzeri) */
@media (min-width: 1920px) {
    .video-wrapper {
        max-width: 100%;
    }
    
    .top-controls {
        padding: 25px;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .bottom-controls {
        padding: 20px 25px;
    }
    
    .control-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .play-pause-btn.large {
        width: 90px;
        height: 90px;
    }
    
    .play-pause-btn.large svg {
        width: 45px;
        height: 45px;
    }
    
    video::cue {
        font-size: 20px;
    }
}

/* Yatay mod (landscape) mobil cihazlar */
@media (max-width: 768px) and (orientation: landscape) {
    .video-wrapper {
        height: 100vh;
    }
    
    .top-controls {
        padding: 10px 15px;
    }
    
    .bottom-controls {
        padding: 10px 15px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .play-pause-btn.large {
        width: 55px;
        height: 55px;
    }
    
    .play-pause-btn.large svg {
        width: 28px;
        height: 28px;
    }
    
    video::cue {
        font-size: 15px;
    }
}

/* Touch cihazlar için daha büyük dokunma alanları */
@media (hover: none) and (pointer: coarse) {
    .control-btn {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .progress-container {
        height: 8px;
    }
    
    .volume-slider {
        height: 6px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
    
    .quality-option {
        padding: 14px 16px;
        min-height: 44px;
    }
}

/* Quality Notification */
.quality-notification {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: qualityNotificationSlideIn 0.3s ease-out;
    pointer-events: none;
}

.quality-notification-content {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

@keyframes qualityNotificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes qualityNotificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

