/* VideoTube Laravel skin — mirrors the original VideoTube theme without WordPress dependencies. */
:root {
    --tube-primary: #ff9900;
    --tube-bg: #000;
    --tube-header: #1b1b1b;
    --tube-panel: #101010;
    --tube-panel-soft: #181818;
    --tube-input: #363636;
    --tube-border: #313131;
    --tube-text: #fff;
    --tube-muted: #aaa;
    --tube-container: 1350px;
    --bg: #000;
    --panel: #101010;
    --panel-2: #181818;
    --border: #313131;
    --text: #fff;
    --muted: #aaa;
    --brand: var(--tube-primary);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, html[data-theme="dark"], html[data-theme="light"] { background: var(--tube-bg); color-scheme: dark; }
body { position: relative; margin: 0; background: var(--tube-bg); color: var(--tube-text); font: 12px/1.5 Arial, sans-serif; }
a { color: var(--tube-primary); text-decoration: none; transition: color .1s ease, background-color .1s ease, border-color .1s ease; }
a:hover { color: var(--tube-primary); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--tube-container), calc(100% - 30px)); margin-inline: auto; }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 8px; z-index: 100000; padding: 10px 14px; background: #111; border: 2px solid #fff; color: #fff; }
.skip-link:focus { inset-block-start: 8px; }

