/* ==========================================================================
   UltimaTube - Dark mode (kustom)
   Dimuat oleh inc/custom-ultimatube.php setelah style.css tema.
   Warna aksen (tombol, link aktif, pagination) tetap dari Theme Options > Main color.
   Ubah palet cukup di variabel :root di bawah.
   ========================================================================== */

:root {
	--utc-bg: #0f0f0f;        /* latar halaman */
	--utc-surface: #181818;   /* area konten */
	--utc-surface-2: #222222; /* kartu, dropdown, input */
	--utc-surface-3: #2c2c2c; /* hover */
	--utc-border: #2e2e2e;
	--utc-text: #e2e2e2;
	--utc-text-2: #a8a8a8;    /* teks sekunder */
	--utc-text-3: #7a7a7a;
}

/* ---------- Dasar ---------- */
html,
body,
body.custom-background {
	background-color: var(--utc-bg) !important;
	background-image: none;
	color: var(--utc-text);
}
body,
button,
input,
select,
textarea {
	color: var(--utc-text);
}
a:hover,
a:focus,
a:active {
	color: #fff;
}
hr {
	background-color: var(--utc-border);
}
pre,
code {
	background: var(--utc-surface-2);
	color: var(--utc-text);
}
fieldset {
	border-color: var(--utc-border);
}
mark,
ins {
	background: #554d00;
	color: #fff;
}

/* ---------- Header ---------- */
.site-branding,
.site-content {
	background: var(--utc-bg);
}
.site-branding .logo a,
p.site-description {
	color: var(--utc-text);
}
p.site-description {
	color: var(--utc-text-2);
}
#site-navigation,
#site-navigation ul {
	background: #141414;
}
#site-navigation ul ul,
#site-navigation .membership ul,
.membership ul {
	background-color: var(--utc-surface-2);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
#site-navigation ul ul li a,
.membership a {
	color: var(--utc-text);
}
#site-navigation ul ul li a:hover,
.membership ul li:hover,
#site-navigation ul ul li.has-sub:hover {
	background: var(--utc-surface-3);
}
.membership .login a {
	background: var(--utc-surface-2);
	color: var(--utc-text);
}

/* ---------- Form & input ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
	background-color: var(--utc-surface-2);
	border-color: var(--utc-border);
	color: var(--utc-text);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
	color: #fff;
}
::placeholder {
	color: var(--utc-text-3);
}
.button-grey {
	background: var(--utc-surface-3) !important;
	color: var(--utc-text) !important;
}
button:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background-color: var(--utc-surface-3) !important;
}

/* ---------- Konten & judul ---------- */
.archive-content,
.title-block,
.under-video-block .video-archive-ad {
	background: var(--utc-surface);
}
.widget-title,
.page-title,
.page .entry-title,
.comments-title,
.comment-reply-title,
.title-block h1.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.custom-content h1 {
	color: var(--utc-text);
}
.entry-content h1,
.custom-content h1 {
	border-bottom-color: var(--utc-border);
}
.homepage-description,
.search-video-number,
.blog-article .entry-meta {
	color: var(--utc-text-2);
}
.archive-description {
	color: var(--utc-text-2);
}

/* ---------- Filter (Newest / Best / ...) ---------- */
.filters a {
	color: var(--utc-text-2);
}
.filters a::before {
	background-color: var(--utc-border);
}
/* Desktop: bar filter menyatu dengan latar konten. */
.filters-list {
	background: transparent;
	box-shadow: none;
}
/* HP/tablet: filter jadi dropdown, tetap perlu latar. */
@media (max-width: 767.98px) {
	.filters-list {
		background: var(--utc-surface-2);
		box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
	}
}

/* ---------- Kartu video ---------- */
.thumb-block .entry-header,
.thumb-block .entry-header span.title {
	color: var(--utc-text);
}
.thumb-block .views {
	color: var(--utc-text-2);
}
.no-thumb {
	background: var(--utc-surface-2);
}
.no-thumb span {
	color: var(--utc-text-2);
}
span.hd-video {
	background: var(--utc-surface-2);
	color: var(--utc-text);
}
.categories-list .thumb-block .entry-header .cat-title,
.categories-list .thumb-block .entry-header .actor-title {
	color: var(--utc-text);
}

