/*
Theme Name: AI Movie Studio
Author: AI Movie Tool
Description: A clean dark studio theme with member account and credit management.
Version: 1.6.6
Text Domain: ai-movie-theme
*/
:root{--am-bg:#111111;--am-panel:#1f1f1f;--am-line:#363636;--am-muted:#d0d0d0;--am-text:#f0f0f0;--am-accent:#b3edcf}*{box-sizing:border-box}html{margin-top:0!important}body{margin:0;background:var(--am-bg);color:var(--am-text);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;color-scheme:dark}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}a:hover{color:#f6f6f6}.am-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#181818;border-bottom:1px solid #2f2f2f;gap:18px;position:relative;z-index:50}.am-brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;white-space:nowrap}.am-mark{display:grid;place-items:center;width:29px;height:29px;background:var(--am-accent);color:#2b2b2b;border-radius:8px}.am-brand .custom-logo{max-width:180px;height:auto;max-height:34px;display:block}.am-nav{display:flex;align-items:center;gap:22px;font-size:12px;color:#dddddd}.am-nav a[aria-current=page]{color:#f6f6f6}.am-credit{display:flex;align-items:center;gap:8px;background:#2c2c2c;border-radius:7px;padding:5px 12px;color:#f6f6f6}.am-user{width:28px;height:28px;border-radius:50%;background:#383838;display:grid;place-items:center;font-weight:600}.am-shell .ams4{height:calc(100dvh - 58px);min-height:400px}.am-shell .ams4 .s-dashboard{min-height:0}.am-shell .ams4 .s-brand{display:none}.am-shell .ams4 .s-top{display:none}.am-shell .ams4 .s-editor{min-height:0}.am-shell .ams4 .s-prompt{max-height:calc(100dvh - 145px)}.am-content{max-width:1080px;margin:0 auto;padding:52px 28px 80px}.am-eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#f6f6f6;margin:0 0 10px}.am-content h1{font-size:30px;letter-spacing:-1px;line-height:1.3;margin:0 0 10px}.am-muted{color:var(--am-muted);font-size:13px}.am-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.am-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.am-card{padding:25px;background:var(--am-panel);border:1px solid var(--am-line);border-radius:14px}.am-card h2{font-size:15px;margin:0 0 20px}.am-balance{font-size:44px;line-height:1.1;font-weight:650;letter-spacing:-1px;margin:24px 0 12px}.am-balance small{font-size:13px;font-weight:400;color:var(--am-muted);letter-spacing:0}.am-label{display:block;font-size:12px;color:#e3e3e3;margin-bottom:7px}.am-input{width:100%;border:1px solid #434343;background:#181818;border-radius:8px;padding:11px 12px;color:var(--am-text)}.am-field{margin:0 0 18px}.am-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #4c4c4c;border-radius:8px;padding:10px 17px;background:var(--am-accent);color:#2a2a2a;cursor:pointer;font-weight:650;font-size:12px}.am-button:hover{background:#e9e9e9;color:#2a2a2a}.am-button.secondary{background:transparent;border-color:#484848;color:var(--am-text)}.am-wide{width:100%}.am-packages{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.am-package{border:1px solid #444444;background:#1a1a1a;border-radius:9px;padding:13px 6px;text-align:center;cursor:pointer}.am-package:has(input:checked){border-color:#dedede;background:#353535}.am-package input{accent-color:#dedede}.am-package b{display:block;font-size:19px;margin-top:6px}.am-package small{font-size:10px;color:var(--am-muted)}.am-section{margin-top:28px}.am-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.am-section-head h2{font-size:17px;margin:0}.am-table-wrap{overflow:auto;border:1px solid var(--am-line);border-radius:12px}.am-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.am-table th{background:#212121;color:var(--am-muted);font-size:11px;font-weight:500}.am-table td,.am-table th{padding:15px 18px;border-bottom:1px solid #313131;white-space:nowrap}.am-table tr:last-child td{border:0}.am-plus{color:#f6f6f6}.am-status{font-size:11px;border-radius:5px;background:#323232;padding:4px 8px}.am-status.approved{background:#353535;color:#f6f6f6}.am-empty{padding:35px;text-align:center;color:var(--am-muted);font-size:13px}.am-auth{max-width:420px;margin:65px auto 90px;padding:0 20px}.am-auth .am-card{padding:30px}.am-auth h1{font-size:24px;margin:0 0 8px}.am-auth .am-muted{margin-bottom:25px}.am-auth-bottom{text-align:center;margin:20px 0 0;font-size:12px;color:var(--am-muted)}.am-auth-bottom a{color:#f6f6f6}.am-notice{border:1px solid #5c5c5c;background:#2b2b2b;color:#f1f1f1;padding:12px 16px;border-radius:8px;font-size:12px;margin-bottom:22px}.am-footer{max-width:1080px;margin:auto;padding:22px 28px;border-top:1px solid var(--am-line);display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--am-muted)}.am-footer ul{list-style:none;padding:0;margin:0;display:flex;gap:16px}.am-honey{position:absolute;left:-10000px}.am-auth #loginform p{margin:0 0 17px}.am-auth #loginform label{display:block;font-size:12px;margin-bottom:7px;color:#e3e3e3}.am-auth #loginform input[type=text],.am-auth #loginform input[type=password]{width:100%;border:1px solid #434343;background:#181818;border-radius:8px;padding:11px 12px;color:var(--am-text)}.am-auth #loginform input[type=submit]{width:100%;border:0;border-radius:8px;padding:11px;background:var(--am-accent);color:#2a2a2a;font-weight:600;cursor:pointer}.am-auth .login-remember label{display:flex!important;gap:7px;align-items:center}#wpadminbar{display:none}.am-skip{position:absolute;left:15px;top:-90px;z-index:999;background:var(--am-accent);color:#2a2a2a;padding:8px}.am-skip:focus{top:10px}@media(max-width:700px){.am-header{padding:0 14px;gap:10px}.am-nav{gap:12px}.am-nav .am-admin-link,.am-user{display:none}.am-brand{font-size:12px}.am-brand .custom-logo{max-width:120px}.am-content{padding:30px 16px 50px}.am-grid{grid-template-columns:1fr}.am-intro{align-items:flex-start}.am-content h1{font-size:25px}.am-card{padding:20px}.am-credit{padding:4px 8px}.am-footer{padding:20px 16px}.am-table td,.am-table th{padding:12px}.am-auth{margin-top:35px}}

.am-account-link{display:flex;align-items:center;gap:13px;padding:4px 5px 4px 13px;border:1px solid #424242;background:#282828;border-radius:24px;color:#f6f6f6;transition:background .15s,border-color .15s;white-space:nowrap}
.am-account-link:hover,.am-account-link:focus-visible{background:#363636;border-color:#8c8c8c}
.am-account-balance{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.am-account-balance>span:last-child{font-weight:400;color:#e4e4e4}
.am-account-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#3c3c3c;color:#f5f5f5}
.am-account-icon svg{width:19px;height:19px}
@media(max-width:700px){.am-account-link{gap:8px;padding-left:10px}.am-account-balance{font-size:11px}.am-account-icon{width:28px;height:28px}}
/* Phone and tablet layouts, including landscape tablets. */
@media(max-width:1024px),(any-pointer:coarse){.am-auth #loginform input[type=text],.am-auth #loginform input[type=password]{font-size:16px;min-height:46px}.am-auth #loginform input[type=submit]{min-height:46px;font-size:15px}.am-auth #loginform label{font-size:14px}.am-auth .login-remember input{width:20px;height:20px}.am-auth-bottom a{display:inline-block;padding:10px 4px}.am-footer ul{flex-wrap:wrap}}
@media(max-width:1024px),(any-pointer:coarse) and (max-height:1366px){
  .am-header{padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));gap:12px;min-height:56px;height:56px}
  .am-brand{min-width:0;font-size:13px;gap:7px}.am-brand .custom-logo{max-width:110px;max-height:30px}
  .am-brand:has(.custom-logo)>a:last-child{display:none}
  .am-nav{gap:10px;flex:none}.am-nav>a{min-height:44px;display:inline-flex;align-items:center}
  .am-account-link{padding:4px 5px 4px 10px;gap:9px}.am-account-icon{width:34px;height:34px}.am-account-balance{font-size:12px}
  .am-shell .ams4{min-height:0;height:calc(100dvh - 56px)}
  .am-content{padding:30px max(16px,env(safe-area-inset-right)) 40px max(16px,env(safe-area-inset-left));overflow-wrap:anywhere}
  .am-content h1{font-size:clamp(24px,4vw,30px)}.am-intro{align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:24px}
  .am-grid{grid-template-columns:1fr;gap:16px}.am-card{padding:20px;min-width:0}.am-card h2{font-size:17px}
  .am-input{font-size:16px;min-height:46px}.am-label{font-size:14px}.am-button{min-height:44px;font-size:14px;white-space:normal;text-align:center}
  .am-auth{width:auto;max-width:460px;margin:32px auto;padding:0 16px}.am-auth .am-card{padding:24px 20px}
  .am-packages{gap:8px}.am-package{padding:16px 8px;min-height:80px}.am-package small{font-size:12px}
  .am-table-wrap{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.am-table{min-width:480px}.am-table th,.am-table td{padding:12px;font-size:13px}
  .am-section{min-width:0}.am-section-head{gap:12px}.am-balance{font-size:40px}.am-muted{font-size:14px}
  .am-footer{padding:22px 16px;flex-wrap:wrap;gap:12px}
}
@media(max-width:380px){.am-brand{font-size:12px}.am-account-balance{gap:4px;font-size:11px}.am-account-balance>span:last-child{display:none}.am-packages{grid-template-columns:1fr}.am-package{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px}.am-package input{flex:none}}
/* Neutral site chrome. The saved accent and the uploaded logo are unchanged. */
:root{--am-bg:#111111;--am-panel:#202020;--am-line:#383838;--am-muted:#d0d0d0;--am-text:#f6f6f6}
.am-header{background:#151515;border-color:#303030}.am-nav{color:#d8d8d8}.am-mark{color:#141414}.am-button,.am-auth #loginform input[type=submit]{color:#141414;border-color:#dedede}.am-button:hover{background:color-mix(in srgb,var(--am-accent) 88%,white);color:#111111}.am-button.secondary{background:#222222;border-color:#454545;color:#f6f6f6}.am-account-link{background:#202020;border-color:#3b3b3b;color:#f6f6f6}.am-account-link:hover,.am-account-link:focus-visible{background:#2b2b2b;border-color:#dedede}.am-account-icon{background:color-mix(in srgb,var(--am-accent) 12%,#242424);color:#f6f6f6}.am-account-balance>span:last-child{color:#d9d9d9}.am-input,.am-auth #loginform input[type=text],.am-auth #loginform input[type=password]{background:#151515;border-color:#414141}.am-label,.am-auth #loginform label{color:#e4e4e4}.am-card,.am-table-wrap{border-color:#383838}.am-table th{background:#252525;color:#dadada}.am-table td,.am-table th{border-color:#333333}.am-package{background:#1a1a1a;border-color:#414141}.am-package:has(input:checked){background:color-mix(in srgb,var(--am-accent) 10%,#202020);border-color:#dedede}.am-footer{border-color:#333333}.am-status{background:#333333;color:#f5f5f5}

/* Square logo slot: retain the original image proportions without stretching. */
.am-brand .custom-logo-link{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;line-height:0}.am-brand img.custom-logo{display:block;width:34px;height:34px;min-width:34px;max-width:34px;max-height:34px;aspect-ratio:1/1;object-fit:contain;object-position:center;flex:none}
@media(max-width:1024px){.am-brand .custom-logo-link{width:30px;height:30px;flex-basis:30px}.am-brand img.custom-logo{width:30px;height:30px;min-width:30px;max-width:30px;max-height:30px}}
/* Hover and keyboard feedback for member actions. */
.am-button,.am-auth #loginform input[type=submit]{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
.am-nav>a[href*="ams_view=login"]{padding:6px 8px;border-radius:6px;transition:color .16s ease,background-color .16s ease}
@media(hover:hover) and (pointer:fine){.am-button:not(.secondary):not(:disabled):not([aria-disabled=true]):hover,.am-auth #loginform input[type=submit]:not(:disabled):hover{background:color-mix(in srgb,var(--am-accent) 90%,black);border-color:color-mix(in srgb,var(--am-accent) 90%,black);color:#111111;box-shadow:0 3px 12px #0003}.am-nav>a[href*="ams_view=login"]:hover{background:#ffffff0d;color:#f6f6f6}.am-button.secondary:not(:disabled):hover{background:#303030;border-color:#666666;color:#f6f6f6}}
.am-button:not(:disabled):focus-visible,.am-auth #loginform input[type=submit]:focus-visible,.am-nav>a[href*="ams_view=login"]:focus-visible{outline:2px solid var(--am-accent);outline-offset:3px}
.am-button:not(.secondary):not(:disabled):active,.am-auth #loginform input[type=submit]:not(:disabled):active{background:color-mix(in srgb,var(--am-accent) 84%,black);box-shadow:none}
@media(prefers-reduced-motion:reduce){.am-button,.am-auth #loginform input[type=submit],.am-nav>a[href*="ams_view=login"]{transition:none}}
/* Readable primary button labels for light and dark operator accents. */
.am-button:not(.secondary),.am-auth #loginform input[type=submit]{color:var(--am-accent-ink,#111111)}
@media(hover:hover) and (pointer:fine){.am-button:not(.secondary):not(:disabled):not([aria-disabled=true]):hover,.am-auth #loginform input[type=submit]:not(:disabled):hover,.login .button-primary:not(:disabled):hover{color:var(--am-accent-hover-ink,var(--am-accent-ink,#111111))}}
.am-button:not(.secondary):not(:disabled):active,.am-auth #loginform input[type=submit]:not(:disabled):active,.login .button-primary:not(:disabled):active{color:var(--am-accent-active-ink,var(--am-accent-ink,#111111))}
.login .button-primary{transition:background-color .16s ease,border-color .16s ease}
@media(hover:hover) and (pointer:fine){.login .button-primary:not(:disabled):hover{background:color-mix(in srgb,var(--am-accent) 90%,black);border-color:color-mix(in srgb,var(--am-accent) 90%,black)}}
.login .button-primary:not(:disabled):active{background:color-mix(in srgb,var(--am-accent) 84%,black);border-color:color-mix(in srgb,var(--am-accent) 84%,black)}
@media(prefers-reduced-motion:reduce){.login .button-primary{transition:none}}
/* Brand colour belongs to primary actions, not account data or navigation. */
.am-account-link,.am-account-icon,.am-account-balance,.am-credit,.am-plus,.am-status,.am-status.approved{color:#f6f6f6}.am-account-icon{background:#303030}.am-account-link{background:#202020}.am-account-link:hover,.am-account-link:focus-visible{border-color:#666666;color:#f6f6f6}.am-nav a[aria-current=page],.am-auth-bottom a{color:#f6f6f6}.am-nav a:not(.am-button):hover,.am-auth-bottom a:hover{color:#ffffff}.am-package:has(input:checked){background:#2a2a2a;border-color:#777777}.am-package input{accent-color:#dedede}
.am-input:focus-visible,.am-button.secondary:focus-visible,.am-nav>a:not(.am-button):focus-visible,.am-auth-bottom a:focus-visible{outline-color:#bbbbbb}
.am-button:not(.secondary),.am-auth #loginform input[type=submit],.login .button-primary{border-color:transparent;box-shadow:none}
@media(hover:hover) and (pointer:fine){.am-button:not(.secondary):not(:disabled):not([aria-disabled=true]):hover,.am-auth #loginform input[type=submit]:not(:disabled):hover,.login .button-primary:not(:disabled):hover{border-color:transparent;box-shadow:inset 0 0 0 1px #b8b8b8,0 3px 12px #0003}}
