@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix("http://www.nicovideo.jp/watch/"),
               url-prefix("http://nine.nicovideo.jp/watch/") {
  #PAGEBODY {
    position: relative !important;
  }

  #WATCHHEADER {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    width: 416px !important;
    height: 494px !important;
    padding: 2px 2px 2px 3px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline-style: none !important;
    -moz-border-image: url("data:image/gif;base64,R0lGODlhBAAHAJEAAAAAAMzMzGdnZwAAACH5BAAAAAAALAAAAAAEAAcAAAIIhG8RJguKIigAOw==") 3 3 3 0  / 3px 3px 3px 0 !important;
    -webkit-border-image: url("data:image/gif;base64,R0lGODlhBAAHAJEAAAAAAMzMzGdnZwAAACH5BAAAAAAALAAAAAAEAAcAAAIIhG8RJguKIigAOw==") 3 3 3 0  / 3px 3px 3px 0 !important;
  }

  #WATCHHEADER > * {
    background-color: #ffffff !important;
    border-color: #000000 !important;
    border-style: solid !important;
    border-width: 0 1px !important;
    width: 100% !important;
    -moz-box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
  }

  #WATCHHEADER > table > tbody > tr > td {
    display: block !important;
    padding: 8px 8px 0 !important;
    width: auto !important;
  }

  #WATCHHEADER > table > tbody > tr:last-child > td:last-child {
    padding-bottom: 8px !important;
  }

  #WATCHHEADER > table > tbody > tr > td > div {
    width: auto !important;
  }

  #flvplayer_container {
    text-align : left !important;
  }

  #flvplayer_container:not([style*="height: 100%;"]):not([style*="height:100%;"]) > #flvplayer:not(:hover) {
    width : 552px !important;
  }

  #flvplayer {
    position : absolute !important;
  }

  .video_date,
  .video_title {
    line-height: 1.375 !important;
  }

  #itab_mylist > table {
    width: 100% !important;
  }

  #itab_mylist > table > tbody > tr > td {
    display: block !important;
  }

  #itab_description p {
    width: 363px !important;
  }
}

@-moz-document url-prefix("http://www.nicovideo.jp/watch/"),
               url-prefix("http://nine.nicovideo.jp/watch/")  {
  div[style*="width:712px;"] > .des_1[style*="display:block;"],
  div[style*="width: 712px;"] > .des_1[style*="display: block;"] {
    display: none !important;
  }

  div[style*="width:712px;"] > .des_2[style*="display:none;"],
  div[style*="width: 712px;"] > .des_2[style*="display: none;"] {
    display: block !important;
  }

  div[style*="width:712px;"] > .des_2[style*="display:none;"] > p.font12:first-child,
  div[style*="width: 712px;"] > .des_2[style*="display: none;"] > p.font12:first-child {
    display: none !important;
  }

  div[style*="width:712px;"] > .des_2[style*="display:none;"] .info_frm,
  div[style*="width: 712px;"] > .des_2[style*="display: none;"] .info_frm {
    max-height: 200px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@-moz-document url-prefix("http://www.nicovideo.jp/watch/"),
               url-prefix("http://nine.nicovideo.jp/watch/")  {
  #WATCHHEADER.video-size-wide {
    width: 288px !important;
  }

  #WATCHHEADER.video-size-wide .des_2[style*="display:none;"] .info_frm,
  #WATCHHEADER.video-size-wide .des_2[style*="display: none;"] .info_frm {
    max-height: 125px !important;
  }

  #flvplayer_container:not([style*="height: 100%;"]):not([style*="height:100%;"]) > #flvplayer.video-size-wide:not(:hover) {
    width : 680px !important;
  }

  #WATCHHEADER.video-size-wide #itab td {
    padding: 0 !important;
  }

  #WATCHHEADER.video-size-wide #itab_description p {
    width: 235px !important;
  }
}

/*
@-moz-document url-prefix("http://live.nicovideo.jp/watch/") {
  #wrapper {
    position : relative !important;
  }

  #watch {
    position : absolute !important;
    top : 70px !important;
    right : 1px !important;
    width : 386px !important;
    height : 505px !important;
    background-image : url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAIGCAIAAAAa7XJPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNrUVVsKwCAMM9v97+vbiWzg2CrWqbiPUChpzIchu/ceNXDOsWCtZcEYw4LWehNCcAClVBU3hMDSHs0f+cZKXmbw/+y98QaRn3Bl7cwOpJSJE/OaZsz5bVL7lpuSVg4An/YUr4fGKG8cz6t4e9uv6q3Hn5jsrdRVVPc9OpLqWqqzs74/BBgAeNA7WMLOa1YAAAAASUVORK5CYII=");
    border-top : #666666 1px solid !important;
    border-right : #666666 1px solid !important;
    border-bottom : #666666 1px solid !important;
    margin : 0 !important;
    overflow : auto !important;
    padding : 6px !important;
    -moz-border-radius : 0 10px 10px 0 !important;
    -webkit-border-radius : 0 10px 10px 0 !important;
  }

  #watch > * {
    float : none !important;
    width : 100% !important;
  }

  #title {
    width : 100% !important;
  }

  #watch .chan,
  #watch .com {
    margin-top : 0.5em !important;
    background-color : #ffffff !important;
  }

  #stream_description {
    background-color : #ffffff !important;
    border : 2px solid #bbbbbb !important;
    max-height : 200px !important;
    overflow-x : hidden !important;
    overflow-y : auto !important;
    padding : 4px !important;
  }

  .chan h3,
  .com h3 {
    width : 100% !important;
  }

  #watch .text {
    width : 380px !important;
  }

  #watch .shosai {
    width : 309px !important;
  }

  #watch .livecom > br:last-child,
  #watch > br:last-child {
    display : none !important;
  }

  #flvplayer_container:not([style*="height:100%;"]):not([style*="height: 100%;"]) > #flvplayer:not(:hover) {
    width : 552px !important;
  }

  #flvplayer {
    position : absolute !important;
  }
}
*/