/* ---------- Label / tag / pagination ---------- */
.label {
	background: var(--utc-surface-2);
	color: var(--utc-text);
}
.label.secondary,
.pagination ul li a,
.mobile-pagination ul li span {
	background-color: var(--utc-surface-2) !important;
	border-color: var(--utc-border) !important;
	color: var(--utc-text);
}
.widget_categories ul li a,
.tagcloud a,
a.tag-cloud-link {
	background-color: var(--utc-surface-2) !important;
	color: var(--utc-text) !important;
}

/* ---------- Halaman Tags (A-Z) ---------- */
.tags-letter-block {
	border-bottom-color: var(--utc-border);
}
.tags-letter-block .tag-letter {
	color: var(--utc-text);
}
.tags-letter-block .tag-items .tag-item a {
	color: var(--utc-text-2);
}
.tags-letter-block .tag-items .tag-item a:hover {
	background: var(--utc-surface-3);
}

/* ---------- Sidebar kiri (aside) ---------- */
.archive-aside a,
.aside-filters span a {
	color: var(--utc-text);
}
.archive-aside a.active,
.archive-aside a:hover {
	background: var(--utc-surface-3);
}
.aside-block {
	border-bottom-color: var(--utc-border);
}

/* ---------- Single video ---------- */
.video-player-area {
	background: var(--utc-surface);
}
.video-player-area .video-infos h1,
.video-infos .title-views h1 {
	color: var(--utc-text);
}
.video-actions {
	background: var(--utc-surface-2);
}
#video-links a,
#video-links a i,
.video-share .video-share-url #clickme,
.morelink {
	color: var(--utc-text);
}
#clickme i,
.more-videos i,
#video-buttons i,
span.post-like,
.show-more i,
.grey-link,
.like #more,
.dislike #less {
	color: var(--utc-text-2);
}
.video-share,
.under-video-block {
	border-bottom-color: var(--utc-border);
}
.video-share-url textarea {
	background: var(--utc-surface-2);
	color: var(--utc-text);
}
.post-like a {
	background: var(--utc-surface-2);
}
.rating-bar {
	background: var(--utc-surface-3);
}
.video-description,
.video-description .desc {
	color: var(--utc-text);
}
.video-description .desc.more::after {
	background: linear-gradient(to bottom, rgba(24, 24, 24, 0) 0%, var(--utc-surface) 100%);
}
#video-tabs button.tab-link {
	color: var(--utc-text);
}

/* ---------- Komentar ---------- */
.comment-list .comment-body,
.comments-area {
	color: var(--utc-text);
	border-color: var(--utc-border);
}

/* ---------- Area iklan ---------- */
.happy-header-mobile,
.happy-footer,
.happy-footer-mobile,
.happy-related-videos-mobile,
.sidebar-ads,
.video-archive-ad {
	background: transparent;
}
.happy-under-player {
	background: #111;
}

/* ---------- Breadcrumb ---------- */
.breadcrumbs-area {
	background: var(--utc-surface) !important;
	border-color: var(--utc-border);
}
#breadcrumbs a {
	color: var(--utc-text-2);
}
#breadcrumbs a:hover {
	color: #fff;
}
#breadcrumbs li.item-current .bread-current {
	color: var(--utc-text);
}

/* ---------- Footer ---------- */
.footer-widget-zone {
	background: var(--utc-surface);
}
.site-footer {
	background: #0a0a0a;
	color: var(--utc-text-2);
}
.footer-menu-container a {
	color: var(--utc-text-2);
}

/* ---------- Modal login / register ---------- */
.modal-content {
	background-color: var(--utc-surface);
	color: var(--utc-text);
}
.modal-footer {
	border-top-color: var(--utc-border);
}
#wpst-user-modal h3 {
	color: var(--utc-text);
}

/* ---------- Alert ---------- */
.alert-success { background: #12301a; border-color: #1d4a28; color: #9fd8a8; }
.alert-info    { background: #0f2a36; border-color: #18414f; color: #9cd0e6; }
.alert-warning { background: #33290e; border-color: #4d3f14; color: #e6cf8e; }
.alert-danger  { background: #3a1418; border-color: #5a1f25; color: #f0a7ae; }

/* ---------- Scrollbar ---------- */
html {
	scrollbar-color: #3a3a3a var(--utc-bg);
}