body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f9f9f9 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill="none"><circle cx="50" cy="50" r="2" fill="#ff4081" opacity="0.1"/></svg>') repeat;
    transition: background-color 0.3s, color 0.3s;
  }
  
  header {
    position: relative;
    height: 80px;
    overflow: hidden;
  }
  
  .scroll-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    z-index: 1;
  }
  
  .scroll-background img {
    height: 80px;
    width: auto;
    margin: 0;
    padding: 0;
    display: inline-block;
    object-fit: cover;
  }
  
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  .header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 15px 0;
  }
  
  h1 {
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  header p {
    margin: 2px 0 0;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  .controls {
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  #search {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #refresh {
    padding: 8px 15px;
    background: #ff4081;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #refresh:hover {
    background: #e91e63;
  }
  
  .theme-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
  }
  
  .theme-toggle input {
    display: none;
  }
  
  .slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    margin-right: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .slider:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
  }
  
  .theme-toggle input:checked + .slider {
    background: #ff4081;
  }
  
  .theme-toggle input:checked + .slider:before {
    transform: translateX(20px);
  }
  
  #calendar-container {
    position: relative;
    width: 95%;
    margin: 20px auto;
  }
  
  #calendar {
    background: white;
    border-radius: 5px;
    padding: 10px;
  }
  
  .loading {
    text-align: center;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    z-index: 5;
    display: none;
  }
  
  .loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ff4081;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .error {
    text-align: center;
    padding: 20px;
  }
  
  /* Event colors */
  .hulu-event {
    background-color: #00cc66; /* Green */
    border-color: #00cc66;
    color: white;
  }
  
  .Crunchyroll-event {
    background-color: #f28c38; /* Orange */
    border-color: #f28c38;
    color: white;
  }
  
  .HiDive-event {
    background-color: #1e90ff; /* Blue */
    border-color: #1e90ff;
    color: white;
  }
  
  .Netflix-event {
    background-color: #e50914; /* Red */
    border-color: #e50914;
    color: white;
  }
  
  .Youtube-event {
    background-color: #8b0000; /* Dark red */
    border-color: #8b0000;
    color: white;
  }
  
  .Other-event {
    background-color: #800080; /* Purple */
    border-color: #800080;
    color: white;
  }
  
  .fc-event {
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .fc-event:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-mode {
    background: #333 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill="none"><circle cx="50" cy="50" r="2" fill="#ff4081" opacity="0.3"/></svg>') repeat;
    color: #fff;
  }
  
  body.dark-mode #calendar {
    background: #444;
  }
  
  body.dark-mode #search {
    background: #555;
    border-color: #666;
    color: #fff;
  }
  
  .tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .quote {
    text-align: center;
    padding: 10px;
    font-style: italic;
    color: #666;
  }
  
  @media (max-width: 768px) {
    header { height: 60px; }
    .scroll-background img { height: 60px; }
    h1 { font-size: 1.5rem; }
    header p { font-size: 0.9rem; }
    #search { width: 100%; max-width: 300px; }
    #calendar-container { width: 95%; }
    .controls { flex-direction: column; align-items: center; }
  }