:root {
    color-scheme: light;
    --bg:         #f5f5f4;
    --surface:    #ffffff;
    --surface-2:  #ececeb;
    --hover:      #e8e8e6;
    --border:     #e2e2df;
    --text:       #18181b;
    --muted:      #71717a;
    --accent:     #dc2626;
    --accent-soft:#fee2e2;
    --header-bg:  rgba(255, 255, 255, 0.85);
    --thumb-bg:   #f1f1f0;
    --thumb-bd:   #e6e6e4;
    --ava-bg:     #e5e5e3;
    --ph-color:   rgba(24, 24, 27, 0.18);
    --dur-bg:     rgba(24, 24, 27, 0.9);
    --scrollbar:  #d6d6d4;
    --shadow:     0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px rgba(24, 24, 27, 0.06);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg:         #0b0b0c;
    --surface:    #141416;
    --surface-2:  #1c1c1f;
    --hover:      #232326;
    --border:     #2a2a2e;
    --text:       #f4f4f5;
    --muted:      #a1a1aa;
    --accent:     #ef4444;
    --accent-soft:#2b1415;
    --header-bg:  rgba(15, 15, 16, 0.85);
    --thumb-bg:   #18181a;
    --thumb-bd:   #26262a;
    --ava-bg:     #26262a;
    --ph-color:   rgba(255, 255, 255, 0.22);
    --dur-bg:     rgba(0, 0, 0, 0.8);
    --scrollbar:  #3c3c42;
    --shadow:     0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

body, header, .sidebar, .settings-menu, .nav-item, .t-row, .search-wrap input, .search-btn, .thumb, .footer-note {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }

header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: none; border-radius: 50%; background: transparent; color: var(--text); transition: background .18s ease; }
.icon-btn:hover { background: var(--hover); }

.logo { font-size: 19px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; flex: none; display: flex; }
.logo .vi  { color: var(--accent); }
.logo .xeo { color: var(--text); }

.search-wrap { flex: 1; min-width: 60px; max-width: 620px; display: flex; align-items: center; margin: 0 auto; position: relative; }
.search-wrap input { flex: 1; height: 40px; padding: 0 14px 0 44px; border: 1px solid var(--border); border-right: none; border-radius: 20px 0 0 20px; background: var(--surface-2); color: var(--text); outline: none; font-size: 14px; }
.search-wrap input:focus { border-color: var(--accent); background: var(--surface); }
.search-wrap .s-ico { position: absolute; left: 14px; pointer-events: none; color: var(--muted); }
.search-btn { height: 40px; width: 62px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 0 20px 20px 0; background: var(--surface-2); color: var(--muted); }
.search-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.header-spacer { flex: 0 0 10px; }

.auth-btn { background: var(--accent); color: #fff; border: none; padding: 8px 18px; border-radius: 20px; font-weight: 600; font-size: 14px; cursor: pointer; }
.auth-btn:hover { opacity: 0.9; }

.admin-btn { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); padding: 8px 18px; border-radius: 20px; font-weight: 600; font-size: 14px; margin-right: 8px; cursor: pointer; }
.admin-btn:hover { background: var(--hover); }

.sidebar { position: fixed; inset: 56px auto 0 0; z-index: 40; width: 240px; height: calc(100vh - 56px); overflow-y: auto; padding: 12px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; transition: margin-left .2s ease, width .2s ease; }
.nav-item { display: flex; align-items: center; gap: 18px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; margin-bottom: 2px; background: none; border: none; width: 100%; text-align: left; cursor: pointer; transition: background .18s ease; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .ico { width: 22px; height: 22px; flex: none; }

.settings-wrap { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); position: relative; }
.settings-menu { position: absolute; bottom: calc(100% + 10px); left: 0; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); display: none; }
.settings-wrap.open .settings-menu { display: block; }

.menu-head { padding: 6px 10px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.t-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 10px; }
.t-row:hover { background: var(--hover); }
.t-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }

.switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); transition: background .22s ease; padding: 0; cursor: pointer; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: left .22s ease; }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] .knob { left: calc(100% - 22px); }

main { padding: 84px 28px 60px; margin-left: 240px; transition: margin-left .2s ease; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 34px 20px; }