/* Header */
.site-header, .tube-header { position: relative; inset: auto; z-index: 1000; border: 0; background: var(--tube-header); backdrop-filter: none; }
.logo-search { height: 60px; background: #1b1b1b; }
.tube-header__top { position: relative; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 0 16px; color: #fff; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.navbar-brand:hover { color: #fff; text-decoration: none; }
.navbar-brand img { width: auto; max-width: 230px; max-height: 35px; object-fit: contain; }
.logo-word-1 { color: #fff; }
.logo-word-2 { margin-inline-start: 2px; padding: 2px 5px; border-radius: 4px; background: var(--tube-primary); color: #050505; }
.header-search { position: absolute; inset-block-start: 16px; inset-inline-start: 50%; width: 30%; max-width: none; min-width: 260px; display: flex; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; transform: translateX(-50%); }
[dir="rtl"] .header-search { transform: translateX(50%); }
.header-search:focus-within { border: 0; box-shadow: none; }
.header-search input { width: calc(100% - 60px); height: 30px; padding: 3px 9px; border: 1px solid transparent; border-radius: 3px 0 0 3px; outline: 0; background: var(--tube-input); color: #cacaca; font-size: 14px; }
[dir="rtl"] .header-search input { border-radius: 0 3px 3px 0; }
.header-search input:focus { border-color: #777; background: var(--tube-input) !important; color: #fff !important; }
.header-search #searchsubmit { width: 60px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 0 3px 3px 0; background: var(--tube-primary); color: #000; font-size: 22px; font-weight: 700; line-height: 30px; cursor: pointer; }
[dir="rtl"] .header-search #searchsubmit { border-radius: 3px 0 0 3px; }
.membership { position: relative; display: flex; align-items: center; gap: 2px; min-height: 44px; margin-inline-start: auto; }
.membership .login-link { padding: 11px 12px; color: #ccc; font-size: 14px; }
.membership .login-link:hover { color: #fff; text-decoration: none; }
.signup-button { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 16px; border-radius: 3px; background: var(--tube-primary); color: #000; font-size: 14px; font-weight: 700; }
.signup-button:hover { color: #000; filter: brightness(1.08); text-decoration: none; }
.member-trigger { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 7px; border: 0; background: transparent; color: #ccc; cursor: pointer; }
.member-trigger img, .member-avatar { width: 35px; height: 35px; border-radius: 0; object-fit: cover; }
.member-avatar { display: grid; place-items: center; background: var(--tube-primary); color: #000; font-weight: 800; }
.member-menu { position: absolute; inset-block-start: 100%; inset-inline-end: 0; z-index: 1002; min-width: 190px; margin: 0; padding: 10px 0 0; list-style: none; background: #2f2f2f; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.member-menu[hidden] { display: none; }
.member-menu li { margin: 0; }
.member-menu .member-welcome { padding: 0 15px 10px; color: #fff; text-align: center; }
.member-menu a, .member-menu button { width: 100%; display: block; padding: 10px 15px; border: 0; border-top: 1px solid #242424; background: transparent; color: #ccc; text-align: start; font-size: 14px; cursor: pointer; }
.member-menu a:hover, .member-menu button:hover { background: #333; color: #fff; text-decoration: none; }
.member-menu form { margin: 0; }
.hamburger, .mobile-search-toggle { display: none; }
.tube-navbar { height: 40px; max-height: 40px; border-top: 1px solid #242424; background: #1b1b1b; overflow: visible; }
.tube-navbar .container { height: 40px; display: flex; align-items: stretch; justify-content: center; }
.tube-navbar a { display: flex; align-items: center; justify-content: center; min-width: 118px; padding: 0 28px; border-inline: 1px solid transparent; border-bottom: 2px solid transparent; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tube-navbar a:hover { border-inline-color: #252525; background: #191919; color: #fff; text-decoration: none; }
.tube-navbar a.active { border-bottom-color: var(--tube-primary); }
.tube-navbar .language-switcher { align-self: center; margin-inline-start: 10px; border-color: #444; border-radius: 2px; background: #252525; color: #fff; }
.mobile-membership { display: none; }

/* Main lists */
.header-ad:empty, .header-ad:not(:has(.ad-zone)) { display: none; }
.page-content { min-height: calc(100vh - 210px); padding-block: 26px 10px; }
.page-header, .section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0; border: 0; background: none; }
.page-header h1, .section-heading h1, .section-heading h2 { margin: 0 0 20px; color: #fff; font-size: 20px; line-height: 36px; font-weight: 700; }
.section-heading { margin-top: 18px; }
.category-strip { display: flex; gap: 7px; margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid #202020; overflow-x: auto; }
.category-strip a { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; padding: 6px 13px; border: 1px solid #333; border-radius: 3px; background: #151515; color: #ccc; }
.category-strip a:hover { border-color: var(--tube-primary); color: var(--tube-primary); text-decoration: none; }
.video-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 4px -4px; }
.video-grid--featured { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.video-card { min-width: 0; margin: 4px 4px 18px; background: transparent; }
.video-card__media, .video-block .thumb { position: relative; display: block; height: 0; padding-bottom: 56.25%; border-radius: 0; overflow: hidden; background: #111; }
.video-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; border: 0; transition: opacity .25s ease, transform .25s ease; }
.video-card__preview { position: absolute; inset: 0; z-index: 1; opacity: 0; background-repeat: no-repeat; transition: opacity .18s ease; }
.video-card__preview.is-visible { opacity: 1; }
.video-card__preview-progress { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 3; width: 0; height: 3px; background: var(--tube-primary); transition: width .65s linear; }
.video-card:hover .video-card__media img { transform: scale(1.025); }
.video-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #111; color: #444; font-size: 32px; }
.video-card__duration { position: absolute; inset-inline-end: 5px; inset-block-end: 5px; z-index: 2; padding: 2px 5px; border-radius: 3px; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; font-weight: 500; }
.video-card__body { padding: 0; }
.video-card h2, .video-card h3 { max-height: 36px; margin: 4px 0 2px; overflow: hidden; color: #fff; font-size: 15px; font-weight: 400; line-height: 17px; }
.video-card h2 a, .video-card h3 a { color: #fff; }
.video-card h2 a:hover, .video-card h3 a:hover { color: var(--tube-primary); }
.video-card__meta { min-height: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0; padding: 4px 5px; color: #aaa; font-size: 11px; }
.video-card__meta .video-card__rating { margin-inline-start: 3px; color: #cacaca; }
.video-card__meta .video-card__category { min-height: 0; margin: 0; padding: 0; border-radius: 0; color: #aaa; font-weight: 400; }
.video-card__meta .video-card__category:hover { background: none; color: var(--tube-primary); }
.video-card__dot { color: #555; }
.ad-zone { border-color: #292929; border-radius: 0; background: #101010; }
.ad-zone--home_grid { min-height: calc(200% - 8px); margin: 4px; }
.ad-zone--listing_grid, .ad-zone--category_grid, .ad-zone--tag_grid, .ad-zone--actor_grid, .ad-zone--author_grid, .ad-zone--search_grid { min-height: calc(200% - 8px); margin: 4px; }
.page-bottom-ad .ad-zone--page_bottom { min-height: 90px; margin-block: 24px 0; }
.ad-label { color: #777; }
.empty-state { min-height: 220px; border-color: #333; border-radius: 3px; background: #0b0b0b; color: #aaa; }
.home-hero { padding: 30px 0; text-align: center; }
.home-hero h1 { margin: 0 0 10px; color: #ccc; font-size: 20px; line-height: 36px; }
.home-hero p { max-width: 90%; margin: 0 auto; color: #ccc; line-height: 18px; }

/* Video page */
.single-video-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); gap: 14px; }
.single-video-main { min-width: 0; }
.watch-page { display: block; }
.watch-page > .player-shell { border: 1px solid var(--tube-border); border-radius: 4px 4px 0 0; }
.watch-header { margin: 0; padding: 17px 20px; border: 1px solid var(--tube-border); border-top: 0; background: var(--tube-panel); }
.watch-header h1 { margin: 0 0 7px; font-size: 20px; line-height: 28px; }
.watch-meta { color: #aaa; }
.video-description, .video-taxonomies { max-width: none; margin: 0; padding: 18px 22px; border: 1px solid var(--tube-border); border-top: 0; border-radius: 0; background: var(--tube-panel); color: #ccc; }
.video-facts { display: grid; gap: 7px; padding: 14px 22px; border: 1px solid var(--tube-border); border-top: 0; background: var(--tube-panel); color: #aaa; }
.video-facts strong { color: #ddd; }
.video-taxonomies { gap: 9px; }
.taxonomy-group { grid-template-columns: 100px 1fr; }
.taxonomy-label { color: #aaa; }
.taxonomy-chip { padding: 3px 8px; border-color: #333; border-radius: 4px; background: #222; color: #ccc; font-size: 12px; }
.taxonomy-chip:hover { border-color: var(--tube-primary); background: #282828; color: var(--tube-primary); transform: none; }
.engagement-bar { margin: 0 0 20px; padding: 14px 20px; border: 1px solid var(--tube-border); border-top: 0; background: var(--tube-panel); }
.engagement-bar button, .engagement-bar span { border-color: #333; border-radius: 3px; background: #202020; }
.video-sidebar { min-width: 0; }
.video-sidebar__sticky { position: sticky; inset-block-start: 12px; display: grid; gap: 14px; }
.video-sidebar .ad-zone { min-height: 250px; margin-top: 0; }
.comments-section { max-width: none; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--tube-border); background: var(--tube-panel); }
.comment, .comment-form textarea { border-color: #333; border-radius: 2px; background: #181818; }

/* Directories and archives */
.directory-page { min-height: 600px; }
.term-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.term-card { min-width: 0; margin-bottom: 18px; }
.term-card__thumb { position: relative; display: block; height: 0; padding-bottom: 56.25%; overflow: hidden; background: #111; }
.term-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.term-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font-size: 30px; }
.term-card__name { display: block; margin: 6px 3px 1px; color: #fff; font-size: 14px; }
.term-card small { margin-inline: 3px; color: #888; }
.tags-letter-block { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #252525; }
.tag-letter { margin: 0; color: var(--tube-primary); font-size: 24px; line-height: 40px; text-align: center; }
.tag-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.tag-items a { min-width: 0; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #2e2e2e; background: #151515; color: #ccc; }
.tag-items a:hover { border-color: var(--tube-primary); color: var(--tube-primary); text-decoration: none; }
.tag-items small { color: #777; }
.archive-header, .channel-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding: 22px; border: 1px solid var(--tube-border); background: var(--tube-panel); }
.archive-header img, .channel-header img, .channel-avatar { flex: 0 0 auto; width: 96px; height: 96px; object-fit: cover; background: #222; }
.channel-avatar { display: grid; place-items: center; color: #000; background: var(--tube-primary); font-size: 32px; font-weight: 800; }
.archive-header h1, .channel-header h1 { margin: 2px 0 3px; font-size: 24px; }
.archive-header p, .channel-header p { max-width: 760px; margin: 7px 0 0; color: #aaa; }
.archive-header > div > span, .section-kicker { color: var(--tube-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* Account and forms */
.auth-card, .upload-card, .account-page { width: min(900px, 100%); margin: 10px auto 30px; padding: 24px; border: 1px solid var(--tube-border); border-radius: 4px; background: var(--tube-panel); }
.auth-card { width: min(480px, 100%); }
.auth-card h1, .upload-card h1 { color: #fff; }
.auth-card > p, .upload-card header p { color: #aaa; }
.auth-help-link { align-self: flex-start; }
.form-stack input, .form-stack select, .form-stack textarea { border-color: #363636; border-radius: 3px; background: #363636; color: #cacaca; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { outline: 0; border-color: #777; background: #363636; }
.form-stack fieldset { display: flex; flex-direction: column; gap: 15px; margin: 0 0 8px; padding: 18px; border: 1px solid #333; }
.form-stack legend { padding: 0 8px; color: var(--tube-primary); font-size: 14px; font-weight: 700; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 0; border-radius: 3px; background: var(--tube-primary); color: #000; font-weight: 700; }
.primary-button:hover { color: #000; filter: brightness(1.08); text-decoration: none; }
.account-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 15px; background: #181818; }
.account-summary > img, .account-summary > span { width: 72px; height: 72px; object-fit: cover; }
.account-summary > span { display: grid; place-items: center; background: var(--tube-primary); color: #000; font-size: 26px; font-weight: 800; }
.account-summary div { display: flex; flex-direction: column; }
.account-summary strong { font-size: 18px; }
.account-summary small { color: #888; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.account-nav a { padding: 9px 12px; border: 1px solid #333; background: #181818; color: #ccc; }
.account-nav a:hover { border-color: var(--tube-primary); color: var(--tube-primary); text-decoration: none; }
.page-header--actions { margin-bottom: 18px; }
.owned-video { position: relative; min-width: 0; }
.status-badge { position: absolute; inset-block-start: 7px; inset-inline-start: 7px; z-index: 4; padding: 3px 7px; background: #666; color: #fff; font-size: 10px; }
.status-badge--published { background: #31804b; }.status-badge--processing { background: #26749b; }.status-badge--failed { background: #a83232; }.status-badge--pending { background: #aa781e; }
.processing-progress { height: 5px; margin: -12px 4px 3px; overflow: hidden; background: #333; }
.processing-progress span { display: block; height: 100%; background: var(--tube-primary); }
.notice, .form-errors { border-radius: 2px; }

/* Footer */
#wrapper-footer, .site-footer { margin-top: 25px; padding: 20px 0 30px; border-top: 1px solid #111; background: #000; color: #aaa; }
.footer-pages { margin: 0 0 12px; }
.footer-pages a { min-height: 34px; padding: 5px 10px; color: #aaa; }
.footer-pages a:hover { color: var(--tube-primary); }
.footer-searches a { min-height: 34px; padding: 6px 10px; border-color: #292929; border-radius: 3px; background: #151515; color: #aaa; }
.site-info { color: #aaa; line-height: 32px; }

@media (max-width: 1199.98px) {
    .container { width: calc(100% - 24px); }
    .video-grid, .video-grid--featured, .term-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tube-navbar a { min-width: 0; padding-inline: 24px; }
    .header-search { width: 40%; }
}

@media (max-width: 767.98px) {
    .container { width: 100%; max-width: 100%; padding-inline: 10px; }
    .logo-search { height: auto; min-height: 60px; background: #1e1e1e; }
    .tube-header__top { height: auto; min-height: 60px; padding-inline: 0; }
    .hamburger, .mobile-search-toggle { width: 60px; height: 60px; flex: 0 0 60px; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #ccc; font-size: 25px; cursor: pointer; }
    .hamburger span { width: 24px; height: 3px; display: block; border-radius: 2px; background: var(--tube-primary); }
    .navbar-brand { justify-content: center; width: calc(100% - 120px); padding: 0 6px; font-size: 22px; }
    .navbar-brand img { max-width: 170px; }
    .membership { display: none; }
    .header-search { position: absolute; inset-block-start: 60px; inset-inline: 0; z-index: 1003; width: 100%; min-width: 0; display: none; padding: 0; transform: none; }
    [dir="rtl"] .header-search { transform: none; }
    .header-search.is-open { display: flex; }
    .header-search input { height: 62px; width: 85%; border-radius: 0; border-color: #111; padding: 15px; }
    .header-search #searchsubmit { width: 15%; height: 62px; border-radius: 0; }
    .tube-navbar { height: 0; max-height: none; border-top: 0; overflow: visible; }
    .tube-navbar .container { position: absolute; inset-block-start: 60px; inset-inline: 0; z-index: 1001; height: auto; display: none; flex-direction: column; padding: 0 10px 5px; background: #1e1e1e; box-shadow: 0 15px 24px rgba(0,0,0,.45); }
    .tube-navbar.is-open .container { display: flex; }
    .tube-navbar a { min-height: 50px; justify-content: flex-start; padding: 0 15px; border: 0; border-top: 1px solid #111; }
    .tube-navbar a.active { border-inline-start: 3px solid var(--tube-primary); }
    .tube-navbar .language-switcher { width: calc(100% - 20px); min-height: 40px; margin: 5px 10px; }
    .mobile-membership { display: flex; flex-direction: column; border-top: 1px solid #111; }
    .mobile-membership a { border-top: 0; color: var(--tube-primary); }
    .mobile-membership form { margin: 0; }
    .mobile-membership button { width: 100%; min-height: 50px; padding: 0 15px; border: 0; background: transparent; color: #ddd; text-align: start; cursor: pointer; }
    .page-content { padding: 22px 10px 8px; }
    .video-grid, .video-grid--featured, .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-card { margin-bottom: 15px; }
    .video-card h2, .video-card h3 { font-size: 13px; line-height: 16px; }
    .video-card h2 a, .video-card h3 a { min-height: 0; padding: 0; }
    .video-card__meta { min-height: 0; padding: 4px 2px; font-size: 10px; }
    .video-card__category { display: none !important; }
    .single-video-layout { display: block; }
    .video-sidebar { margin-top: 20px; }
    .player-shell { border-radius: 0; }
    .comments-section { max-width: none; }
    .tag-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tags-letter-block { grid-template-columns: 44px 1fr; gap: 8px; }
    .archive-header, .channel-header { align-items: flex-start; padding: 16px; }
    .archive-header img, .channel-header img, .channel-avatar { width: 72px; height: 72px; }
    .auth-card, .upload-card, .account-page { margin-top: 0; padding: 18px 14px; border-inline: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .header-ad { padding-inline: 10px; }
}

@media (max-width: 430px) {
    .tag-items { grid-template-columns: 1fr; }
    .video-card__rating { display: none; }
}
