:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

@font-face {
  font-family: 'Comic Sans MS';
  src: url('./font/comic-sans.woff2') format('woff2');
}

.SW-font {
    font-family: "Comic Sans MS", "Comic Sans", "Chalkboard", "ChalkboardSE-Regular", cursive;
    -webkit-text-stroke: 2px red;
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

ul.header {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

ul.header li {
  float: left;
  font-size:2.2rem;
}

ul.header li a {
  display: block;
  color: white;
  text-align: center;
  padding: 5px 26px;
  text-decoration: none;
}

ul.header li a:hover {
  color:var(--accent-color);
}

/* --- Layout Containers --- */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    text-align:center;
}

/* --- Video Grid System --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* --- Video Card Styling --- */
.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.thumbnail-wrapper:hover .play-overlay,.video-container:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.play-icon-big {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.float-right{
    float: right;
}

.video-info {
    padding: .75rem 1.25rem .75rem 1.25rem; /* Top, Right, Bottom, Left */
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.video-meta a {
    color: white;
    cursor: pointer;
}

.video-meta a:hover {
  color:var(--accent-color);
}

.highlight, .highlight a {
    background: yellow;
    color: black;
}

.episode-sketches {
    font-size: 0.875rem;
    color: var(--accent-color);
    text-align: center;
    cursor: pointer;
}

.featured-video {
    width: 100%;
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border:5px black solid;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.video-container:hover {
    border:5px var(--accent-color) solid;
}

.resizeOnMobile {
    max-width: 100%;
}

/* --- Typography --- */
h1, h2 {
    letter-spacing: -0.025em;
}

h2.bottom-padding {
    padding-bottom: 30px;
}

h2.bottom-padding-less {
    padding-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    background: var(--card-bg);
    color: var(--accent-color);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    width:140px;
    text-align:center;
    cursor: pointer;
}

.badge:hover {
    border: 1px solid var(--accent-color);
    background: var(--primary-color);
}

/***** SEARCH feature ************/
.search-container {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--text-secondary);
  border-radius: 24px;
  padding: 2px 16px;
  width: 300px;
  transition: box-shadow 0.2s;
}

.search-container:focus-within {
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  border-color: var(--accent-color);
  background: var(--primary-color);
}

.search-icon {
  color: #5f6368;
  margin-right: 10px;
  font-size: 18px;
  user-select: none;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;       
  width: 100%;
  font-size: 16px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: #80868b;
}

.searchResults {
   display:none;
   justify-content:center;
   margin-top:-8px;
}

.footer {
    text-align: center;
    padding: 0 0 2rem 0; /* Top, Right, Bottom, Left */
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/*************** CAST ********************/
.cast-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cast-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.cast-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-member-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align:center;
}

.cast-title {
    font-size: 0.875rem;
    color: var(--accent-color);
    text-align: center;
    margin-top: -10px;
}

.cast-info {
    font-size: 0.875rem;
    color: var(--text-primary);
    justify-content: space-between;
}

.cast-info a {
    color: var(--accent-color);
    cursor: pointer;
}

.cast-info a:hover {
  color:var(--accent-hover);
}

/*************** ABOUT and MEDIA********************/
.about-link, .media-link {
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: none;
}

.about-link:hover, .media-link:hover {
  color:var(--accent-hover);
}

ul.show-times, ul.media-list {
  padding: 1rem 1rem 1rem 3rem; /* Top, Right, Bottom, Left */
}

ul.media-list li{
  padding: 0rem 0rem 1.4rem 0rem; /* Top, Right, Bottom, Left */
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .video-grid { grid-template-columns: 1fr; }
    ul.header li {font-size:.8rem;}
    ul.header li a {padding: 7px 16px 2px 4px;} /* Top, Right, Bottom, Left */
    .SW-font{font-size:2rem;-webkit-text-stroke: 1px red;}
    .search-container{display:none;}
}