.card { cursor: pointer; animation: fadeUp .5s ease both; }
.card:hover .thumb { border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,0.10); transform: translateY(-2px); }
.card:hover h3 { color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--thumb-bg); border: 1px solid var(--thumb-bd); transition: border-color .2s, box-shadow .25s, transform .25s; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ph-color); transition: transform .3s; }
.card:hover .thumb .ph { transform: scale(1.07); }

.dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 6px; border-radius: 6px; background: var(--dur-bg); font-size: 12px; font-weight: 600; color: #fff; backdrop-filter: blur(4px); }

.card-body { padding: 12px 4px 0; }
.card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.card .meta { margin-top: 5px; color: var(--muted); font-size: 12.5px; }

.g1 { background: linear-gradient(120deg, #e2e2df, #f2f2f0 60%, #ececea); }
:root[data-theme="dark"] .g1 { background: linear-gradient(120deg, #26262a, #0f0f11 60%, #1c1c1f); }

.footer-note { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); padding: 30px; border-radius: 16px; width: 320px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.modal h2 { margin-bottom: 20px; text-align: center; }
.modal input { width: 100%; padding: 12px; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; }
.modal input:focus { border-color: var(--accent); }
.modal button { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; }
.modal .switch-text { text-align: center; margin-top: 15px; font-size: 13px; color: var(--muted); cursor: pointer; }
.modal .switch-text span { color: var(--accent); font-weight: 600; }
.privacy-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; }

.watch-panel { position: fixed; inset: 0; background: var(--bg); z-index: 90; overflow-y: auto; display: none; padding: 80px 20px 20px; }
.watch-panel.active { display: block; }
.close-watch { position: fixed; top: 70px; left: 20px; background: var(--surface-2); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; z-index: 91; }
.video-container { max-width: 1000px; margin: 0 auto; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: none; }

.video-actions { display: flex; gap: 15px; align-items: center; margin: 15px 0; padding-bottom: 15px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.action-btn { display: flex; align-items: center; gap: 6px; background: var(--surface-2); padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); cursor: pointer; font-weight: 600; color: var(--text); }
.action-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.comment-section { margin-top: 20px; }
.comment-input { display: flex; gap: 10px; margin-bottom: 20px; }
.comment-input input { flex: 1; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; color: var(--text); outline: none; }
.comment-card { display: flex; gap: 10px; margin-bottom: 15px; }
.comment-card .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--ava-bg); border: 1px solid var(--border); flex: none; cursor: pointer; }
.comment-body { background: var(--surface-2); padding: 10px 15px; border-radius: 12px; flex: 1; }
.comment-body strong { font-size: 13px; cursor: pointer; }
.comment-body p { font-size: 14px; margin-top: 4px; }

.player-wrapper { position: relative; width: 100%; height: 100%; }
.player-wrapper video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border: 5px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; z-index: 10; display: none; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.player-controls { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 15px 10px 10px; display: flex; align-items: center; gap: 15px; opacity: 0; transition: opacity .3s; z-index: 5; }
.player-wrapper:hover .player-controls { opacity: 1; }
.player-btn { background: none; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; position: relative; }
.progress-bar { flex-grow: 1; height: 5px; background: rgba(255,255,255,0.3); border-radius: 5px; cursor: pointer; position: relative; }
.progress-filled { background: var(--accent); height: 100%; border-radius: 5px; width: 0%; }
.time-display { color: #fff; font-size: 12px; font-weight: 500; }
.volume-slider { width: 80px; accent-color: #fff; }
.player-settings-menu { position: absolute; bottom: 50px; right: 0; background: rgba(0,0,0,0.9); color: #fff; padding: 10px; border-radius: 8px; display: none; flex-direction: column; gap: 10px; min-width: 120px; z-index: 20; }
.player-settings-menu.open { display: flex; }
.player-settings-menu button { background: none; border: none; color: #fff; text-align: left; padding: 5px; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; width: 100%; }
.player-settings-menu button:hover, .player-settings-menu button.active { color: var(--accent); }

.context-menu { position: absolute; background: rgba(0,0,0,0.9); color: #fff; padding: 8px; border-radius: 8px; display: none; z-index: 30; min-width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.context-menu.open { display: block; }
.context-menu div { padding: 8px 12px; cursor: pointer; border-radius: 4px; font-size: 13px; }
.context-menu div:hover { background: rgba(255,255,255,0.2); }

.profile-panel { position: fixed; inset: 0; background: var(--bg); z-index: 90; overflow-y: auto; display: none; padding: 80px 20px 20px; }
.profile-panel.active { display: block; }
.profile-header { display: flex; align-items: center; gap: 20px; max-width: 1000px; margin: 0 auto 30px; }
.profile-ava { width: 80px; height: 80px; border-radius: 50%; background: var(--ava-bg); border: 2px solid var(--accent); }
.profile-ava:hover #avaOverlay { opacity: 1; }
.profile-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.admin-panel { position: fixed; inset: 0; background: var(--bg); z-index: 90; overflow-y: auto; display: none; padding: 80px 20px 20px; }
.admin-panel.active { display: block; }

/* ADMİN PANEL SEKMELERİ */
.admin-tabs { display: flex; gap: 10px; border-bottom: 2px solid var(--border); margin-bottom: 25px; }
.admin-tab { background: none; border: none; color: var(--muted); padding: 10px 20px; cursor: pointer; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; }
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: fadeUp .3s ease both; }

.admin-form { max-width: 600px; }
.admin-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); font-size: 14px; }
.admin-form input { width: 100%; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); outline: none; margin-bottom: 15px; }
.admin-form input:focus { border-color: var(--accent); }

.admin-table-card { background: var(--surface); border: 1px solid var(--border); padding: 15px; border-radius: 12px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.admin-table-card .info { flex: 1; }
.admin-table-card .info strong { font-size: 15px; display: block; }
.admin-table-card .info p { color: var(--muted); font-size: 12px; margin-top: 5px; word-break: break-all; }
.admin-table-card .actions { display: flex; gap: 10px; }
.admin-btn-sm { background: var(--accent); color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.admin-btn-sm:hover { opacity: 0.9; }

.report-reasons div { padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; font-weight: 500; transition: .2s; }
.report-reasons div:hover { border-color: var(--accent); color: var(--accent); }
.report-reasons div.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.comment-actions { display: flex; gap: 15px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.comment-actions button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.comment-actions button:hover { color: var(--text); }
.comment-actions button.active { color: var(--accent); }

.replies { margin-top: 10px; padding-left: 15px; border-left: 2px solid var(--border); }
.reply-card { display: flex; gap: 8px; margin-bottom: 10px; }
.reply-card .ava { width: 24px; height: 24px; border-radius: 50%; background: var(--ava-bg); border: 1px solid var(--border); flex: none; }
.reply-body { background: var(--surface); padding: 8px 12px; border-radius: 8px; flex: 1; }
.reply-body strong { font-size: 12px; }
.reply-body p { font-size: 13px; margin-top: 2px; }

.reply-input { margin-top: 10px; display: flex; gap: 8px; }
.reply-input input { flex: 1; padding: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); outline: none; font-size: 13px; }
.reply-input button { background: var(--accent); color: #fff; border: none; padding: 0 15px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; }

.del-cmt-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; }
.del-cmt-btn:hover { color: var(--accent); }

@media (max-width: 820px) {
    .sidebar { width: 72px; padding: 12px 8px; }
    .sidebar .nav-item { flex-direction: column; gap: 4px; font-size: 10px; padding: 12px 4px; text-align: center; }
    .sidebar .nav-item .lbl { display: none; }
    .settings-menu { left: 8px; right: auto; width: 240px; }
    main { margin-left: 72px; padding: 84px 14px 50px; }
    .logo { font-size: 15px; }
    .admin-btn { padding: 8px 12px; font-size: 12px; }
}


/* ROZET STİLLERİ */
.comment-body strong, .reply-body strong, #profileName { 
    display: inline-flex; 
    align-items: center; 
    gap: 4px; 
    flex-wrap: wrap; 
}

.user-badge { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    vertical-align: middle; 
}

.admin-crown { 
    color: #dc2626; 
} 

.uploader-badge { 
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #fff; 
    background: var(--accent); 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 9px; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-left: 2px;
    line-height: 1;
}

.uploader-badge svg {
    fill: #fff;
}


/* SKELETON LOADING (YÜKLENİYOR ANİMASYONU) */
.skeleton-card {
    animation: fadeUp .5s ease both;
}
.skeleton-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}
.skeleton-line {
    height: 14px;
    background: var(--surface-2);
    border-radius: 4px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}
.skeleton-line.short { width: 60%; }

.skeleton-thumb::after, .skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--hover), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}