/*
Theme Name: Phisk Videos
Theme URI: https://phisk.co/
Author: Phisk
Description: A light, video-first WordPress theme designed to work alongside Phisk Video Manager while keeping all content and functionality in the plugin.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: phisk-videos-theme
*/
:root{--phisk-bg:#f7f8fa;--phisk-surface:#fff;--phisk-text:#17191d;--phisk-muted:#707782;--phisk-line:#e8eaee;--phisk-soft:#f0f2f5;--phisk-accent:#17191d;--phisk-radius:16px;--phisk-small-radius:10px;--phisk-content:1240px;--phisk-shadow:0 5px 24px rgba(22,28,37,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--phisk-bg);color:var(--phisk-text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{color:#555b64}button,input,textarea,select{font:inherit}button,.button,input[type=submit]{cursor:pointer}.phisk-site{min-height:100vh;display:flex;flex-direction:column}.phisk-header{height:70px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--phisk-line);position:sticky;top:0;z-index:1000;backdrop-filter:blur(12px)}.phisk-header-inner{height:100%;max-width:1440px;padding:0 26px;margin:auto;display:flex;align-items:center;gap:26px}.phisk-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;font-size:21px;font-weight:800;letter-spacing:-.8px}.phisk-brand img{max-height:38px;width:auto}.phisk-brand-mark{width:34px;height:34px;display:grid;place-items:center;background:#17191d;color:#fff;border-radius:11px;font-size:16px;font-weight:800}.phisk-brand-name span{font-weight:500}.phisk-header-search{flex:1;max-width:540px;margin:0 auto;position:relative}.phisk-header-search input[type=search]{width:100%;height:42px;padding:0 46px 0 17px;border:1px solid #e5e7eb;border-radius:24px;background:#f7f8fa;outline:none}.phisk-header-search input:focus{background:#fff;border-color:#b9bec7;box-shadow:0 0 0 3px rgba(20,25,32,.05)}.phisk-search-submit{position:absolute;right:5px;top:5px;width:32px;height:32px;border:0;border-radius:50%;background:#e9ebef;color:#30343a;display:grid;place-items:center}.phisk-search-submit svg{width:17px;height:17px}.phisk-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}.phisk-header-link,.phisk-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:0 15px;border-radius:10px;font-size:13px;font-weight:700;white-space:nowrap}.phisk-header-link{background:transparent}.phisk-button{background:#17191d;color:white;border:1px solid #17191d}.phisk-button:hover{background:#34383f;color:white}.phisk-button-light{background:#f0f2f5;color:#202329;border-color:#f0f2f5}.phisk-button-light:hover{background:#e5e7eb;color:#111}.phisk-mobile-menu{display:none;background:none;border:0;padding:8px;color:var(--phisk-text)}.phisk-layout{width:100%;max-width:1440px;margin:0 auto;padding:28px 26px 54px;display:grid;grid-template-columns:218px minmax(0,1fr);gap:32px;flex:1}.phisk-sidebar{align-self:start;position:sticky;top:94px;max-height:calc(100vh - 115px);overflow:auto;padding:0 5px 20px 0}.phisk-nav-label{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:#969ca5;font-weight:800;padding:0 13px;margin:8px 0 10px}.phisk-primary-nav,.phisk-secondary-nav{display:flex;flex-direction:column;gap:4px}.phisk-primary-nav a,.phisk-secondary-nav a{display:flex;align-items:center;gap:13px;padding:11px 13px;border-radius:11px;font-size:14px;font-weight:600;color:#515760;transition:background .15s,color .15s}.phisk-primary-nav a:hover,.phisk-secondary-nav a:hover{background:#eceef2;color:#17191d}.phisk-primary-nav a.is-current{background:#e9ebef;color:#17191d;font-weight:750}.phisk-nav-icon{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px}.phisk-nav-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.phisk-nav-divider{height:1px;background:var(--phisk-line);margin:18px 10px}.phisk-sidebar-note{font-size:12px;color:#9298a1;padding:18px 13px;line-height:1.55}.phisk-main{min-width:0;min-height:60vh}.phisk-content-inner{max-width:var(--phisk-content);margin:0 auto}.phisk-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 23px}.phisk-page-heading h1,.phisk-page-heading h2{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:0;font-weight:800}.phisk-page-heading p{margin:7px 0 0;color:var(--phisk-muted);font-size:14px}.phisk-home-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid var(--phisk-line);border-radius:var(--phisk-radius);padding:24px 26px;margin-bottom:26px}.phisk-home-welcome h1{font-size:25px;letter-spacing:-.8px;line-height:1.25;margin:0 0 6px}.phisk-home-welcome p{margin:0;color:var(--phisk-muted);max-width:650px}.phisk-home-welcome-actions{display:flex;gap:9px;flex-wrap:wrap}.phisk-content-card,.phisk-entry-card{background:var(--phisk-surface);border:1px solid var(--phisk-line);border-radius:var(--phisk-radius);padding:24px;margin-bottom:20px}.phisk-entry-title{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin:0 0 12px}.phisk-entry-meta{font-size:13px;color:var(--phisk-muted);margin-bottom:18px}.phisk-entry-content{overflow-wrap:anywhere}.phisk-entry-content p:first-child{margin-top:0}.phisk-entry-content img{border-radius:12px}.phisk-entry-content a{text-decoration:underline;text-underline-offset:3px}.phisk-entry-content h2,.phisk-entry-content h3{line-height:1.3;letter-spacing:-.4px}.phisk-post-list{display:flex;flex-direction:column;gap:0}.phisk-post-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:19px;padding:20px 0;border-bottom:1px solid var(--phisk-line)}.phisk-post-row:first-child{padding-top:0}.phisk-post-row:last-child{border-bottom:0}.phisk-post-thumb{display:block;aspect-ratio:16/9;background:#e9ebef;border-radius:12px;overflow:hidden}.phisk-post-thumb img{width:100%;height:100%;object-fit:cover;display:block}.phisk-post-row h2{font-size:19px;line-height:1.35;letter-spacing:-.3px;margin:0 0 7px}.phisk-post-excerpt{font-size:14px;color:#69707a;margin:0 0 10px}.phisk-post-meta{font-size:12px;color:#8a9099}.phisk-pagination{display:flex;gap:8px;align-items:center;margin:28px 0}.phisk-pagination .page-numbers{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border-radius:10px;background:#fff;border:1px solid var(--phisk-line);font-size:13px}.phisk-pagination .current{background:#17191d;color:white;border-color:#17191d}.phisk-footer{background:#fff;border-top:1px solid var(--phisk-line);padding:24px 26px;color:#8a9099;font-size:12px}.phisk-footer-inner{max-width:1440px;margin:auto;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.phisk-footer-links{display:flex;gap:18px}.phisk-empty{padding:42px 22px;text-align:center;background:#fff;border:1px solid var(--phisk-line);border-radius:var(--phisk-radius);color:var(--phisk-muted)}.phisk-empty h2{color:var(--phisk-text);margin:0 0 7px}.phisk-mobile-bottom{display:none}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}.alignfull{max-width:none;width:100%}.wp-block-image img{border-radius:12px}.wp-block-button__link{border-radius:10px!important}.wp-block-search__input{border:1px solid var(--phisk-line);border-radius:10px;padding:10px 12px}.wp-block-search__button{border:0;border-radius:10px;background:#17191d;color:#fff;padding:10px 15px}.widget{margin-bottom:22px}.widget-title{font-size:14px;font-weight:800}.comment-list{padding-left:20px}.comment-form input:not([type=submit]),.comment-form textarea{width:100%;padding:11px 13px;border:1px solid var(--phisk-line);border-radius:10px;background:#fff}.comment-form input[type=submit]{border:0;background:#17191d;color:#fff;padding:11px 17px;border-radius:10px;font-weight:700}.phisk-notice{padding:12px 15px;background:#f0f2f5;border-radius:10px;font-size:13px;color:#555b64}
/* Keep the plugin's controls and layouts visually consistent with the theme. */
.phisk-main .phisk-video-feed,.phisk-main .phisk-following-feed,.phisk-main .phisk-videos-grid,.phisk-main .phisk-posts-grid{min-width:0}.phisk-main .phisk-submit-wrap,.phisk-main .phisk-article-submit,.phisk-main .phisk-creator-studio,.phisk-main .phisk-user-dashboard{max-width:100%;}.phisk-main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]),.phisk-main textarea,.phisk-main select{max-width:100%;}.phisk-main .phisk-video-player-dock{scroll-margin-top:70px}
@media(max-width:1050px){.phisk-layout{grid-template-columns:190px minmax(0,1fr);gap:23px;padding-left:20px;padding-right:20px}.phisk-header-inner{padding:0 20px}.phisk-header-search{max-width:400px}.phisk-home-welcome{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){body{font-size:14px}.phisk-header{height:60px}.phisk-header-inner{padding:0 15px;gap:12px}.phisk-brand{font-size:19px;gap:8px}.phisk-brand-mark{width:31px;height:31px;border-radius:10px}.phisk-header-search{min-width:0;max-width:none;margin:0;flex:1 1 auto}.phisk-header-search form{display:block;position:relative;width:100%}.phisk-header-search input[type=search]{display:block;width:100%;height:40px;padding:0 43px 0 14px;border-color:#e5e7eb;background:#f0f2f5;color:var(--phisk-text);transition:background .2s,border-color .2s}.phisk-header-search input[type=search]::placeholder{color:#858b95}.phisk-search-submit{right:4px;top:4px;width:32px;height:32px}.phisk-header-actions{display:none}.phisk-mobile-menu{display:inline-flex;align-items:center;justify-content:center}.phisk-layout{display:block;padding:18px 14px 96px}.phisk-sidebar{display:none;position:fixed;top:60px;bottom:70px;left:0;width:min(300px,86vw);z-index:1200;background:#fff;border-right:1px solid var(--phisk-line);padding:18px 14px;max-height:none;box-shadow:10px 0 35px rgba(0,0,0,.08)}body.phisk-menu-open .phisk-sidebar{display:block}.phisk-home-welcome{padding:20px;border-radius:14px;margin-bottom:21px}.phisk-home-welcome h1{font-size:22px}.phisk-page-heading{margin-bottom:18px}.phisk-page-heading h1,.phisk-page-heading h2{font-size:23px}.phisk-content-card,.phisk-entry-card{padding:18px;border-radius:14px}.phisk-entry-title{font-size:25px}.phisk-post-row{grid-template-columns:124px minmax(0,1fr);gap:13px;padding:16px 0}.phisk-post-row h2{font-size:15px;margin-bottom:5px}.phisk-post-excerpt{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.phisk-post-meta{font-size:11px}.phisk-footer{padding:20px 15px 90px}.phisk-footer-inner{display:block}.phisk-footer-links{margin-top:10px}.phisk-mobile-bottom{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));left:0;right:0;bottom:0;z-index:1100;padding:7px 7px calc(7px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--phisk-line);backdrop-filter:blur(14px)}.phisk-mobile-bottom a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#777e88;font-size:10px;font-weight:650;min-height:44px}.phisk-mobile-bottom a.is-current{color:#17191d}.phisk-mobile-bottom svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.phisk-mobile-bottom .phisk-bottom-create{color:#fff}.phisk-mobile-bottom .phisk-bottom-create .phisk-bottom-icon{width:35px;height:29px;display:grid;place-items:center;border-radius:10px;background:#17191d}.phisk-mobile-bottom .phisk-bottom-create svg{width:19px;height:19px}.phisk-main .phisk-video-player-dock{top:60px}.phisk-main .phisk-video-player-spacer{height:0!important}}
@media(max-width:390px){.phisk-header-inner{gap:7px}.phisk-brand-name{display:none}.phisk-post-row{grid-template-columns:108px minmax(0,1fr);gap:11px}.phisk-post-row h2{font-size:14px}.phisk-home-welcome-actions .phisk-button{padding:0 11px}}
.phisk-brand-custom .custom-logo-link{display:flex;align-items:center}.phisk-brand-custom .custom-logo{max-height:38px;width:auto}.phisk-watch-page .phisk-layout{display:block;max-width:1180px}.phisk-watch-page .phisk-sidebar{display:none}.phisk-watch-page .phisk-content-inner{max-width:none}.phisk-watch-page .phisk-footer{margin-top:auto}.phisk-watch-page .phisk-single-shell{max-width:1100px;margin:0 auto}.phisk-watch-page .phisk-video-player-dock{max-width:100%}


/* Phisk Video Manager integration: consistent light surfaces and responsive content */
body.single-phisk_video .phisk-single-shell,
body.single-phisk_movie .phisk-single-shell,
body.single-phisk_tvshow .phisk-single-shell,
.phisk-single-shell,
.phisk-channel,
.phisk-channel-wrap,
.phisk-article,
.phisk-article-form,
.phisk-video-submit,
.phisk-submit-form,
.phisk-creator-studio,
.phisk-user-dashboard {
  color:var(--phisk-text,#17191d);
  font-family:inherit;
}
.phisk-single-shell{width:min(100% - 32px,1120px);margin:24px auto 48px}
.phisk-single{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
.phisk-video-player-dock{background:#111;border-radius:14px;overflow:hidden}
.phisk-video-player-wrap{width:100%;max-width:100%;margin:0 auto}
.phisk-video-watch-header{padding:18px 0 8px}
.phisk-video-title{font-size:clamp(22px,3vw,30px);line-height:1.25;letter-spacing:-.6px;font-weight:800;margin:0 0 14px}
.phisk-video-author-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.phisk-video-author-row img,.phisk-channel-avatar{border-radius:50%;object-fit:cover}
.phisk-video-watch-content,.phisk-single-content,.phisk-watch-details{background:var(--phisk-surface,#fff);border:1px solid var(--phisk-line,#e8eaee);border-radius:14px;padding:20px;margin-top:18px}
.phisk-single h1,.phisk-single h2,.phisk-single h3{color:var(--phisk-text,#17191d)}
.phisk-single button,.phisk-single input[type=submit],.phisk-single .button,
.phisk-channel button,.phisk-channel .button,.phisk-article button,.phisk-article .button{
  border-radius:9px;box-shadow:none;font-weight:650
}
/* Article reading pages */
body.single-post .phisk-entry-card,
body.single .phisk-entry-card{width:min(100% - 32px,900px);margin:28px auto 56px;padding:clamp(18px,4vw,40px);background:#fff;border:1px solid var(--phisk-line);border-radius:16px;box-shadow:none}
.phisk-entry-title{font-size:clamp(28px,4vw,42px);line-height:1.2;letter-spacing:-.8px;margin:0 0 12px}
.phisk-entry-meta{color:var(--phisk-muted);font-size:14px;margin-bottom:18px}
.phisk-entry-featured img{display:block;width:100%;height:auto;border-radius:12px}
.phisk-entry-content{font-size:17px;line-height:1.8;overflow-wrap:anywhere}
.phisk-entry-content h2,.phisk-entry-content h3{line-height:1.3;margin-top:1.6em}
.phisk-entry-content img,.phisk-entry-content video,.phisk-entry-content iframe{max-width:100%}
/* Plugin cards and forms share the theme's quiet dividers and soft surfaces. */
.phiskvideos-wrap,.phisk-video-grid,.phisk-posts-grid,.phisk-article-list,
.phisk-articles-list,.phisk-channel-content{max-width:100%}
.phiskvideos-wrap article,.phisk-video-card,.phisk-article-card,.phisk-channel-section,
.phisk-creator-studio-section{box-shadow:none}
.phisk-video-card,.phisk-article-card{border-color:var(--phisk-line,#e8eaee);border-radius:13px}
.phisk-video-card img,.phisk-article-card img{border-radius:10px}
.phisk-channel a,.phisk-creator-studio a{overflow-wrap:anywhere}
.phisk-channel input,.phisk-channel textarea,.phisk-channel select,
.phisk-article-form input,.phisk-article-form textarea,.phisk-article-form select,
.phisk-video-submit input,.phisk-video-submit textarea,.phisk-video-submit select{
  max-width:100%;border:1px solid #e1e4e9;border-radius:9px;background:#fff;color:#17191d;
}
@media(max-width:767px){
 .phisk-single-shell{width:100%;margin:0 auto 32px}
 .phisk-video-player-dock{border-radius:0}
 .phisk-video-watch-header{padding:16px 16px 8px}
 .phisk-video-title{font-size:23px}
 .phisk-video-watch-content,.phisk-single-content,.phisk-watch-details{margin:12px 12px 0;padding:16px;border-radius:12px}
 body.single-post .phisk-entry-card,body.single .phisk-entry-card{width:auto;margin:14px 12px 36px;padding:18px;border-radius:13px}
 .phisk-entry-content{font-size:16px;line-height:1.75}
}


/* 1.0.3 layout corrections: channel cover spans the theme canvas; watch player stays below header. */
body:has(.phisk-dashboard-cover) .phisk-layout{
  display:block;
  max-width:none;
  padding:0 0 96px;
}
body:has(.phisk-dashboard-cover) .phisk-sidebar{display:none}
body:has(.phisk-dashboard-cover) .phisk-main{width:100%;min-width:0}
body:has(.phisk-dashboard-cover) .phisk-content-inner{width:100%;max-width:none;margin:0}
body:has(.phisk-dashboard-cover) .phisk-dashboard-cover{
  width:100%;
  max-width:none;
  margin-top:0;
  border-radius:0!important;
}
body:has(.phisk-dashboard-cover) .phisk-dashboard-cover,
body:has(.phisk-dashboard-cover) .phisk-dashboard-profile,
body:has(.phisk-dashboard-cover) .phisk-dashboard-tabs,
body:has(.phisk-dashboard-cover) .phisk-dashboard-nav{
  box-sizing:border-box;
  max-width:100%;
}
body:has(.phisk-dashboard-cover) .phisk-dashboard-tabs,
body:has(.phisk-dashboard-cover) .phisk-dashboard-nav{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
body.phisk-watch-page .phisk-layout{
  display:block;
  max-width:1180px;
  padding-top:0;
}
body.phisk-watch-page .phisk-content-inner{max-width:none}
body.phisk-watch-page .phisk-single-shell{margin-top:0}
body.phisk-watch-page .phisk-video-player-dock{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  transform:none!important;
}
body.phisk-watch-page .phisk-video-player-spacer{display:none!important;height:0!important}
@media(max-width:760px){
  body:has(.phisk-dashboard-cover) .phisk-layout{padding:0 0 96px}
  body:has(.phisk-dashboard-cover) .phisk-dashboard-cover{margin-top:0!important}
  body:has(.phisk-dashboard-cover) .phisk-dashboard-panel,
  body:has(.phisk-dashboard-cover) .phisk-dashboard-content-panel{margin-left:14px;margin-right:14px}
  body.phisk-watch-page .phisk-layout{padding:0 0 96px}
  body.phisk-watch-page .phisk-single-shell{width:100%;margin:0 auto 32px}
  body.phisk-watch-page .phisk-video-player-dock{margin-top:0!important}
}
